need help with detect player press 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)
+--- Thread: need help with detect player press key (
/showthread.php?tid=470090)
need help with detect player press key -
Ivander - 16.10.2013
as the title say , i have some problem to detect what player press key
I want to if player press "J" on keyboard it shown Progress bar with Textdraw , and if player release the key it the progress bar and textdraw will hiden.
Can i use OnPlayerKeyStateChange to make this ? and how to make it ? can you gimme example for the format ?
Re: need help with detect player press key -
LeMoi - 16.10.2013
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
you've everything you need to build your code there, good luck.
Re: need help with detect player press key -
Konstantinos - 16.10.2013
Here's a
list with all the available keys, button "J" cannot be detected.
Holding a specific key will show the progress bar:
https://sampwiki.blast.hk/wiki/OnPlayerK..._holding_a_key
Releasing that key will hide the textdraw:
https://sampwiki.blast.hk/wiki/OnPlayerK...eleasing_a_key
Re: need help with detect player press key -
LeMoi - 16.10.2013
Quote:
Originally Posted by Konstantinos
|
You could have let him find it himself while studying the whole contents of OnPlayerKeyStateChange but ok