Vehicle Problem
#2

Quote:
Originally Posted by lwilson
Посмотреть сообщение
Hey when i spawn a vehicle for a player or buy a vehicle from a dealership
I can enter as a driver, but i can't enter as a passenger. its like a vehicle lock when i enter as a passenger
(vehicle doesn't have locK)

Where can i see if player enter vehicle as a passenger?
You can detect if the player has entered the vehicle as a passenger or driver in this callback:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(ispassenger)
    {
    }
    return 1;
}
Wiki: https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle
Reply


Messages In This Thread
Vehicle Problem - by lwilson - 01.02.2015, 04:22
Re: Vehicle Problem - by Gammix - 01.02.2015, 06:31

Forum Jump:


Users browsing this thread: 1 Guest(s)