17.03.2013, 13:38
Hi all,
I made my own GMX command and when i use the command its restarting the server and then closes the server exe.
It doesnt show anything in log that i am rejoined or something.
How can i fix this?
Admigo
I made my own GMX command and when i use the command its restarting the server and then closes the server exe.
Код:
dcmd_restart(playerid,params[]) { #pragma unused params if(PlayerInfo[playerid][AdminLevel] >= 10) { foreach(Player,i) { if(IsPlayerConnected(i)) { SavePlayer(i); } } SendRconCommand("gmx"); //GameTextForAll("Server is restarting - Please Wait.",30000,5); return 1; } else { SendClientMessage(playerid, COLOR_RED, NO_PERM); } return 1; }
How can i fix this?
Admigo