Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. stock ProxDetector(Float:radi, playerid, string[], color)
  2. {
  3. new Float:X, Float:Y, Float:Z;
  4. GetPlayerPos(playerid, X, Y, Z);
  5. foreach(new i : Player)
  6. {
  7. if(!IsPlayerInRangeOfPoint(i,radi,X,Y,Z) || GetPlayerVirtualWorld(i) != GetPlayerVirtualWorld(playerid)) continue;
  8. SendClientMessage(i, color, string);
  9. }
  10. return 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement