open.mp forum
[Pawn] How to Get Old State Player? - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10)
--- Thread: [Pawn] How to Get Old State Player? (/showthread.php?tid=1185)



How to Get Old State Player? - Jonies - 2020-09-27

Is The GetPlayerOldState(playerid) work? i can't find it on wiki.open.mp If someone has implemented code can you send here?


RE: How to Get Old State Player? - Carlos - 2020-09-27

All you'd need to?implement is a global variable that stores the player's old state when OnPlayerStateChange (see: https://wiki.open.mp/docs/scripting/callbacks/OnPlayerStateChange)?is called.


RE: How to Get Old State Player? - BrunoNapoli97 - 2020-09-27

A friend of mine created this: https://pastebin.com/Y4c2LKgB


RE: How to Get Old State Player? - Jonies - 2020-09-28

Okay thanks bro