Posts: 372
Threads: 63
Joined: Aug 2010
Reputation:
0
I've been trying to find a way to do what the title says. However, I haven't found a way to do it yet. I know it's possible using OnPlayerUpdate, but that's a bit laggy and I don't like to do it. I've tried making a loop under OnGameModeExit and I've also tried saving position when GMX is called. None of it has worked. Anyone have an idea of what I could do?
Posts: 62
Threads: 8
Joined: Jan 2011
Reputation:
0
Ok, OnPlayerDisconnect: ''GetPlayerPos(playerid);'' This is what you need to put before the player goes offline. Once this is done you want to set his position to his old one.
It's all about logic bro.
Posts: 372
Threads: 63
Joined: Aug 2010
Reputation:
0
I forgot to mention that I do have it under OnPlayerDisconnect. When I restart the server, it doesn't save the position, it sets it to 0,0,0 and sets my pos to 0,0,0 when the server is done restarting.