06.01.2013, 16:14
if i get it rigth you need script like this:
pawn Код:
if (strcmp("/siren", cmdtext, true, 6) == 0)
{
new
Float:Coord[ 3 ];
GetPlayerPos( playerid, Coord[ 0 ], Coord[ 1 ], Coord[ 2 ] );
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( IsPlayerConnected( i ) )
{
if( IsPlayerInRangeOfPoint( i, 20.0, Coord[ 0 ], Coord[ 1 ], Coord[ 2 ] ) )
{
GameTextForPlayer(playerid, "~r~]~b~]", 3000, 1);
}
}
}
return 1;
}