RemovePlayerFromVehicle

From SA-MP Wiki

Jump to: navigation, search

RemovePlayerFromVehicle


Removes/ejects a player from his vehicle.


Parameters:
(playerid)
playeridID 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.

Personal tools