Define a key
#1

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
Reply
#2

It tells you right there #define KEY_HANDBRAKE
Reply
#3

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.
Reply
#4

You can only use the keys that are listed.
Reply
#5

So I can not detect if a player presses the key K, then?
Reply
#6

Quote:
Originally Posted by TheSy
Посмотреть сообщение
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.
Reply
#7

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.
Reply
#8

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.
Reply
#9

It cannot be done!
Reply
#10

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)