/Setlevel command not working ..
#10

try this , idk ur saving system but lemme guess lolz

pawn Код:
CMD:setlevel(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
        new target,level,string[124],pName[24];
        if(sscanf(params,"ud",target,level)) return SendClientMessage(playerid,-1,"{FF0000}[USAGE]: {FFFFFF}/Setlevel (PlayerID) (Level)");
        if(!IsPlayerConnected(target)) return SendClientMessage(playerid,-1,"ERROR:Player not connected.");
        if(level < 0 || level > 3) return SendClientMessage(playerid,-1,"ERROR:Invalid level. (1 - 3)");
        GetPlayerName(target,pName,sizeof(pName));
        format(string,sizeof(string),"{00FF40}%s Has Been Promoted To Level %d Administrator!",pName,level);
        SendClientMessageToAll(-1,string);
        PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
           
        new file[256];
        PlayerInfo[id][pAdmin] = level;
        dini_IntSet(file,"pAdmin",level);
    }
    else return SendClientMessage(playerid, -1, "You are not an Admin!");
    return 1;
}
Reply


Messages In This Thread
/Setlevel command not working .. - by Threshold - 03.12.2012, 15:37
Re: /Setlevel command not working .. - by [HK]Ryder[AN] - 03.12.2012, 15:53
Re: /Setlevel command not working .. - by Konstantinos - 03.12.2012, 15:55
Re: /Setlevel command not working .. - by [HK]Ryder[AN] - 03.12.2012, 15:57
Re: /Setlevel command not working .. - by dannyk0ed - 03.12.2012, 15:59
Re: /Setlevel command not working .. - by Djole1337 - 03.12.2012, 16:00
Re: /Setlevel command not working .. - by [HK]Ryder[AN] - 03.12.2012, 16:00
Re: /Setlevel command not working .. - by Konstantinos - 03.12.2012, 16:03
Re: /Setlevel command not working .. - by Threshold - 03.12.2012, 16:05
Re: /Setlevel command not working .. - by Devilxz97 - 03.12.2012, 16:07

Forum Jump:


Users browsing this thread: 2 Guest(s)