SA-MP Forums Archive
Help with saving position and loading it [Dini] - 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: Help with saving position and loading it [Dini] (/showthread.php?tid=201582)



Help with saving position and loading it [Dini] - [JnA]DukeNukem - 21.12.2010

Um guys i need some help with saving/loading player positions on disconnect/spawn, using .ini files Can you make me the code?


Thanks in advance


Re: Help with saving position and loading it [Dini] - akis_tze - 21.12.2010

pawn Код:
public OnPlayerDisconnect(playerid,reason)
new Float:x, Float:y, Float:z;
dini_IntSet(file, "Pos", GetPlayerPos(playerid, x, y, z));

public OnPlayerSpawn(playerid)
SetPlayerPos(playerid, dini_Int(file, "Pos"));
Try it


Re: Help with saving position and loading it [Dini] - [JnA]DukeNukem - 22.12.2010

Will do