SA-MP Forums Archive
Returning same place after crash - 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: Returning same place after crash (/showthread.php?tid=68096)



Returning same place after crash - pkruneiljas - 07.03.2009

im wondering that can someone make me script what returns after crash?
http://forum.sa-mp.com/index.php?topic=91039.0 like in that GM


Re: Returning same place after crash - [RP]Rav - 07.03.2009

1. search and you will find
2. if #1 fails there's always a special script request thread


Re: Returning same place after crash - pkruneiljas - 07.03.2009

ive searhced it, but coulnt find.


Re: Returning same place after crash - pkruneiljas - 08.03.2009

BUMP


Re: Returning same place after crash - MenaceX^ - 08.03.2009

Create variebles of crashes positions inside the player enum. Then go to OnPlayerDisconnect, I don't remember the reason of crash. It's 0 or 2. I'm not sure, so find the correct reason. When the player crashes save it to the player details. Of course you need a varieble of 'crashed' or something like. Set the 'crashed' to 1 when the player crash. Then OnPlayerSpawn - If 'crashed' is on 1, it returns the player to his old position, where he got crashed.


Re: Returning same place after crash - Zoopaman - 08.03.2009

just save the player's coordinates from time to time, and load them on next login


Re: Returning same place after crash - pkruneiljas - 08.03.2009

can somebody help whit that thing? im not verygood at codeing