Stop player from entering vehicle
#4

Yep, adding RemovePlayerFromVehicle under OnPlayerEnterVehicle won't work at all.


I recommend using SetVehicleParamsForPlayer under OnVehicleStreamIn. Example:

pawn Code:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    if(vehicleid == YourVehicleIDHere) // if the vehicle that streams in is the vehicle you want to lock (Change YourVehicleIDHere)
    {
        if(forplayerid == ThePlayerIDHere) // if the player that the vehicle streams in for is the player you want to stop from entering the vehicle (Change ThePlayerIDHere)
        {
            SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1); // lock the doors for the player
        }
    }
    return 1;
}
Reply


Messages In This Thread
Stop player from entering vehicle - by SEnergy - 27.07.2012, 18:10
Re: Stop player from entering vehicle - by maramizo - 27.07.2012, 18:14
Re: Stop player from entering vehicle - by SEnergy - 27.07.2012, 18:21
Re: Stop player from entering vehicle - by [KHK]Khalid - 27.07.2012, 18:25
Re: Stop player from entering vehicle - by AmigaBlizzard - 27.07.2012, 18:25
Re: Stop player from entering vehicle - by SEnergy - 27.07.2012, 18:40
Re: Stop player from entering vehicle - by [KHK]Khalid - 27.07.2012, 19:05
Re: Stop player from entering vehicle - by Universal - 27.07.2012, 19:07
Re: Stop player from entering vehicle - by [KHK]Khalid - 27.07.2012, 19:17
Re: Stop player from entering vehicle - by Universal - 27.07.2012, 19:41

Forum Jump:


Users browsing this thread: 2 Guest(s)