08.12.2011, 16:30
I commented the command, compiled and restarted several times yet....it still works!
pawn Код:
/*CMD:gmx(playerid, params[])
{
if(LoggedIn[playerid] == 0) return SendClientMessage(playerid, COLOUR_GREY, "You must be logged in to use this command.");
new reason[128], time;
if(AdminLevel[playerid] < 3) return SendClientMessage(playerid, COLOUR_GREY, "You are not authorized to use this command.");
if(sscanf(params, "ds[128]", time, reason)) return SendClientMessage(playerid, COLOUR_GREY, "Usage: /gmx [time till restart] [reason]");
if(time < 1 ||time > 60) return SendClientMessage(playerid, COLOUR_GREY, "Time must be between 1 minute and 1 hour.");
format(reason, sizeof(reason), "Admin %s has initiated a Server Restart in %d minutes [Reason: %s]", GetNameEx(playerid), time, reason);
SendClientMessageToAll(0x95FFB4FF, reason);
GMXTIME = time;
return 1;
}
*/