/Setlevel Command
#1

Okay I been working on my admin system, due to alot of ABUSIVE head admins, I want to make /setlevel only for RCON admins.

This is my code


pawn Код:
dcmd_setlevel(playerid,params[]) {
    if(PlayerInfo[playerid][LoggedIn] == 1) {
        if(PlayerInfo[playerid][Level] >= 5 || IsPlayerAdmin(playerid)) {
            new tmp[256], tmp2[256], Index;     tmp = strtok(params,Index), tmp2 = strtok(params,Index);
            if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /setlevel [playerid] [level]");
            new player1, level, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
            player1 = strval(tmp);
            if(!strlen(tmp2)) return SendClientMessage(playerid, red, "USAGE: /setlevel [playerid] [level]");
            level = strval(tmp2);
I need to change the

pawn Код:
if(PlayerInfo[playerid][Level] >= 5 || IsPlayerAdmin(playerid)) {
But when i remove the if(PlayerInfo[playerid][Level] >= 5 then it has errors please Help me!
Reply


Messages In This Thread
/Setlevel Command - by California_ - 10.09.2012, 14:29
Re: /Setlevel Command | WILL +REP - by UnknownGamer - 10.09.2012, 14:30
Re: /Setlevel Command | WILL +REP - by Biess - 10.09.2012, 14:31
Re: /Setlevel Command | WILL +REP - by vIBIENNYx - 10.09.2012, 14:39
Re: /Setlevel Command | WILL +REP - by California_ - 10.09.2012, 14:41

Forum Jump:


Users browsing this thread: 1 Guest(s)