Key detection
#1

Hu guys,
how I can detect when player press some other key(eg. X, V, B etc...)?
Reply
#2

You cannot detect specific keys, only mapped game functions. For example, you can't detect SPACE or SHIFT, but you can detect 'Sprint' and 'Jump'.

See the wiki for more info:
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/GetPlayerKeys
Reply
#3

Hello!

Here is a list for key, which you can detect.
https://sampwiki.blast.hk/wiki/Keys
Reply
#4

Okey... Can player walk/jump/sprint/crouch in same time when is SelectTextDraw turned on?
Reply
#5

No you can't walk or sprint if SelectTextDraw is turned on.
Reply
#6

Damm it, tanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)