06.05.2012, 00:31
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 true;
}
}
return false;
}
pawn Код:
IsPlayerInRangeForMessage(playerid, COR_PURPLE, stringes, 10.0);
+rep