SA-MP Forums Archive
Resume where you left? - 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: Resume where you left? (/showthread.php?tid=401058)



Resume where you left? - NicholasA - 21.12.2012

Hey i was just wondering how do we make it so that when we leave and log back in our player is at the same location?


Re: Resume where you left? - LarzI - 21.12.2012

Save the player's position into files, then load them when the player spawns.

I recommend using y_ini for this. It's very simple to make.


Re: Resume where you left? - Black Wolf - 21.12.2012

If you have Player Info Saving system in your server then you can simply save Player Pos on player disconnect and after that onplayerspawn you can set his pos back.