SA-MP Forums Archive
Appear where i last logged out - 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: Appear where i last logged out (/showthread.php?tid=96355)



Appear where i last logged out - SimonXY - 07.09.2009

Hello, i'm trying to script something so that when peoples log out , the next time they log in they are in the same spot. For all my OnPlayerSpawns for all ranks, i've added SetPlayerPos(playerid, x, y, z); and at the beggining of my public call, i've added new Float, Float:y, Float:z;. However, whenever i start it up, i always spawn in some farm area at the edge of the map. In OnPlayerDisconnect i've also put new Float, Float:y, Float:z; and GetPlayerPos(playerid, x, y, z);

Anyone know what's up?


Re: Appear where i last logged out - Zezombia - 07.09.2009

You don't have the X, Y, and Z variables set to a value when they first spawn.


Re: Appear where i last logged out - SimonXY - 08.09.2009

Can it be any value? Or does it have to be a specific value?


Re: Appear where i last logged out - Dak_Cobain - 09.09.2009

You save it to their file in the X, Y and Z format then load it up on "/login"