SA-MP Forums Archive
A good scripter should help me with this!!! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A good scripter should help me with this!!! (/showthread.php?tid=83035)



A good scripter should help me with this!!! - pierhs - 22.06.2009

I want in my server to save players' last position when they disconnect so the next time they log in they'll spawn to the same place.I'm looking for it for months.Please help me!!!!!!!!!


Re: A good scripter should help me with this!!! - Grim_ - 22.06.2009

Which saving system are you using?


Re: A good scripter should help me with this!!! - pierhs - 22.06.2009

I'm not using


Re: A good scripter should help me with this!!! - Grim_ - 22.06.2009

http://forum.sa-mp.com/index.php?topic=4798.0 - Look at this, it includes saving position.


Re: A good scripter should help me with this!!! - pascallj - 22.06.2009

And it also isn't difficult.

Think this way:
- GetPlayerPos at OnPlayerDisconnect.
- Save into file with fwrite etc.
- Open file when the same player connect, OnPlayerConnect.
- Set the player on his original position by SetPlayerPos.

I will not give you a code, but I will help you by solving problems.