[DUVIDA] O QUE ESTA ERRADO ?
#2

pawn Код:
if(strcmp(cmd, "/darcolete", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /colete [id] [quantia]");
                return true;
            }
            new playa;
            new health;
            playa = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            health = strval(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 4)
            {
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
                {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                return true;
                }
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        if(PlayerInfo[giveplayerid][pAdmin] >= 1342 && PlayerInfo[giveplayerid][pAdmin] >= 1341)
                        {
                            SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar colete ao Adm Dono!");
                            return true;
                        }
                        SetPlayerArmour(playa, health);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!");
            }
        }
        return true;
Reply


Messages In This Thread
[DUVIDA] O QUE ESTA ERRADO ? - by Alisson Silva Alves - 23.12.2012, 00:53
Re: [DUVIDA] O QUE ESTA ERRADO ? - by Lуs - 23.12.2012, 00:54
Re: [DUVIDA] O QUE ESTA ERRADO ? - by joaobgnc - 23.12.2012, 00:57
Re: [DUVIDA] O QUE ESTA ERRADO ? - by Alisson Silva Alves - 23.12.2012, 00:57

Forum Jump:


Users browsing this thread: 1 Guest(s)