DestroyVehicle
#8

Use it on command.
pawn Код:
if( DM[ playerid ] == true ) return SendClientMessage( playerid, -1, "You cannot spawn a vehicle during DM!" );
// code for spawning vehicle
Or just
pawn Код:
public OnPlayerStateChange( playerid, newstate, oldstate )
{
    if( oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER )
    {
        if( DM[ playerid ] == true ) DestroyVehicle( GetPlayerVehicleID(playerid) );
    }
    return 1;
}
Reply


Messages In This Thread
DestroyVehicle - by Louris - 03.12.2012, 11:46
Re: DestroyVehicle - by tsonn1 - 03.12.2012, 11:52
Re: DestroyVehicle - by Azazelo - 03.12.2012, 11:52
Re: DestroyVehicle - by [HK]Ryder[AN] - 03.12.2012, 12:00
Re: DestroyVehicle - by Louris - 03.12.2012, 12:02
Re: DestroyVehicle - by [HK]Ryder[AN] - 03.12.2012, 12:02
Re: DestroyVehicle - by Louris - 03.12.2012, 12:04
Re: DestroyVehicle - by Konstantinos - 03.12.2012, 12:05
Re: DestroyVehicle - by [HK]Ryder[AN] - 03.12.2012, 12:05
Re: DestroyVehicle - by Azazelo - 03.12.2012, 12:06

Forum Jump:


Users browsing this thread: 1 Guest(s)