SA-MP Forums Archive
Help in detecting car's Transmission - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help in detecting car's Transmission (/showthread.php?tid=403895)



Help in detecting car\'s Transmission - Gamer_007 - 01.01.2013

As the topic says i want to ask that is there any stock or thing like that by which i can know that vehicle is moving in Reverse direction.in simple words anything that can detect car Reverse gear?


Re: Help in detecting car\'s Transmission - [HK]Ryder[AN] - 01.01.2013

use OnPlayerKeyStateChange
ddetect if player is pressing reverse button and is in a car


Re: Help in detecting car\'s Transmission - Gamer_007 - 01.01.2013

Quote:
Originally Posted by [HK]Ryder[AN]
View Post
use OnPlayerKeyStateChange

ddetect if player is pressing reverse button and is in a car
Code pls??


Re: Help in detecting car\'s Transmission - Threshold - 01.01.2013

OnPlayerKeyStateChange will be called each time a key state is changed. It will never be called for up, down, left and right.


Re: Help in detecting car\'s Transmission - Gamer_007 - 01.01.2013

I am making 3d label on which u can se on which gear the car is like R=Reverse, D=Drive N=Neutral.I am done with N and D but i am confused in R because i have that dot structure health bar.So i am a bit confused