Returning same place after crash
#1

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
Reply
#2

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

ive searhced it, but coulnt find.
Reply
#4

BUMP
Reply
#5

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.
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)