RemovePlayerFromVehicle
From SA-MP Wiki
RemovePlayerFromVehicle
Removes/ejects a player from his vehicle.
(playerid)
| playerid | ID of the player to throw out of his vehicle |
This function does not return a specific value.
Note: The animation will not display to other players
public OnPlayerUpdate(playerid) { if(GetPlayerVehicleID(playerid) == 1 && GetPlayerMoney(playerid) < 5000) { RemovePlayerFromVehicle(playerid); } return 1; }
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- PutPlayerInVehicle: Put a player in a vehicle.
