Key Z samp.
#1

How to detect if a player press a key Z?

Thx
Reply
#2

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

not sure if gonna work , but:
pawn Код:
#define KEY_Z 0x5A
defining it using the hex value of it
Reply
#4

Quote:
Originally Posted by Sawalha
Посмотреть сообщение
not sure if gonna work , but:
pawn Код:
#define KEY_Z 0x5A
defining it using the hex value of it
Not work in OnPlayerKeyStateChange :/
Reply
#5

Up please
Reply
#6

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

It's not possible to detect the key z?
Reply
#8

I think he wants an unused key. There are many keys that are rarely used.
Reply
#9

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

Not idea to make this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)