/setlevel help
#3

pawn Код:
CMD:setlevel(playerid, params[])
{
    new targetid;
    new level;
    if(sscanf(params, "ui", targetid, level))return SendClientMessage(playerid, -1, "[USAGE]: /setlevel {FF0000}[PlayerID] [Level]");
    if(!IsPlayerConnected(targetid))return SendClientMessage(playerid, -1, "[ERROR]: {FFFFFF}This player is {FF0000}NOT {FFFFFF}connected!");
    if(level < 0 || level > 10)return SendClientMessage(playerid, -1, "[ERROR]: Invalid Admin Level (0-10)!"); //Change "10" to your MAX. admin level.
    pInfo[targetid][Adminlevel] = level;
    new INI:file = INI_Open(Path(playerid));
    INI_SetTag(file, "Player's Data");
    INI_WriteInt(file, "AdminLevel", pInfo[targetid][Adminlevel]);
    return 1;
}
Reply


Messages In This Thread
/setlevel help - by xPirate - 01.09.2013, 08:46
Re: /setlevel help - by xPirate - 01.09.2013, 09:15
Re: /setlevel help - by Areax - 01.09.2013, 10:03
Re: /setlevel help - by xPirate - 01.09.2013, 10:13
Re: /setlevel help - by xPirate - 01.09.2013, 10:15
Re: /setlevel help - by park4bmx - 01.09.2013, 10:21

Forum Jump:


Users browsing this thread: 1 Guest(s)