Flip car
#5

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
The Z angle turns the car around

Try doing something with SetVehicleAngularVelocity, https://sampwiki.blast.hk/wiki/SetVehicleAngularVelocity
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.
Reply


Messages In This Thread
Flip car - by FireCat - 11.08.2010, 20:11
Re: Flip car - by JaTochNietDan - 11.08.2010, 20:16
Re: Flip car - by FireCat - 11.08.2010, 20:17
Re: Flip car - by Hiddos - 11.08.2010, 20:18
Re: Flip car - by JaTochNietDan - 11.08.2010, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)