08.03.2014, 09:55
Use this one.
Faster, smaller and better.
Code:
stock ProxDetector(Float:radi, playerid, string[],color) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); for(new player;player<MAX_PLAYERS;player++) { if(!IsPlayerConnected(playerid))continue; if(IsPlayerInRangeOfPoint(playerid,radi,x,y,z))Sen dClientMessage(player,color,string); } }