Advertisement
KaLu17

[pawno.pl] -> #28675

Oct 10th, 2014
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.76 KB | None | 0 0
  1.     if(strlen(text) < 78)
  2.     {
  3.         format(string, sizeof(string), "%s mówi: %s", GameName(playerid), text);
  4.         ProxDetector(10.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
  5.     }
  6.     else
  7.     {
  8.         new pos = strfind(text, " ", true, strlen(text) / 2);
  9.         if(pos != -1)
  10.         {
  11.             new text2[64];
  12.  
  13.             strmid(text2, text, pos + 1, strlen(text));
  14.             strdel(text, pos, strlen(text));
  15.  
  16.             format(string, sizeof(string), "%s mówi: %s...", GameName(playerid), text);
  17.             ProxDetector(10.0, playerid, string, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
  18.  
  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
Advertisement