Block getting out of vehicle
#2

Use GetPlayerVehicleSeat to check if exiting player was on the driver seat (seat-ID 0) and put him back into this vehicle.

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
  if(GetPlayerVehicleSeat(playerid) == 0) PutPlayerInVehicle(playerid, vehicleid, 0);
  return 1;
}
Reply


Messages In This Thread
Block getting out of vehicle - by xomka - 30.10.2009, 11:13
Re: Block getting out of vehicle - by Correlli - 30.10.2009, 11:51

Forum Jump:


Users browsing this thread: 2 Guest(s)