Reconnect Players on restart
#7

Код:
public OnRconCommand(cmd[])
{
	if(!strcmp(cmd,"restart"))
	{
	    //restart server
	    print("[DEINIT]Server will restart in 3 seconds");
		for(new i;i < maxplayers;i++) TimePlayer(i);
	    SetTimer("ExitServer",3000,false);
	}
	return 1;
}
I did something like this.But when I restart after 3s (when the server exits) I get a message "Server closed connection.".

The TimePlayer Function is working(used before for timing out desynced players).


EDIT:What if I somehow crash the server when I want to restart? :P
Reply


Messages In This Thread
Reconnect Players on restart - by Yashas - 03.03.2014, 15:05
Re: Reconnect Players on restart - by Keyhead - 03.03.2014, 15:08
Re: Reconnect Players on restart - by Yashas - 03.03.2014, 15:14
Re: Reconnect Players on restart - by anou1 - 03.03.2014, 15:19
Re: Reconnect Players on restart - by Vince - 03.03.2014, 15:40
Re: Reconnect Players on restart - by Yashas - 03.03.2014, 16:08
Re: Reconnect Players on restart - by Yashas - 03.03.2014, 19:24
Re: Reconnect Players on restart - by Nurgle4 - 03.03.2014, 19:41
Re: Reconnect Players on restart - by Yashas - 04.03.2014, 03:35
Re: Reconnect Players on restart - by Nurgle4 - 04.03.2014, 04:15

Forum Jump:


Users browsing this thread: 3 Guest(s)