/seatbelt?
#2

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)
Reply


Messages In This Thread
/seatbelt? - by Lajko1 - 26.01.2014, 19:36
Re: /seatbelt? - by Manyula - 26.01.2014, 20:34
Re: /seatbelt? - by KJz - 26.01.2014, 20:35
Re: /seatbelt? - by Lajko1 - 27.01.2014, 20:00
Re: /seatbelt? - by Pizzy - 27.01.2014, 20:04
Re: /seatbelt? - by Lajko1 - 27.01.2014, 21:16
Re: /seatbelt? - by Manyula - 27.01.2014, 21:56
Re: /seatbelt? - by Lajko1 - 27.01.2014, 22:12
Re: /seatbelt? - by Shetch - 28.01.2014, 00:50
Re: /seatbelt? - by Lajko1 - 28.01.2014, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)