19.04.2013, 19:53
IsPlayerInVehicle detects any seat.
You can detect the seat by using
You can detect the seat by using
pawn Код:
if(IsPlayerInAnyVehicle(playerid)) // Detect if they are in any vehicle.
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) // User is in a vehicle, and it's not the driver seat.
{
// Code
}
}