Posts: 88
Threads: 14
Joined: Jul 2010
Reputation:
0
I'd like a command which would restart my server. Please, dont tell me about /rcon gmx, cause it just loads the game mode, but I'm meaning reload the game mode + all filterscripts ; if anybody has it, please post.
Posts: 256
Threads: 23
Joined: Dec 2009
Reputation:
0
I just made a quick one, I use zcmd you can use any cmd to process the request.
if (strcmp("/restart", cmdtext, true, 8 ) == 0)
{
if(IsPlayerAdmin(playerid)) {
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("unloadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("loadfs filtersctipt");
SendRconCommand("gmx"); }
return 1; }
return 0;
Replace the "filterscript" with your filterscripts file names.
Posts: 256
Threads: 23
Joined: Dec 2009
Reputation:
0
I changed it a little, haven't tested but I think you can do it either ways.