[AJUDA] GZ's Dominбveis -
Skun Fly - 28.03.2012
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!
Re: [AJUDA] GZ's Dominбveis -
@Riichard - 28.03.2012
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'
Re: [AJUDA] GZ's Dominбveis -
Skun Fly - 28.03.2012
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
Re: [AJUDA] GZ's Dominбveis -
@Riichard - 28.03.2012
Vocк quer que fique piscando a luz do GameText?
Nгo entendi muito bemm'
Re: [AJUDA] GZ's Dominбveis -
Skun Fly - 28.03.2012
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/
Re: [AJUDA] GZ's Dominбveis -
@Riichard - 28.03.2012
Ahta, Entendi errado '-'
Desse jeito,ai nem entendo mt bem..
e melhor se procurar um tuto
Re: [AJUDA] GZ's Dominбveis -
VivianeDejoss - 28.03.2012
Ou seja, criar essa cobertura ? ou remover ?
Re: [AJUDA] GZ's Dominбveis -
Skun Fly - 28.03.2012
Quote:
Originally Posted by VivianeDejoss
Ou seja, criar essa cobertura ? ou remover ?
|
criar
Re: [AJUDA] GZ's Dominбveis -
StrondaXxT - 28.03.2012
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