Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock ProxDetector(Float:radi, playerid, string[], color)
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- foreach(new i : Player)
- {
- if(!IsPlayerInRangeOfPoint(i,radi,X,Y,Z) || GetPlayerVirtualWorld(i) != GetPlayerVirtualWorld(playerid)) continue;
- SendClientMessage(i, color, string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement