Key Z samp. - 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: Key Z samp. (
/showthread.php?tid=558840)
Key Z samp. -
Baltimore - 19.01.2015
How to detect if a player press a key Z?
Thx
Re: Key Z samp. -
Banana_Ghost - 19.01.2015
You can't detect actual keys pressed on a player's keyboard, but you can detect the function of the keys, see this for more information:
https://sampwiki.blast.hk/wiki/GetPlayerKeys
Re: Key Z samp. -
Sawalha - 19.01.2015
not sure if gonna work , but:
defining it using the hex value of it
Re : Re: Key Z samp. -
Baltimore - 19.01.2015
Quote:
Originally Posted by Sawalha
not sure if gonna work , but:
defining it using the hex value of it
|
Not work in OnPlayerKeyStateChange :/
Re : Key Z samp. -
Baltimore - 19.01.2015
Up please
Re: Key Z samp. -
Schneider - 19.01.2015
You can't detect a certain key (since everybody can change his keys client-side), only the functions of the keys like the sprint-key, crouch-key, fire-key, aim-key, yes-key, no-key, et cetra can be detected.
Here are all available keys:
https://sampwiki.blast.hk/wiki/Keys
Re : Key Z samp. -
Baltimore - 24.01.2015
It's not possible to detect the key z?
Re: Key Z samp. -
ATGOggy - 24.01.2015
I think he wants an unused key. There are many keys that are rarely used.
Re: Key Z samp. -
zT KiNgKoNg - 24.01.2015
Quote:
Originally Posted by ATGOggy
I think he wants an unused key. There are many keys that are rarely used.
|
As ****** said, and no He's requesting a Key that cannot be detected server side from the client (as cool as this feature would be), Either way as ****** said he's ignored everyone that has given him somewhat of the right answer and elaborated on it for a much clearer answer. People giving answers that have no connection in anyway never helps.
Re : Key Z samp. -
Baltimore - 31.01.2015
Not idea to make this