Saving player pos - 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: Saving player pos (
/showthread.php?tid=270927)
Saving player pos -
marwan - 22.07.2011
Hi i used that script
http://forum.sa-mp.com/showthread.ph...layer+Position to save the player pos but if the player don't have a file in scriptfiles it spawn him in x,y,z=0 i want the script if he don't have a file he spawn at the normal player spawn
Re: Saving player pos -
Lorenc_ - 22.07.2011
pawn Код:
#define SPAWN_FILE "save_%s.ini" // Change this
OnPlayerSpawn:
new string[5+4+MAX_PLAYER_NAME+10], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), SPAWN_FILE, name);
if(!fexist(string)) return 1;
Not sure if it works, I wrote it on this little input box. May/may not have errors
Re: Saving player pos -
marwan - 22.07.2011
it didn't work now he never spawn at his saved pos
Re: Saving player pos -
Lorenc_ - 22.07.2011
Can you read?
"#define SPAWN_FILE "save_%s.ini" // Change this"
Re: Saving player pos -
marwan - 22.07.2011
i did i dont save in a file just %S.ini i changed it it don't work