06.05.2012, 00:33
pawn Код:
stock IsPlayerInRangeForMessage(playerid, color, const striyng[], Float: range)
{
for(new x; x < MAX_PLAYERS; x++)
{
new Float: Poz[3];
GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
if(IsPlayerInRangeOfPoint(x, range, Poz[0], Poz[1], Poz[2]))
{
SendClientMessage(x, color, striyng);
}
}
return false;
}