automatic server restarter -
DauerDicht - 01.02.2009
hi, where can i find automatic server restart (with /gmx)
pls help^^
Re: automatic server restarter -
Schock - 01.02.2009
Код:
if(strcmp(cmd, "/gmx", true) == 0)
{
if (IsPlayerAdmin(playerid)) return GameModeExit();
else return SendClientMessage(playerid, RED, "You are not a admin!");
}
but it restart only your Gamemode not your FS
Re: automatic server restarter -
DauerDicht - 01.02.2009
ty, but i mean that he restart automatic without my command! u know what i mean??
sry 4 my english
Re: automatic server restarter -
Schock - 01.02.2009
if your server crash?
Re: automatic server restarter -
Schock - 01.02.2009
or after a specific time?
(sorry 4 the second post)
Re: automatic server restarter -
DauerDicht - 01.02.2009
yes that i want too
and I meant, that the server does /gmx by himself at a certain time, for example 04:00 in the morning
Re: automatic server restarter -
Schock - 01.02.2009
than use a timer ^^ and say it should restart after 24 hours and start the server at 04.00 in the morning
Re: automatic server restarter -
DauerDicht - 01.02.2009
yes sorry.. can u help me?
Re: automatic server restarter -
Schock - 01.02.2009
Код:
forward gmx();
//ongamemodeint
SetTimer("gmx", 86400000, 1);
// and on the buttom of your script
public gmx()
{
GameModeExit();
return 1;
}
Re: automatic server restarter -
DauerDicht - 01.02.2009
thx
and when it restart?
Re: automatic server restarter -
Schock - 01.02.2009
86400000 is 24 hours its in milliseconds
start the server at 4.00 and it restart at 4.00
Re: automatic server restarter -
DauerDicht - 01.02.2009
is there a other method??
Re: automatic server restarter -
Schock - 01.02.2009
i dont know sorry
Re: automatic server restarter -
DarkplayeR - 07.02.2009
try this one
http://forum.sa-mp.com/index.php?topic=17018.0
Yom's Server restarter v1.41
Gr DarkplayeR
Re: automatic server restarter -
Mikep - 07.02.2009
Shock: If the server crashed or something thats just not going to work.
Instead of mocking people about posting in the wrong topic and editing their topic to "-", get off your ass and go and learn some logic.
DauerDicht: Use GetTime();
Re: automatic server restarter -
GanG$Ta - 07.02.2009
Restarts the server everytime when its 4am:
Код:
SetTimer("RestartServer",1000,1);
public RestartServer()
{
new Hour, Minute, Second;
gettime(Hour, Minute, Second);
if(Hour == 4 && Minute == 0 && Second <= 4) return SendRconCommand("gmx");
return true;
}