Vehicle engine (SetVehicleParamsEx)
#2

The engine is toggled when you change state to driver, not when you enter the vehicle..
OnPlayerEnterVehicle is called as soon as the player tries to enter it.
pawn Код:
OnPlayerStateChange(playerid, newstate, oldstate)
{
 switch(newstate)
 {
  case PLAYER_STATE_DRIVER:
  {
   //This on the other hand, is called when you're in the car as a driver
  }
 }
}
Reply


Messages In This Thread
Vehicle engine (SetVehicleParamsEx) - by XRabbit - 20.10.2012, 23:11
Re: Vehicle engine (SetVehicleParamsEx) - by RedFusion - 20.10.2012, 23:34
Re: Vehicle engine (SetVehicleParamsEx) - by Memoryz - 20.10.2012, 23:38
Re: Vehicle engine (SetVehicleParamsEx) - by XRabbit - 20.10.2012, 23:47

Forum Jump:


Users browsing this thread: 1 Guest(s)