Passenger Seat
#1

I made this system that you can enter a custom interior of a truck i wonder how can i make it so when you are a passenger in passenger seat 2 or 3 you teleport instead of being in passenger seat number this is what i use
PLAYER_STATE_PASSENGER how would i change it to passenger seat 2 or 3?
Reply
#2

You can use GetPlayerVehicleSeat to get the seat number.

https://sampwiki.blast.hk/wiki/GetPlayerVehicleSeat
Reply
#3

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        if (ispassenger != 0)
        {
              // Your Code here
        }
        return 1;
}

You can do something like this example.
Reply
#4

Quote:
Originally Posted by RenSoprano
Посмотреть сообщение
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        if (ispassenger != 0)
        {
              // Your Code here
        }
        return 1;
}

You can do something like this example.
Wait if (ispassenger != 2) is set to 2 will it only work to the second passenger
Reply
#5

Код:
!= 0
That mean different from Driver used it. This check only passangers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)