save player position ! - 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: save player position ! (
/showthread.php?tid=213579)
save player position ! -
dorperez - 19.01.2011
Hey guys !!
how can i save position when player disconnected and when he is connect again he start in the same position when he disconnected??
Re: save player position ! -
-Rebel Son- - 19.01.2011
You would need to save it within your account database, but somthing like..
((on your Enum))
Code:
Float:pX,
Float:pY,
Float:pZ,
((On player Disconnect))
Code:
GetPlayerPos(playerid,pInfo[playerid][pX],pInfo[playerid][pY],pInfo[playerid][pZ]);
Somthing along the lines of there. then load it from the file.
Re: save player position ! -
THE_KNOWN - 19.01.2011
tried that with dini but it didnt save it as a float value for me which made me switch to mysql