Player State - 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: Player State (
/showthread.php?tid=647397)
Player State -
Anuris - 04.01.2018
Hello everyone.
I've tried to understand by myself, but looks like I can't.
We've got 3 internal player's states: PLAYER_STATE_EXIT_VEHICLE, PLAYER_STATE_ENTER_VEHICLE_DRIVER, PLAYER_STATE_ENTER_VEHICLE_PASSENGER.
The question is: what does "internal" mean?
https://sampwiki.blast.hk/wiki/State
Is OnPlayerStateChange going to be called when this states appears or not?
And can I get this states using GetPlayerState?
I'm sorry for my English.
Re: Player State -
DRIFT_HUNTER - 04.01.2018
No OnPlayerStateChange wont be called (OnPlayerEnter/Leave vehicle will). And internal means only used by server, it does not have sync packet/structure.
Re: Player State -
Anuris - 04.01.2018
So there's no way I can check this states?
Why they are defined in a_samp.inc?
Re: Player State -
Beckett - 04.01.2018
OnPlayerStateChange is called when a player changes state. For example, when a player changes from being the driver of a vehicle to being on-foot. You can read
this for more information.