20.10.2012, 23:34
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.
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
}
}
}