Guest User

Untitled

a guest
May 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. stock SendRangedMessage(playerid, color, msg[], Float: r)
  2. {
  3. new Float: Pos[3], players = GetMaxPlayers();
  4. GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  5. for(new i; i < players; i++)
  6. {
  7. if(!IsPlayerConnected(i)) continue;
  8. if(IsPlayerInRangeOfPoint(i, r, Pos[0], Pos[1], Pos[2])) SendClientMessage(i, color, msg);
  9. }
  10. return 1;
  11. }
Add Comment
Please, Sign In to add comment