KaLu17

[pawno.pl] -> #27940

Aug 16th, 2014
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.85 KB | None | 0 0
  1.         if(strlen(text) < 78)
  2.         {
  3.             text[0] = chrtoupper(text[0]);
  4.             format(String, sizeof(String), "%s mówi: %s", GameName(playerid), text);
  5.             ProxDetector(10.0, playerid, String, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
  6.         }
  7.         else
  8.         {
  9.             new pos = strfind(text, " ", true, strlen(text) / 2);
  10.             if(pos != -1)
  11.             {
  12.                 new text2[64];
  13.  
  14.                 strmid(text2, text, pos + 1, strlen(text));
  15.                 strdel(text, pos, strlen(text));
  16.                 text[0] = chrtoupper(text[0]);
  17.                 format(String, sizeof(String), "%s mówi: %s", GameName(playerid), text);
  18.                 ProxDetector(10.0, playerid, String, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
  19.                 format(String, sizeof(String), "            ...%s", text2);
  20.                 ProxDetector(10.0, playerid, String, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
  21.             }
  22.         }
Advertisement
Add Comment
Please, Sign In to add comment