04.06.2014, 17:02
As far as I know checking a player's state doesn't work under OnPlayerKeyStateChange but under OnPlayerStateChange
You have to check if the player enters a vehicle AS a driver.
You have to check that under the callback OnPlayerStateChange.
Then check if the player is a driver in one of the "NoobVehicles". If that's the case, raise his position on the Z-axis.
You have to check if the player enters a vehicle AS a driver.
You have to check that under the callback OnPlayerStateChange.
pawn Код:
newstate == PLAYER_STATE_DRIVER