OnPlayerKeyStateChange? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OnPlayerKeyStateChange? (
/showthread.php?tid=173589)
OnPlayerKeyStateChange? -
mrcoolballs - 03.09.2010
I have just made a speedboost code where when I press KEY_FIRE it gives me a speed boost, it works perfect but how would I change it from KEY_FIRE to a number key like 1 or 2, I can't find what to write anywhere, it doesn't say on the wiki what the id's are for numbers only main action keys.
Re: OnPlayerKeyStateChange? -
Victor - 03.09.2010
Right now SA-MP can only use the main action keys
Re: OnPlayerKeyStateChange? -
mrcoolballs - 03.09.2010
I play on a server where they use 2 to repair your vehicle
Re: OnPlayerKeyStateChange? -
Sky4D - 03.09.2010
"KEY_SUBMISSION" would be used as the key '2'