06.07.2009, 17:08
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER) // if the new state of a player is driver then continue
{
if(GetVehicleModel(GetPlayerVehicleID(playerid) == 596)) // if the vehicle the player is stepping into is 596 (LSPD CAR)
{
RemovePlayerFromVehicle(playerid); // remove the player from the vehicle
return 1;
}
}
return 1;
}