03.08.2013, 17:45
Код:
CMD:setadmin(playerid,params[]) { new id,level; if(IsPlayerAdmin(playerid)) { if(sscanf(params,"ud",id,level)) { return SendClientMessage(playerid, 0xFF0000AA, "Usage: /givecash <playerid/name> <amount>"); } else { if(level > 5)) return test(playerid); } 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"); } }
Код:
if(level > 5)) return test(playerid);