Reconnecting where you last disconnected HELP - 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: Reconnecting where you last disconnected HELP (
/showthread.php?tid=309029)
Reconnecting where you last disconnected HELP -
MR,Mr - 06.01.2012
Hello, I was wondering how to make a piece of script that remembers where you where when you left the game,
So when you re-connect you start where you left off. I know this is possible but I'm new to scripting and need help thanks.
Re: Reconnecting where you last disconnected HELP -
Scenario - 06.01.2012
You need to save the player's location to something/somewhere when the player disconnects from the server. Once they reconnect, load the saved information and then set their position.
Check out y_ini or any SQL system for such a saving/loading system.
Re: Reconnecting where you last disconnected HELP -
MR,Mr - 06.01.2012
Thanks but it think you missed the "new to scripting" part :P Could you make it for me ?
Re: Reconnecting where you last disconnected HELP -
brett7 - 06.01.2012
Maybe try
https://sampforum.blast.hk/showthread.php?tid=299791
Re: Reconnecting where you last disconnected HELP -
Scenario - 06.01.2012
You're new to scripting, but not totally incompetent of learning how to do things, right?
Check out the Scripting Tutorials section, there are HUNDREDS of tutorials about doing this type of thing.
Remember, we learn by doing!
Re: Reconnecting where you last disconnected HELP -
MR,Mr - 06.01.2012
That looks about right but I am running lux admin and that has the necessary positions information so, if some one can help me make use of this it would save some time.