Duvida WARNING
#5

pawn Код:
if(strcmp(cmd, "/lidertemp", true) == 0 && PlayerInfo[playerid][pAdmin] == 1342)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /liderex [id] [Numero(1-22)]");
                return 1;
            }
            new para1;
            new level;
            para1 = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            level = strval(tmp);
            if(level > 18 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "Empregos de 1 a 22"); return 1; }
            if(PlayerInfo[para1][pLider] != 0 && PlayerInfo[para1][pMembro] != 0)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Este player jб participa de uma organizaзгo!");
                return 1;
            }
            if(IsPlayerConnected(para1))
            {
                if(para1 != INVALID_PLAYER_ID)
                {
                    if(level == 1) { PlayerInfo[para1][pSkin] = 265; }//Policia Militar
                    else if(level == 2) { PlayerInfo[para1][pSkin] = 285; }//B.O.P.E
                    else if(level == 3) { PlayerInfo[para1][pSkin] = 287; }//Exйrcito
                    else if(level == 4) { PlayerInfo[para1][pSkin] = 70; }//Fire/Ambulance
                    else if(level == 5) { PlayerInfo[para1][pSkin] = 115; }//Varrios Los Aztecas
                    else if(level == 6) { PlayerInfo[para1][pSkin] = 249; }//Taliban
                    else if(level == 7) { PlayerInfo[para1][pSkin] = 147; }//Prefeito
                    else if(level == 8) { PlayerInfo[para1][pSkin] = 294; }//Hitmans
                    else if(level == 9) { PlayerInfo[para1][pSkin] = 227; }//Repуrters
                    else if(level == 10) { PlayerInfo[para1][pSkin] = 61; }//Taxistas
                    else if(level == 11) { PlayerInfo[para1][pSkin] = 295; }//Policia Federal
                    else if(level == 12) { PlayerInfo[para1][pSkin] = 113; }//Mбfia Cosa Nostra
                    else if(level == 13) { PlayerInfo[para1][pSkin] = 120; }//Mбfia Yakuza
                    else if(level == 14) { PlayerInfo[para1][pSkin] = 270; }//Groove
                    else if(level == 15) { PlayerInfo[para1][pSkin] = 123; }//ALQaeda
                    else if(level == 16) { PlayerInfo[para1][pSkin] = 186; }//Policia Civil
                    else if(level == 17) { PlayerInfo[para1][pSkin] = 104; }//Ballas
                    else if(level == 18) { PlayerInfo[para1][pSkin] = 108; }//Vagos
                    else if(level == 19) { PlayerInfo[para1][pSkin] = 19; }//CV
                    else if(level == 20) { PlayerInfo[para1][pSkin] = 143; }//PCC
                    else if(level == 21) { PlayerInfo[para1][pSkin] = 185; }//Midnight Club
                    else if(level == 22) { PlayerInfo[para1][pSkin] = 100; }//sons of anarchy
                    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                    GetPlayerName(playerid, sendername, sizeof(sendername));// << ESSA LINHA ta O WARNING!
                    PlayerInfo[para1][pLider] = level;
                    format(string, sizeof(string), "   Vocк foi promovido a lider pelo admin %s", sendername);
                    SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                    SendClientMessage(para1, COLOR_LIGHTBLUE,"   Promovido Com sucesso !!");
                    format(string, sizeof(string), "   Vocк promoveu %s a Lider.", giveplayer);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    MedicBill[para1] = 0;
                    gTeam[para1] = 11;
                    PlayerInfo[para1][pTeam] = 11;
                    PlayerInfo[para1][pCargo] = 6;
                    SetPlayerSkin(para1, PlayerInfo[para1][pSkin]);
                    SetPlayerSpawn(para1);
                }
            }//not connected
        }
        return 1;
    }
Reply


Messages In This Thread
Duvida WARNING - by Bruno Pereira - 27.02.2011, 20:33
Re: Duvida WARNING - by Peedro Felix - 27.02.2011, 20:46
Re: Duvida WARNING - by ASDF - 27.02.2011, 20:57
Re: Duvida WARNING - by Bruno Pereira - 27.02.2011, 22:05
Re: Duvida WARNING - by Ricop522 - 27.02.2011, 22:12

Forum Jump:


Users browsing this thread: 3 Guest(s)