03.08.2013, 16:35
Код:
CMD:setadmin(playerid,params[]) { new id,level; if(IsPlayerAdmin(playerid)) { if(sscanf(params,"ud",id,level) return SendClientMessage(playerid, COL_RED, "Usage: /setadmin [id] [level] "); else { if(level > 5) return SendClientMessage(playerid, COL_RED, "Usage: /setadmin id 1-5"); else { new INI:File = INI_Open(UserPath(id)); INI_WriteInt(File,"Admin",level); INI_Close(File); } } } else { SendClientMessage(playerid, COL_RED, "That id is not connected"); } }