[SOLVED] KEY_JUMP && KEY_? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] KEY_JUMP && KEY_? (
/showthread.php?tid=137736)
[SOLVED] KEY_JUMP && KEY_? -
n4pkill - 29.03.2010
how to look for 2 keys pressed (combined pressed)?
Re: KEY_JUMP && KEY_? -
Babul - 29.03.2010
Код:
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))
Re: KEY_JUMP && KEY_? -
[XST]O_x - 29.03.2010
https://sampwiki.blast.hk/wiki/OnPlayerK..._multiple_keys
Re: KEY_JUMP && KEY_? -
n4pkill - 29.03.2010
thx helped me alot (can be closed)