SA-MP Forums Archive
Saving Position Problem - 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: Saving Position Problem (/showthread.php?tid=352631)



Saving Position Problem - kujox222 - 20.06.2012

Alright I created a saving position piece into my script, well from the first login you are falling through blueberry then spawn at blueberry does anyone know how to fix this? I used this tutorial for it, http://forum.ragezone.com/f500/tutor...-spawn-699593/


Re: Saving Position Problem - judothijs - 20.06.2012

Add a check if their account exists, if so, use SetPlayerPos with their saved position coordinates.
If their account is new, use SetPlayerPos(playerid, desired_x_cord, desired_y_cord, desired_z_cord);

Your script probably lacks the SetPlayerPos for the first time, check if it's there on OnPlayerConnect.