Guest User

Untitled

a guest
Feb 10th, 2015
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.35 KB | None | 0 0
  1. stock RoundMessage(playerid, color, string[], Float:radius)
  2. {
  3.     if(IsPlayerConnected(playerid))
  4.     {
  5.         new Float:pos[3];
  6.         GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  7.         for(new i=0;i<GetMaxPlayers();i++)
  8.         {  
  9.             if(IsPlayerInRangeOfPoint(i, radius, pos[0], pos[1], pos[2]))
  10.             {
  11.                 SendClientMessage(i, color, string);
  12.             }
  13.         }
  14.     }
  15.     return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment