Vehicle locked after respawn [0.3c]
#3

pawn Код:
if ( newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER )
    {
        new vehicleid = GetPlayerVehicleID( playerid );
        new engine, lights, alarm, doors, bonnet, boot, objective;

        GetVehicleParamsEx( vehicleid, engine, lights, alarm, doors, bonnet, boot, objective );
        if ( doors )
        {
            RemovePlayerFromVehicle( playerid );
        }
    }
This code placed in OnPlayerStateChange public function.
Reply


Messages In This Thread
Vehicle locked after respawn [0.3c] - by Axuj - 15.01.2011, 12:03
Re: Vehicle locked after respawn [0.3c] - by Toreno - 15.01.2011, 12:10
Re: Vehicle locked after respawn [0.3c] - by Axuj - 15.01.2011, 12:12
Re: Vehicle locked after respawn [0.3c] - by Toreno - 15.01.2011, 12:15
Re: Vehicle locked after respawn [0.3c] - by Axuj - 15.01.2011, 12:23
Re: Vehicle locked after respawn [0.3c] - by Axuj - 15.01.2011, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)