[Ajuda] Uma Ajuda Pf ;)
#1

Boa Noite

Bem estou com uma dъvida chata de mais ._.

Ex :
Eu sou da Gang Grove Street, acabo de logar no server entro no Check Point (CP) e comeзa a contagem para dominar a бrea que jб e dos Groves e ele domina a prуpria бrea.

Bem fiquei uma boa parte do dia tentando resolver isso mas nгo deu '-'

Cуdigo :

pawn Код:
public ZoneCheckpointChecker()
{
    for (new i; i < MAX_PLAYERS; i++)
    {
        if (!IsPlayerConnected(i)) continue;
        if (CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 12 && 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, "~b~Area ~r~Dominada", 4000, 1);
                GivePlayerMoney(i, 2000);
                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, "{F81414}|GANGZONE| - {8AD4B6}O (Os, A, As) '%s' com toda sua forзa invadiram e dominaram mais um territуrio!", pgangnames[gangteam[i]][0]);
                SendClientMessageToAll(0xFFFFFFFF, str);
                PlayerInfo[i][pDominou]++;
            }
        }
    }
}
Quem puder me da um HELP Pf
Reply
#2

Checar se a cor do player (GetPlayerColor) й igual a da GangZone (gzcolor[CPS_GetPlayerCheckpoint(i) - 1] )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)