28.01.2010, 20:52
ProxDetector sends a message to players depending on their position (local chat)
I suggest you use something way better, and a better method
I suggest you use something way better, and a better method
pawn Код:
stock SendLocalChat(playerid,color,msg[],Float:radius)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
for(new ply;ply<MAX_PLAYERS;ply++)
{
if(IsPlayerInRangeOfPoint(ply,radius,x,y,z))SendClientMessage(ply,color,msg);
}
return 1;
}