How to check if a player is holding 2 buttons? - 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 to check if a player is holding 2 buttons? (
/showthread.php?tid=152032)
How to check if a player is holding 2 buttons? -
Packadore - 02.06.2010
Hello,
Could you tell my how can i check if a player is holding down two buttons, like LMB + RMB (aiming) ?
Thank you.
Re: How to check if a player is holding 2 buttons? -
Antonio [G-RP] - 02.06.2010
OnPlayerKeyStateChange and KEY_RMB I think not sure
Re: How to check if a player is holding 2 buttons? -
Packadore - 02.06.2010
I know that, but how to check for 2 of them holding at the same time.
Re: How to check if a player is holding 2 buttons? -
cessil - 02.06.2010
the wiki tells you how
Re: How to check if a player is holding 2 buttons? -
Antonio [G-RP] - 02.06.2010
pawn Код:
if((newkeys & KEY...) && (newkeys & KEY...))
Try that
Re: How to check if a player is holding 2 buttons? -
DJDhan - 02.06.2010
>>>How to check for multiple keys<<<
Re: How to check if a player is holding 2 buttons? -
Packadore - 02.06.2010
Thx.
Re: How to check if a player is holding 2 buttons? -
Steven82 - 02.06.2010
why the fuck would you use OnPlayerStateChange? That is one stupid fucking answer.
Re: How to check if a player is holding 2 buttons? -
DJDhan - 02.06.2010
Quote:
Originally Posted by Steven82
why the fuck would you use OnPlayerStateChange? That is one stupid fucking answer.
|
I don't see any such answer here
Re: How to check if a player is holding 2 buttons? -
IcyBlight - 02.06.2010
Quote:
Originally Posted by Steven82
why the fuck would you use OnPlayerStateChange? That is one stupid fucking answer.
|
Yours is one stupid fucking answer, they said OnPlayerKEYStateChange. Wake up before you flame others, retard.