22.02.2014, 11:00
Hi,
when i want to use command i have to use small letters, example, if i type /admins command will work but if I type /Admins or /aDmins command will not work...I tried to change something in include file but it's not working
command:
when i want to use command i have to use small letters, example, if i type /admins command will work but if I type /Admins or /aDmins command will not work...I tried to change something in include file but it's not working
command:
Код:
CMD:admins(playerid, params[]) { if(sscanf(params, "")) {} new admin = 0; new str[256]; foreach(petla, i) { if(PlayerInfo[i][pAdmin] > 0) { format(str,sizeof(str),""COL_YELLOW"%sAdmin level "COL_RED"|"COL_YELLOW" %d"COL_RED" |"COL_YELLOW" %s [ID: %d]\n", str, PlayerInfo[i][pAdmin], NickName(i), playerid); admin++; } } if(admin >= 1) ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, "Admins Online:", str, "Close", ""); if(admin == 0) SCM(playerid, COLOR_GREY, "No admins online."); return 1; }