Player State
#1

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.
Reply
#2

No OnPlayerStateChange wont be called (OnPlayerEnter/Leave vehicle will). And internal means only used by server, it does not have sync packet/structure.
Reply
#3

So there's no way I can check this states?

Why they are defined in a_samp.inc?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)