[HELP] Autosave when server crashes/shutdown.
#7

Quote:
Originally Posted by iggy1
Посмотреть сообщение
If all your player variables still hold the correct values you should be able to save in OnGameModeExt, but keep in mind PVars reset when a player disconnects.

EDIT: You could set the players camera position somewhere else until you spawn them properly.
Like this?
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}
public 
OnPlayerConnect(playerid) {
    
TogglePlayerSpectating(playeridtrue);
    return 
1;

and when the players successful login its will spawn him.

Quote:
Originally Posted by Sithis
Посмотреть сообщение
Instead of using rcon gmx to restart your gamemode, make a command that saves all players and then sendrconcommand gmx.
I already got one, but that impossible to save the player data when I'm closing the CMD window?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)