18.02.2019, 05:19
You don't need to use state change, OnPlayerEnterVehicle is fine.
Simply get their position and set it to current.
You could still do it in OnPlayerStateChange aswell for an anti-cheat measure if you'd like.
Simply get their position and set it to current.
pawn Code:
new Float:PosX,
Float:PosY;
Float:PosZ;
GetPlayerPos(playerid, PosX, PosY, PosZ);
SetPlayerPos(playerid, PosX, PosY, PosZ);