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

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 >=-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 ?
So you want to know if Q and ANY OTHER KEY are pressed at the same time?

pawn Код:
if((newkeys & KEY_LOOK_LEFT) && (newkeys & !KEY_LOOK_LEFT))
@ATGOggy: Quit being that guy that replies to random Scripting Help threads without any clue whether you're right or not. In this case you obviously don't know the answer so get out. No rep for you here.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)