11.05.2010, 17:31
Quote:
Originally Posted by kLx
pawn Код:
|

pawn Код:
SendClientMessage( playerid, COLOR_GRAD1, "Near players:" );
new
Float:ax, Float:ay, Float:az, name[ MAX_PLAYER_NAME ];
GetPlayerPos( playerid, ax, ay, az );
for(new i=0; i<MAX_PLAYERS; i++)
{
if( IsPlayerInRangeOfPoint( i, 10.0, ax, ay, az ) )
{
GetPlayerName( i, name, MAX_PLAYER_NAME );
SendClientMessage( playerid, COLOR_GRAD2, name );
}
}