Posts: 407
Threads: 83
Joined: May 2011
Reputation:
0
Hey, I am making anti-airbrake/tp script. It's almost done, I only need animation index id when player jumps out of the car when it goes fast. I tried to debug it with OPEV, but it always return 0 somewhy. Also, if possible IsCarFalling, sometimes when car falls it detects it as airbrake.
Thanks.
Posts: 526
Threads: 59
Joined: Feb 2011
Reputation:
0
I don't know about the animation, but the IsCarFalling thing is pretty impossible...
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Look in test_cmds.pwn - a filterscript that comes with the SA:MP server.
IsCarFalling is piss-easy - get the vehicle velocity (GetVehicleVelocity) and if the Z is quite low (not sure how low - make a test command) they're falling.