Stop player from entering vehicle
#10

pawn Code:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
      if(vehicleid == VEHICLE_ID && ANY_OTHER_STATEMENT)
           TogglePlayerControllable(playerid, true);
      return 1;
}
You can also use SetVehicleParamsEx if you want, but then you should make another if statement, or maybe else which unlocks the vehicle.
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: 1 Guest(s)