[Ajuda] Gang Zona
#8

public ZoneCheckpointChecker()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i))continue;
if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= MAX_GZS+1 &&
gzcolor[CPS_GetPlayerCheckpoint(i)-1] != GetPlayerColor(i))
{
if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 20)
{
cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
new tmp[11];

format(tmp, sizeof tmp, "~y~%2d/20", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
GameTextForPlayer(i, tmp, 1001, 4);
GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
}else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 20)
{
GivePlayerMoney(i, 1000);
GameTextForPlayer(i, "~b~Gang zona dominada Com Sucesso!", 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));

}
}
}
}
Reply


Messages In This Thread
[Ajuda] Gang Zona - by [FFC]Twister - 08.10.2011, 20:12
Re: Ajuda Gang Zona - by Lуs - 08.10.2011, 20:13
Respuesta: Ajuda Gang Zona - by [FFC]Twister - 08.10.2011, 20:14
Re: Ajuda Gang Zona - by Vai_Besta - 08.10.2011, 21:18
Respuesta: Ajuda Gang Zona - by [FFC]Twister - 08.10.2011, 22:11
Re: Ajuda Gang Zona - by [NWD]Jim._.Carrey - 08.10.2011, 22:18
Re: Ajuda Gang Zona - by Vai_Besta - 08.10.2011, 22:20
Respuesta: Ajuda Gang Zona - by [FFC]Twister - 08.10.2011, 22:22
Re: Ajuda Gang Zona - by Vai_Besta - 08.10.2011, 22:26
Respuesta: Ajuda Gang Zona - by [FFC]Twister - 08.10.2011, 22:47

Forum Jump:


Users browsing this thread: 1 Guest(s)