[AJUDA] GZ's Dominбveis
#1

Oi pessoal. Bom o que se passa й o seguinte:

Eu criei inicialmente 2 Gang Zones no meu GM e queria que ficassem por cima delas as cores respectivas das gangues:
Aqui:

http://imageshack.us/photo/my-images/823/samp069cs.png/

E que quando eles estivessem a ser dominadas por outro gang que piscassem com as duas cores de cada gangue a que tem essa zona e a que estб a dominar.
Mas ela fica mal, nгo fica centrada:

http://imageshack.us/photo/my-images/42/samp075af.png/

A public que domina:
pawn Код:
public ZoneCheckpoint()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i))continue;
        if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 2 &&
            gzcolor[CPS_GetPlayerCheckpoint(i)-1] != GetPlayerColor(i))
            {
            if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 15)
            {
                cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
                new tmp[10];
                format(tmp, sizeof tmp, "~w~%2d/15", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
                GameTextForPlayer(i, tmp, 1001, 4);
                GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
            } else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 15) //passou 15 segundos dentro do checkpoint
            {
                GameTextForPlayer(i, "~w~Conquistado", 4000, 1);
                gzcolor[CPS_GetPlayerCheckpoint(i)-1] = GetPlayerColor(i);
                GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
            }
        }
    }
}
Quem ajudar +resp
Preciso urgentemente!
Obrigado!
Reply
#2

Acho que entendi..
pawn Код:
public ZoneCheckpoint()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i))continue;
        if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 2 &&
            gzcolor[CPS_GetPlayerCheckpoint(i)-1] != GetPlayerColor(i))
            {
            if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 15)
            {
                cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
                new tmp[10];
                format(tmp, sizeof tmp, "~w~%2d/15", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
                GameTextForPlayer(i, tmp, 1001, 4);
                GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
            } else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 15) //passou 15 segundos dentro do checkpoint
            {
                GameTextForPlayer(i, "       ~w~Conquistado", 4000, 1);
                GameTextForPlayer(i, "        ~g~Conquistado", 4000, 1);
                gzcolor[CPS_GetPlayerCheckpoint(i)-1] = GetPlayerColor(i);
                GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
            }
        }
    }
}
Pc do colegio...
se errei sorry'
Reply
#3

Quote:
Originally Posted by OwnPlaay
Посмотреть сообщение
Acho que entendi..
pawn Код:
public ZoneCheckpoint()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i))continue;
        if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 2 &&
            gzcolor[CPS_GetPlayerCheckpoint(i)-1] != GetPlayerColor(i))
            {
            if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 15)
            {
                cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
                new tmp[10];
                format(tmp, sizeof tmp, "~w~%2d/15", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
                GameTextForPlayer(i, tmp, 1001, 4);
                GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
            } else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 15) //passou 15 segundos dentro do checkpoint
            {
                GameTextForPlayer(i, "       ~w~Conquistado", 4000, 1);
                GameTextForPlayer(i, "        ~g~Conquistado", 4000, 1);
                gzcolor[CPS_GetPlayerCheckpoint(i)-1] = GetPlayerColor(i);
                GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
            }
        }
    }
}
Pc do colegio...
se errei sorry'
Tб igual :S
Reply
#4

Vocк quer que fique piscando a luz do GameText?

Nгo entendi muito bemm'
Reply
#5

Quote:
Originally Posted by OwnPlaay
Посмотреть сообщение
Vocк quer que fique piscando a luz do GameText?

Nгo entendi muito bemm'
Nгo eu quero arranjar esse problema: http://imageshack.us/photo/my-images/42/samp075af.png/
Reply
#6

Ahta, Entendi errado '-'
Desse jeito,ai nem entendo mt bem..
e melhor se procurar um tuto
Reply
#7

Ou seja, criar essa cobertura ? ou remover ?
Reply
#8

Quote:
Originally Posted by VivianeDejoss
Посмотреть сообщение
Ou seja, criar essa cobertura ? ou remover ?
criar
Reply
#9

Deixa eu ver se entendi
na primeira imagem vc mostrou uma gangzone me verde ai quer que ela fique igual a amarela?
Se for isso й sу vc fazer uma variavel de forma que set a cor em outra cordenada de vez na do gangzone anterior

Se for pra criar dessa forma use um programa Xtreme acho que й isso ele й facil de pegar cordenadas ai й sу vc substituir
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)