[HELP] Eject people from police vehicle
#4

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{  
  if(newstate == PLAYER_STATE_DRIVER) // if the new state of a player is driver then continue
  {
    if(GetVehicleModel(GetPlayerVehicleID(playerid) == 596)) // if the vehicle the player is stepping into is 596 (LSPD CAR)
    {
      RemovePlayerFromVehicle(playerid); // remove the player from the vehicle
      return 1;
    }
  }
  return 1;
}
This is just a simple example, ofcourse you will have to edit it. For a list of vehicles model id's goto: https://sampwiki.blast.hk/wiki/Category:Vehicle
Reply


Messages In This Thread
[HELP] Eject people from police vehicle - by baxi - 06.07.2009, 16:36
Re: [HELP] Eject people from police vehicle - by ByFukara - 06.07.2009, 16:37
Re: [HELP] Eject people from police vehicle - by baxi - 06.07.2009, 17:01
Re: [HELP] Eject people from police vehicle - by -Sneaky- - 06.07.2009, 17:08
Re: [HELP] Eject people from police vehicle - by baxi - 06.07.2009, 17:43
Re: [HELP] Eject people from police vehicle - by -Sneaky- - 06.07.2009, 17:44
Re: [HELP] Eject people from police vehicle - by baxi - 06.07.2009, 17:45
Re: [HELP] Eject people from police vehicle - by -Sneaky- - 06.07.2009, 17:51
Re: [HELP] Eject people from police vehicle - by dice7 - 06.07.2009, 17:54
Re: [HELP] Eject people from police vehicle - by -Sneaky- - 06.07.2009, 17:55

Forum Jump:


Users browsing this thread: 2 Guest(s)