How can i detect 2 keys? - 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: How can i detect 2 keys? (
/showthread.php?tid=187521)
How can i detect 2 keys? -
ZamaXor - 03.11.2010
I need to detect 2 keys so if player press only KEY_FIRE it will detect it or if he will press KEY_ACTION it will detect it. So players can use the key that they like.
pawn Код:
if(keys & KEY_FIRE && KEY_ACTION)
Re: How can i detect 2 keys? -
Grim_ - 03.11.2010
pawn Код:
if(keys & KEY_FIRE || keys & KEY_ACTION)
Re: How can i detect 2 keys? -
ZamaXor - 03.11.2010
Thank you Grim_ it works.
Re: How can i detect 2 keys? -
Grim_ - 03.11.2010
No problem, glad I could help.