Seat Detection/IsPlayerInVehicle
#2

IsPlayerInVehicle detects any seat.

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
    }
}
Reply


Messages In This Thread
Seat Detection/IsPlayerInVehicle - by jakejohnsonusa - 19.04.2013, 19:48
Re: Seat Detection/IsPlayerInVehicle - by zDivine - 19.04.2013, 19:53
Re: Seat Detection/IsPlayerInVehicle - by HurtLocker - 19.04.2013, 19:54
Re: Seat Detection/IsPlayerInVehicle - by zDivine - 19.04.2013, 19:57
Re: Seat Detection/IsPlayerInVehicle - by zDivine - 19.04.2013, 19:59
Re: Seat Detection/IsPlayerInVehicle - by XStormiest - 19.04.2013, 20:00
Re: Seat Detection/IsPlayerInVehicle - by zDivine - 19.04.2013, 20:03
Re: Seat Detection/IsPlayerInVehicle - by jakejohnsonusa - 19.04.2013, 20:16
Re: Seat Detection/IsPlayerInVehicle - by HurtLocker - 19.04.2013, 20:19

Forum Jump:


Users browsing this thread: 2 Guest(s)