Hey, admin level problem:
#7

pawn Код:
if(strcmp(cmdtext, "/setlevel", true) == 0)
{
            new tmp[256], tmp2[256], Index;     tmp = strtok(params,Index), tmp2 = strtok(params,Index);
            if(!strlen(params)) return SendClientMessage(playerid, VERMELHO, "USAGE: /setlevel [playerid] [level]");
            new player1, level, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            GetPlayerName(playerid, adminname, MAX_PLAYER_NAME);
            player1 = strval(tmp);
            level = strval(tmp2);
            if(!strlen(tmp2)) return SendClientMessage(playerid, VERMELHO, "USAGE: /setlevel [playerid] [level]");
            if(!IsPlayerConnected(player1)) return SendClientMessage(playerid, VERMELHO, "Player nгo conectado");
            if(level > MAX_LEVEL) return SendClientMessage(playerid, VERMELHO, "Level maximo й 100. Escolha igual ou menor a 100");
            format(string,sizeof(string),"ADMIN: %s mudou o level de %s para %d", adminname, playername, level);
            dUserSetINT(PlayerName2(player1)).("Level",(level));
            PlayerInfo[player1][Level] = level;
            dUserSetINT(PlayerName2(player1)).("level",(level));
            PlayerInfo[player1][Level] = level;
            return SendClientMessageToAll(BRANCO, string);
           

}
Reply


Messages In This Thread
Hey, admin level problem: - by blackwave - 14.11.2010, 18:16
Re: Hey, admin level problem: - by Mike_Peterson - 14.11.2010, 18:24
Re: Hey, admin level problem: - by dark_clown - 14.11.2010, 18:26
Re: Hey, admin level problem: - by blackwave - 14.11.2010, 18:29
Re: Hey, admin level problem: - by blackwave - 14.11.2010, 18:47
Re: Hey, admin level problem: - by blackwave - 14.11.2010, 19:29
Re: Hey, admin level problem: - by Kidemo - 14.11.2010, 19:32
Re: Hey, admin level problem: - by blackwave - 14.11.2010, 19:53
Re: Hey, admin level problem: - by blackwave - 14.11.2010, 21:13

Forum Jump:


Users browsing this thread: 2 Guest(s)