SA-MP Forums Archive
action when pressed an key - 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: action when pressed an key (/showthread.php?tid=89656)



action when pressed an key - PKRanger - 03.08.2009

I've tried a couple of things that didnt work..

How can I make a mission to start when pressing ' 2 ' on the keyboard ?

for example, you can type /mission for a mission to start, but when being in a vehicle the key 2 should be starting a driving mission.

best regards,

PKR


Re: action when pressed an key - Correlli - 03.08.2009

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/GetPlayerKeys
https://sampwiki.blast.hk/wiki/GetPlayerKeys#Key_List