[AJUDA]Bugzinho irritante '-'
#1

Boa noite pessoal,bem eu vim pedir ajuda pra mim conseguir fazer isso.
Bem o que eu quero fazer й simples, fazer com que o player sу consiga dominar as outras бreas e nгo a dele mesmo, e й o que estб acontecendo '-'
Ele ta dominando a prуpia бrea e ainda por cima gangzone some. LOL
Ae a public responsбvel por isso tudo:

pawn Код:
public ZoneCheckpointChecker()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i))continue;
        if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 4 &&
            gzcolor[CPS_GetPlayerCheckpoint(i)-1] != gzcolorteam[gangteam[i]])
        {
            if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 15)
            {
            if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 5)
        {
        for(new j; j < MAX_PLAYERS; j++)
        {
        if(gangteam[j] == CPS_GetPlayerCheckpoint(i)-1)
            GameTextForPlayer(j, " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~y~A base do ~g~seu time ~y~esta sendo ~r~dominada~y~!", 4000, 4);
        }
        }
                cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
                new tmp[10];
                format(tmp, sizeof tmp, "~r~%2d/15", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
                GameTextForPlayer(i, tmp, 1001, 4);
                GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, gzcolorteam[gangteam[i]]);
            } else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 15)
            {
                GameTextForPlayer(i, "~w~Area Dominada", 4000, 1);
                gzcolor[CPS_GetPlayerCheckpoint(i)-1] = gzcolorteam[gangteam[i]];
                GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, gzcolor[gangteam[i]]);
                new str[256];
                format(str, 256, "[GANGS]: A gang dos '%s' invadiram e dominaram mais um territуrio!", NomeGangs[gangteam[i]][0]);
                SendClientMessageToAll(ROSA_EDU, str);
                PlayerInfo[i][pDominou]++;
            }
        }
}
}
Quem me ajudar eu agradeceria muito.
Tenham uma boa noite, espero a ajuda.
Reply
#2

O que define a gang que estб dominando?
Reply
#3

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
O que define a gang que estб dominando?
No topo:
Quote:

new NomeGangs[][] =
{
{"Grove"},
{"Ballas"},
{"Vagos"},
{"Aztecas"}
};

new pgang[MAX_PLAYERS][4];

new gzcolor[4] =
{
0x00FF0000,
0x8200FF00,
0xFFAA0000,
0x0023FF00
};

new gzcolorteam[4] =
{
0xFF9900AA,
0x0000BBAA,
0xAA3333AA,
0x1E90FFAA
};

new cpzone[MAX_PLAYERS][4];
new lastcp[MAX_PLAYERS];
new Grove;
new Ballas;
new Vagos;
new Aztecas;
new cpgrove,cpballas,cpvagos,cpaztecas;

Reply
#4

Sistema de domнnio do mata-mata, by: eu

new cpzone[MAX_PLAYERS][4];


Reply
#5

Quote:
Originally Posted by StrondA_
Посмотреть сообщение
Sistema de domнnio do mata-mata, by: eu
new cpzone[MAX_PLAYERS][4];
[ame="http://www.youtube.com/watch?v=VgAqV7wlYFk"]http://www.youtube.com/watch?v=VgAqV7wlYFk[/ame]
To zuando -'
Reply
#6

Nem vou perder meu tempo discutindo contigo, nem regra de nъmeros decimais vocк sabe..
eu vim aqui para ajuda-lo ignorante, vai aparecer vбrios bug nisso ai, e vocк vai vim chorar no fуrum e ninguйm vai saber aonde й o problema, aguarde..
Reply
#7

Let's go For New.pwn .
Reply
#8

Quote:
Originally Posted by StrondA_
Посмотреть сообщение
Nem vou perder meu tempo discutindo contigo, nem regra de nъmeros decimais vocк sabe..
eu vim aqui para ajuda-lo ignorante, vai aparecer vбrios bug nisso ai, e vocк vai vim chorar no fуrum e ninguйm vai saber aonde й o problema, aguarde..
Vocк veio ajudar? ata.
Continuou a mesma coisa sу pra informar.
O fio, faзa o favor, nгo comente meus tуpicos mais nгo beleza? Й um bem que vocк faz para a humanidade =D
Reply
#9

Quote:
Originally Posted by Edu33
Посмотреть сообщение
Vocк veio ajudar? ata.
Continuou a mesma coisa sу pra informar.
O fio, faзa o favor, nгo comente meus tуpicos mais nгo beleza? Й um bem que vocк faz para a humanidade =D
Vou fazer um favor a mim mesmo de poupar meu tempo contigo seu nb, new pawn owna.
Reply
#10

Quote:
Originally Posted by StrondA_
Посмотреть сообщение
Vou fazer um favor a mim mesmo de poupar meu tempo contigo seu nb, new pawn owna.
Oh glуria! \o/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)