Block getting out of vehicle
#1

Now I would like to ask, how it can be blocked? Tried to return (0) in OnPlayerExitVehicle, but it does nothing.
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)