Quote:
Originally Posted by Hiddos
|
I'm aware of that, however setting the Z angle of the car using that function also sets the x,y angle of the car to 0, so it is right side up. It is how stunt servers have had a flip command for years.
Also, the angular velocity is the velocity of the car in that direction, not the position.
As regards to the KeyID of "CAPS LOCK" I assume you mean the KeyID of the horn button. OnPlayerKeyStateChange only works with San Andreas keys, not with actual keyboard keys. So if someone changes the horn button to spacebar, then spacebar would be the key to flip the car.
Anyway, the horn KeyID is not actually defined in the a_samp include, so you'll have to go in-game and do some debugging to find it yourself.