23.07.2015, 12:05
(
Последний раз редактировалось Deny1; 23.07.2015 в 12:43.
)
Код:
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); 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; }