24.03.2012, 06:37
Код:
command(gmx, playerid, params[]) { new reason[128]; if(sscanf(params, "z", reason)) { if(Player[playerid][AdminLevel] >= 6) { SendClientMessage(playerid, WHITE, "Server: /gmx [reason]"); } } else { if(Player[playerid][AdminLevel] >= 6) { if(CurGMX == 0) { GMXPrep(playerid, reason); } else { SendClientMessage(playerid, WHITE, "There already is a current GMX in execution."); } } } return 1; }
Ex: /gmx [time] [reason]
Ex: /gmx 10(in minutes) Updates
Would anyone know how I could go about doing this?