Posts: 220
Threads: 54
Joined: Jan 2014
Hi
I try to set an undefined SAMP button.
I could find out about it:
https://sampwiki.blast.hk/wiki/Define_KEY_AIM
But how do you know which key is defined?
thank you
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
It tells you right there #define KEY_HANDBRAKE
Posts: 220
Threads: 54
Joined: Jan 2014
Quote:
Originally Posted by [uL]Pottus
It tells you right there #define KEY_HANDBRAKE
|
Yes but how do I define my own key (K) for example.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
You can only use the keys that are listed.
Posts: 220
Threads: 54
Joined: Jan 2014
So I can not detect if a player presses the key K, then?
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
You can bind K to a key however and use that, the most useful ones are KEY_YES / KEY_NO as these keys have purpose in SAMP but are still detected.
Posts: 220
Threads: 54
Joined: Jan 2014
I must search the key K.
And I want to detect So, if the player presses the H and K at the same time key, but I do not know how to define K.
Posts: 220
Threads: 54
Joined: Jan 2014