[Ajuda] Territуrio
#1

O que tem de errado nesse Code ? quando digito /do nada aparece

pawn Код:
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)//Exercito
        {
            if(IsPlayerInMata(playerid))
            {
                if(Dominando[playerid] == 1)
                {
                    SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
                    return true;
                }
                if(GuerranaMata == 1)
                {
                    SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
                    return true;
                }
                GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, sizeof(string), "%s e o Exйrcito estгo dominando a Mata!",playername);
                SendClientMessageToAll(COLORGZ_EXE, string);
                SendClientMessage(playerid, COLORGZ_EXE, "Fique esperto, todas a Taliban e a Al'Qaeda foram avisados!");
                SendClientMessage(playerid, COLORGZ_EXE, "Espere 1 minuto para dominar estб area .");
                GangZoneFlashForAll(GZMata,COLORGZ_EXE);
                Dominando[playerid] = 1;
                ProvocoMata[playerid] = 1;
                GuerranaMata = 1;
                TempoGuerraMata = SetTimerEx("GuerraMata", 60000, 0, "i", playerid);
                return true;
            }
        }
        if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6) //Taliban
        {
            if(IsPlayerInMata(playerid))
            {
                if(Dominando[playerid] == 1)
                {
                    SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
                    return true;
                }
                if(GuerranaMata == 1)
                {
                    SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
                    return true;
                }
                GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, sizeof(string), "%s e a Taliban estгo dominando a Mata!",playername);
                SendClientMessageToAll(COLORGZ_TAL, string);
                SendClientMessage(playerid, COLORGZ_TAL, "Fique esperto, o Exйrcito e a Al'Qaeda foram avisados!");
                SendClientMessage(playerid, COLORGZ_TAL, "Espere 1 minuto para dominar estб area .");
                GangZoneFlashForAll(GZMata,COLORGZ_TAL);
                Dominando[playerid] = 1;
                ProvocoMata[playerid] = 1;
                GuerranaMata = 1;
                TempoGuerraMata = SetTimerEx("GuerraMata", 60000, 0, "i", playerid);
                return true;
            }
        }
        if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15) //Al'Qaeda
        {
            if(IsPlayerInMata(playerid))
            {
                if(Dominando[playerid] == 1)
                {
                    SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
                    return true;
                }
                if(GuerranaMata == 1)
                {
                    SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
                    return true;
                }
                GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, sizeof(string), "%s e a Al'Qaeda estгo dominando a Mata!",playername);
                SendClientMessageToAll(COLORGZ_ALCAIDA, string);
                SendClientMessage(playerid, COLORGZ_ALCAIDA, "Fique esperto, o Exйrcito e a Taliban foram avisadas!");
                SendClientMessage(playerid, COLORGZ_ALCAIDA, "Espere 1 minuto para dominar estб area .");
                GangZoneFlashForAll(GZMata,COLORGZ_ALCAIDA);
                Dominando[playerid] = 1;
                ProvocoMata[playerid] = 1;
                GuerranaMata = 1;
                TempoGuerraMata = SetTimerEx("GuerraMata", 60000, 0, "i", playerid);
                return true;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD3, "Vocк nгo estб em nenhum territуrio!");
            }
            return true;
        }
Reply
#2

Aqui ta no mesmo bug brother ^^

http://forum.sa-mp.com/showthread.ph...52#post2533552
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)