26.01.2014, 20:34
https://sampwiki.blast.hk/wiki/SetPlayerVelocity
Create a global timer and let him check and compare certain states of the player's velocity. If the velocity drop is too big (which means, he ran into a wall or something), you can use SetPlayerVelocity to throw the player out of the car, if he didn't put on his seat belt. Simply add the check of a boolean.
Clear the variable when the player gets out of the vehicle. (OnPlayerStateChange)
Create a global timer and let him check and compare certain states of the player's velocity. If the velocity drop is too big (which means, he ran into a wall or something), you can use SetPlayerVelocity to throw the player out of the car, if he didn't put on his seat belt. Simply add the check of a boolean.
Clear the variable when the player gets out of the vehicle. (OnPlayerStateChange)