[SOLVED] KEY_JUMP && KEY_?
#1

how to look for 2 keys pressed (combined pressed)?
Reply
#2

Код:
	if ((oldkeys & KEY_SUBMISSION) && (newkeys & KEY_HANDBRAKE) && !(oldkeys & KEY_HANDBRAKE))
the submission is the "shift"-key, while its being pressed, the trigger is the "handbrake"-key. its only detecting the key pressed once. holding down the handbrake is not detected above.
if u need testing them all the time, try like this:
Код:
	if ((oldkeys & KEY_SUBMISSION) && (newkeys & KEY_HANDBRAKE))
Reply
#3

https://sampwiki.blast.hk/wiki/OnPlayerK..._multiple_keys
Reply
#4

thx helped me alot (can be closed)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)