Is this possible ? - 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)
+--- Thread: Is this possible ? (
/showthread.php?tid=348275)
Is this possible ? -
Geniuss - 04.06.2012
Well OnPlayerStateChange i have
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
Is it possible to do something like this
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate, newkeys, oldkeys)
Because in on of the things in there i have newkeys and it says undefined symbol
Please Help
Help Is Appreciated
Re: Is this possible ? - HuSs3n - 04.06.2012
its not unless u use GetPlayerKeys
AW: Is this possible ? -
Extremo - 04.06.2012
I am afraid but you'll have to rely on using this
OnPlayerKeyStateChange, unless of course you check for the keys with GetPlayerKeys and make the parameters yourself.
Re: AW: Is this possible ? -
FalconX - 04.06.2012
Quote:
Originally Posted by Geniuss
Well OnPlayerStateChange i have
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
Is it possible to do something like this
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate, newkeys, oldkeys)
Because in on of the things in there i have newkeys and it says undefined symbol
Please Help
Help Is Appreciated
|
You can either use "GetPlayerKeys" on OnPlayerStateChange or either use "GetPlayerState" on OnPlayerKeyStateChange.
-FalconX
Re: Is this possible ? -
park4bmx - 04.06.2012
Small note
OnplayerKeyStateChange doest get called on
up & down
Re: Is this possible ? -
ViniBorn - 04.06.2012
Yes, it's possible. But isn't so simple
Re: Is this possible ? -
Geniuss - 04.06.2012
What is the key for the bottom left ctrl key
Thank You
Help Is Appreciated
Re: Is this possible ? -
FalconX - 04.06.2012
Quote:
Originally Posted by Geniuss
What is the key for the bottom left ctrl key
Thank You
Help Is Appreciated
|
KEY_FIRE
_FalconX