2 or 3 keys pressed in the same time | Please help
#8

Quote:
Originally Posted by AdrianG
Посмотреть сообщение
So, i checked the https://sampwiki.blast.hk/wiki/OnPlayerK..._multiple_keys but I want to know just if Q is pressed doesn't matter which one is also pressed. So I have to check for each combination like if ((newkeys & KEY_LOOK_LEFT) && (newkeys & KEY_CROUCH)) ??

Or if ((newkeys & KEY_LOOK_LEFT) && (newkeys >=1)), where (newkeys >=1) is for another key (doesnt matter which is)
First one will work only if the player presses one key after the another.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)