Posts: 112
Threads: 18
Joined: Dec 2012
When the server restarts and you're still logged in, your coords get reset to 0.00000.
I got told it's a SA:MP bug and there's a work-around with a timer?
Is this true? If so, how?
Regards.
Posts: 112
Threads: 18
Joined: Dec 2012
Quote:
Originally Posted by Income
It doesn't sets your coordinates to the default 0.0000 etc, it just teleports you to the beach at Los Santos.
0 coords are referring to the middle of the San Andreas map, at Blueberry - next to the farm.
|
Wrong!
It teleports me to Blueberry(Default coords at 0.00000)
Meh, I'll try it.
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
If you use a saving method for your coordinates upon OnPlayerDisconnect, and the server crashes or restarts, then they're most likely going to save as '0.00' for each coordinate, therefore placing you in your last saved coordinates (0, 0, 0) under OnPlayerSpawn... In this case, you will need to use a timer that gets the player's position every so often, and save that to their file rather than just using OnPlayerDisconnect. If it's not necessary, than I suggest removing it.