Advertisement
Guest User

Untitled

a guest
Aug 19th, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.81 KB | None | 0 0
  1. new Float:x, Float:y, Float:z;
  2.         GetPlayerPos(playerid, x, y, z);
  3.         Loop(i)
  4.         {
  5.             if(IsPlayerInRangeOfPoint(i, 4, x, y, z))
  6.             {
  7.                 if(strlen(text) > 3) text[0] = toupper(text[0]);
  8.                 ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 0, 1, 1, 0, 2500, 1);
  9.                 format(Wiadomosc, sizeof(Wiadomosc), "%s %s mówi: %s",Gracz[playerid][Imie], Gracz[playerid][Nazwisko], text);
  10.                 SendClientMessageInRange(i, 4, Bialy, Wiadomosc);
  11.             }
  12.             else if(IsPlayerInRangeOfPoint(i, 8, x, y, z))
  13.             {
  14.                 if(strlen(text) > 3) text[0] = toupper(text[0]);
  15.                 ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.1, 0, 1, 1, 0, 2500, 1);
  16.                 format(Wiadomosc, sizeof(Wiadomosc), "%s %s mówi: %s",Gracz[playerid][Imie], Gracz[playerid][Nazwisko], text);
  17.                 SendClientMessageInRange(playerid, 8, 0xAFABABFF, Wiadomosc);
  18.             }
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement