Posts: 281
Threads: 49
Joined: Mar 2009
Reputation:
0
I want in my server to save players' last position when they disconnect so the next time they log in they'll spawn to the same place.I'm looking for it for months.Please help me!!!!!!!!!
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
Which saving system are you using?
Posts: 39
Threads: 9
Joined: Jun 2009
Reputation:
0
And it also isn't difficult.
Think this way:
- GetPlayerPos at OnPlayerDisconnect.
- Save into file with fwrite etc.
- Open file when the same player connect, OnPlayerConnect.
- Set the player on his original position by SetPlayerPos.
I will not give you a code, but I will help you by solving problems.