06.01.2013, 17:20
Quote:
Thosen't this just make the stars pop up on the player typing the /siren command? Shouldn't it be like this?
pawn Код:
|
when in car:
pawn Код:
if (strcmp("/siren", cmdtext, true, 6) == 0)
{
if( IsPlayerInAnyVehicle( playerid ) ) // in any vehicle
{
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( i, "~r~]~b~]", 3000, 1 );
}
}
}
}
return 1;
}