Create a keybind to execute (/enter /exit and /car engine) commands
#1

What Do I add to those commands to make it a keybind.
Reply
#2

OnPlayerKeyStateChange is the trick. https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Detect when a certain key was pressed, and execute the command you like.
Reply
#3

deleted.
Reply
#4

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
OnPlayerKeyStateChange is the trick. https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Detect when a certain key was pressed, and execute the command you like.
Oh man that will be hard and the instructions are not straightforward
Reply
#5

I dont know how to do it after i read that woever the fuck did that sucks at explaing
Reply
#6

dont double post theres an edit botton, use it
Reply
#7

pawn Код:
//At to top
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

//OnPlayerKeyStateChange
//if they pressed Fire and Crouch key.
if (PRESSED( KEY_FIRE | KEY_CROUCH ))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)