26.01.2016, 22:54
(
Последний раз редактировалось Deny1; 27.01.2016 в 17:17.
)
Код:
CMD:makeadmin(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 7) { new id, string[128], level; if(sscanf(params, "dd", id, level)) return SendClientMessage(playerid, COLOR_RED, "SERVER: /makeadmin [ID] [LEVEL]"); format(string, sizeof(string), "You promoted to %d admin level.", level); ShowPlayerDialog(id,DIALOG_ADMINBOX,DIALOG_STYLE_MSGBOX,"You are an admin",string,"Ok",""); //SendClientMessage(id, COLOR_BLUE, string); PlayerInfo[id][pAdmin] = level; } else return SendClientMessage(playerid, COLOR_BLUE, "You don't have acces to that command."); return 1; }
Код:
format(string, sizeof(string), "You promoted to %d admin level.", level);