/makeadmin doesnt saves ?
#1

Hello all,
pawn Код:
COMMAND:makeadmin(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_ERROR,"[ERROR]: You are not authorized to use this command ");
    new id, lvl;
    if(sscanf(params, "ui", id, lvl)) return SendClientMessage(playerid, COLOR_SYNTAX, "[SYNTAX]: /makeadmin [PlayerID/PartOfName] [Level]");
    else if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_ERROR, "[ERROR]: Invalid ID");
    else if(lvl > 5) return SendClientMessage(playerid, COLOR_ERROR, "[ERROR]: Administrator level cannot be higher then 5!");
    else
    {
    PlayerInfo[id][Adminlevel] = lvl;
    }
    return 1;
}
Basically this CMD doesnt saves my admin.. I'm using Y_ini
In my scriptfiles >> users info.. It comes Adminlevel = 5
but Admin cmds doesnt work when I go IG.
Reply


Messages In This Thread
/makeadmin doesnt saves ? - by Benzke - 14.09.2012, 16:11
AW: /makeadmin doesnt saves ? - by BiosMarcel - 14.09.2012, 16:14
Re: /makeadmin doesnt saves ? - by Benzke - 14.09.2012, 16:15
Re: /makeadmin doesnt saves ? - by clarencecuzz - 14.09.2012, 16:18

Forum Jump:


Users browsing this thread: 3 Guest(s)