Spawn Position Saver After Crash/Relog - 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: Spawn Position Saver After Crash/Relog (
/showthread.php?tid=75483)
Spawn Position Saver After Crash/Relog -
Jaztek_Hodzic - 02.05.2009
Is there a FS or anything that saves the persons positions when they crash or relog?
without getting MySQL or anything?
if so please tell
Thanks
Re: Spawn Position Saver After Crash/Relog -
[nl]daplayer - 02.05.2009
Quote:
Originally Posted by Eric Akito,
Is there a FS or anything that saves the persons positions when they crash or relog?
without getting MySQL or anything?
if so please tell
Thanks
|
You just create a file ex. "playername.crash" store the last saved pos of the player
and when the player comes back check if the file exists, if so read the file and set the play to the position in the file
and then delete it.
Re: Spawn Position Saver After Crash/Relog -
Jaztek_Hodzic - 02.05.2009
im not getting you :S
sorry
Re: Spawn Position Saver After Crash/Relog -
Forbs - 02.05.2009
Quote:
Originally Posted by Eric Akito,
im not getting you :S
sorry
|
lol in pawno type this what is he say....
Re: Spawn Position Saver After Crash/Relog -
[nl]daplayer - 02.05.2009
Please before you are going to script some more advanced stuff, start creating smaller gamemodes, like dms and such, read the
Wiki, and learn a little bit of C (the syntax of pawn is based on C)