[problema]Gz nao domina
#1

pessoal fiz a gz mais nao termina de dominar =/
pawn Код:
public GuerraPier(playerid)
{
    new string[256];
    new playername[MAX_PLAYER_NAME];
    if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
    {
        if(ProvocoShop[playerid] == 1)
        {
            if(IsPlayerInPier(playerid))
            {
                GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                format(string, sizeof(string), "%s e a Groove Street Dominaram o Pier!",playername);
                SendClientMessageToAll(TEAM_GROVE_COLOR, string);
                SendClientMessage(playerid, COLOR_GRAD5, "Vocк dominou o pier, a cada 3 minutos nele ganhara grana.");
                GangZoneStopFlashForAll(GZShop);
                GangZoneShowForAll(GZShop,TEAM_GROVE_COLOR);
                Dominando[playerid] = 0;
                ProvocoShop[playerid] = 0;
                GuerranoShop = 0;
                donoshop = 1;
                KillTimer(TempoGuerraShop);
                return 1;
            }
            else
            {
                SendClientMessage(playerid, TEAM_GROVE_COLOR, "Vocк nгo estб no pier.");
                Dominando[playerid] = 0;
                GangZoneStopFlashForAll(GZShop);
                GangZoneShowForAll(GZShop, 0xFFFFFF96);
                ProvocoPier[playerid] = 0;
                GuerranoPier = 0;
                donopier = 0;
                KillTimer(TempoGuerraShop);
                return 1;
            }
        }
    }
    return 1;
}
Reply
#2

Alguem?
Reply
#3

Posta o comando /dominar
Reply
#4

if(ProvocoShop[playerid] == 1)
troca por
if(ProvocoPier[playerid] == 1)
Reply
#5

Nda a ver....
Reply
#6

pawn Код:
//------------------------ Dominar --------------------------
if(strcmp(cmd, "/dominar", true) == 0 || strcmp(cmd, "/do", true) == 0)
    {
        if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)//Cosa nostra
        {
            if(IsPlayerInPier(playerid))
                {
                    if(Dominando[playerid] == 1)
                    {
                    SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
                    return 1;
                    }
                    if(GuerranaEstacao == 1)
                    {
                    SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
                    return 1;
                    }
                    GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
                    format(string, sizeof(string), "%s e a Groove estгo dominando o pier!",playername);
                    SendClientMessageToAll(COLOR_LH, string);
                    SendClientMessage(playerid, COLOR_GRAD3, "Fique esperto, todas as mafias e a Policia Federal foram avisadas!");
                    SendClientMessage(playerid, COLOR_GRAD5, "Espere 1 minuto para dominar estб area .");
                    GangZoneFlashForAll(GZPier,COLORGZ_LH);
                    Dominando[playerid] = 1;
                    ProvocoEstacao[playerid] = 1;
                    GuerranoPier = 1;
                    printf("%s Esta Dominando o Pier.", sendername);
                    TempoGuerraPier = SetTimerEx("GuerraPier", 60000, 0, "i", playerid);
    return 1;
                }
                else
                {
                SendClientMessage(playerid, COLOR_GRAD3, "Vocк nгo estб em nenhun territуrio!");
                }

            return 1;
        }
    return 1;
    }
                ///fim ====================================
Reply
#7

Meu Deus que bagunзa esse /dominar diz

Код:
if(GuerranaEstacao == 1)
ai na public

Код:
if(ProvocoShop[playerid] == 1)
eta bagunзa sу ageitar certinho isso que vai funcionar blz.
Reply
#8

I dont Help Thug Life Edits
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)