27.07.2012, 19:07
Here, try this:
And dont forget to replace VEHICLE_ID with yours!
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == VEHICLE_ID)
RemovePlayerFromVehicle(playerid);
return 1;
}