How to spawn at last location? [ REP+ ] - 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: How to spawn at last location? [ REP+ ] (
/showthread.php?tid=339936)
How to spawn at last location? [ REP+ ] -
SampLoverNo123 - 05.05.2012
Can you tell me that what is code to save player's position on quiting or getting timeout, because when he come in my server he get back to the same position where he was before quiting/timeouting? Please help me I'll Rep+ you
Re: How to spawn at last location? [ REP+ ] -
WarriorEd22 - 05.05.2012
Take a look at this.
https://sampforum.blast.hk/showthread.php?tid=299791
Re: How to spawn at last location? [ REP+ ] -
Kyle - 05.05.2012
Store the X,Y,Z,VirtualWorld,Interior into a field and then save to their file.
When they rejoin get the details, split them up using sscanf and then set their pos, vworld, interior.