Is it possible...
#1

For a specific vehicle, too only allow passengers, not drivers.
Reply
#2

yes,
u can do something like this:
pawn Код:
new MYCAR;

public OnPlayerStateChange(playerid, newstate, oldstate)
{
  if(newstate == PLAYER_STATE_DRIVER){
    new pVeh = GetPlayerVehicleID(playerid);
    if(pVeh == MYCAR){
      RemovePlayerFromVehicle(playerid);
      SendClientMessage(playerid,0xFF0000AA,"You can't drive this car");
    }
  }
  return 1;
}

public OnGameModeInit()
{
  MYCAR = AddStaticVehicle(...);
  return 1;
}
or you can use GetPlayerVehicleSeat
Reply
#3

Thank you. Works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)