PDA

View Full Version : Saving Position Problem


kujox222
20/06/2012, 03:59 PM
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/tutorial-sa-mp-save-spawn-699593/

judothijs
20/06/2012, 05:40 PM
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.