SA-MP Forums Archive
Revs... - 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: Revs... (/showthread.php?tid=317146)



Revs... - SpankMe2 - 10.02.2012

Hey,

So how do I explain this?

When your driving a car IRL a rev counter goes up and down depending on which gear your in and the speed your going. I need to recreate this... Does anyone have any ideas of how?

I just need help preducing the raw data, I can create the rest easily.

Thanks.


Re: Revs... - MP2 - 10.02.2012

It's not possible to detect the gear, but using a combination of OnPlayerKeyStateChange (KEY_SPRINT), timer/GetTickCount and an array may allow the detection of revs.


Re: Revs... - SpankMe2 - 10.02.2012

Thanks i'll give it a try.