18.09.2015, 11:16
So I found a /makeadmin cmd. When I type this, it doesn't response..It just appears the same message.
Код:
CMD:makeadmin(playerid, params[]) { if(pInfo[playerid][AdminLevel] >= 6 || IsPlayerAdmin(playerid)) { new id, level, string[126]; if(sscanf(params, "ud", id, level)) return SendClientMessage(playerid, -1, "Syntax: /makeadmin [playerid] [level]"); if(pInfo[playerid][AdminLevel] > pInfo[id][AdminLevel]) { pInfo[id][AdminLevel] = level; format(string, sizeof(string), "%s has made you admin level %d", GetNameEx(playerid), level); SendClientMessage(id, -1, string); format(string, sizeof(string), "You have made %s an admin level %d", GetNameEx(id), level); SendClientMessage(playerid, -1, string); } } return 1; }