if(strcmp(cmd, "/makeadminoff", true) == 0 || strcmp(cmd, "/maoff", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsPlayerName(playerid,"DeM") && (!Player[playerid][PAdminoff])) { Player[playerid][PAdminoff] = 1; new plname[MAX_PLAYER_NAME]; GetPlayerName(playerid,plname,MAX_PLAYER_NAME); format(string, 256, "???????? ???? %s ???????? ????????????? /makeadmin.",plname); ABroadCast(COLOR_GRAD1,string,1); } else if(IsPlayerName(playerid,"DeM") && (Player[playerid][PAdminoff])) { Player[playerid][PAdminoff] = 0; new plname[MAX_PLAYER_NAME]; GetPlayerName(playerid,plname,MAX_PLAYER_NAME); format(string, 256, "???????? ???? %s ??????? ????????????? /makeadmin.",plname); ABroadCast(COLOR_GRAD1,string,1); } else { SendClientMessage(playerid, COLOR_GRAD1, "?? ?? ???????? ????."); } } return 1; }
в /makeadmin
if(Player[playerid][PAdminoff] != 1) { SendClientMessage(playerid, COLOR_GRAD2, "* ???????? ???? ???????? ?????? ???????."); return 1; }
Cуть проблемы в том что не рабит)) команда /maoff закрывает команду /makeadmin ну должно а он не хочет)