PDA

View Full Version : Define a key


TheSy
17/04/2014, 04:44 PM
Hi

I try to set an undefined SAMP button.

I could find out about it:

http://wiki.sa-mp.com/wiki/Define_KEY_AIM

But how do you know which key is defined?

thank you

Pottus
17/04/2014, 04:51 PM
It tells you right there #define KEY_HANDBRAKE

TheSy
17/04/2014, 04:59 PM
Pottus;2996681']It tells you right there #define KEY_HANDBRAKE

Yes but how do I define my own key (K) for example.

Pottus
17/04/2014, 05:02 PM
You can only use the keys that are listed.

TheSy
17/04/2014, 05:03 PM
So I can not detect if a player presses the key K, then?

Niko_boy
17/04/2014, 05:08 PM
So I can not detect if a player presses the key K, then?

nop no way.

You can only detects key which are listed on that page.

Pottus
17/04/2014, 05:09 PM
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.

TheSy
17/04/2014, 05:14 PM
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.

Vince
17/04/2014, 05:19 PM
It cannot be done!

TheSy
17/04/2014, 05:52 PM
:x :(

TheSy
17/04/2014, 08:50 PM
Other idéa?