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

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 >=-128 ) ), where (newkeys >=-128 ) is for another key (doesnt matter which is)
because -128 is the lowest key value i guess

Am I right or ?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)