03.03.2014, 21:50
pawn Код:
if(BallasEmGz != 0 && GrooveEmGz == 0 && VagosEmGz == 0 && AztecasEmGz == 0 && CopsEmGz == 0 && FarcEmGz == 0 && FaEmGz == 0)
{
GangZoneInfo[g][gzOwner] = PlayerInfo[playerid][pGang];
printf("Gangzone %d atualizada: Owner: %d", g, GangZoneInfo[g][gzOwner]);
GangZoneStopFlashForAll(GangZoneInfo[g][gzId]);
GangZoneHideForAll(GangZoneInfo[g][gzId]);
GangZoneShowForAll(GangZoneInfo[g][gzId], GetGangColor(playerid));
new str[90];
format(str, 90, "[TERRITУRIOS]: Ballas consegue manter o controle de %s.", GangZoneInfo[g][gzName]);
SendClientMessageToAll(0xFFFF00AA, str);
SendClientMessage(playerid, -1, "Parabйns! Agora este territуrio pertence a sua gangue!");
KillTimer(TempoGz);
SaveGangZone(playerid);
return 1;
}
else if(GrooveEmGz != 0 && BallasEmGz == 0 && VagosEmGz == 0 && AztecasEmGz == 0 && CopsEmGz == 0 && FarcEmGz == 0 && FaEmGz == 0)
{
GangZoneInfo[g][gzOwner] = PlayerInfo[playerid][pGang];
printf("Gangzone %d atualizada: Owner: %d", g, GangZoneInfo[g][gzOwner]);
GangZoneStopFlashForAll(GangZoneInfo[g][gzId]);
GangZoneHideForAll(GangZoneInfo[g][gzId]);
GangZoneShowForAll(GangZoneInfo[g][gzId], GetGangColor(playerid));
new str[90];
format(str, 90, "[TERRITУRIOS]: Groove consegue manter o controle de %s.", GangZoneInfo[g][gzName]);
SendClientMessageToAll(0xFFFF00AA, str);
SendClientMessage(playerid, -1, "Parabйns! Agora este territуrio pertence a sua gangue!");
KillTimer(TempoGz);
SaveGangZone(playerid);
return 1;
}
else if(VagosEmGz != 0 && GrooveEmGz == 0 && BallasEmGz == 0 && AztecasEmGz == 0 && CopsEmGz == 0 && FarcEmGz == 0 && FaEmGz == 0)
{
GangZoneInfo[g][gzOwner] = PlayerInfo[playerid][pGang];
printf("Gangzone %d atualizada: Owner: %d", g, GangZoneInfo[g][gzOwner]);
GangZoneStopFlashForAll(GangZoneInfo[g][gzId]);
GangZoneHideForAll(GangZoneInfo[g][gzId]);
GangZoneShowForAll(GangZoneInfo[g][gzId], GetGangColor(playerid));
new str[90];
format(str, 90, "[TERRITУRIOS]: Vagos consegue manter o controle de %s.", GangZoneInfo[g][gzName]);
SendClientMessageToAll(0xFFFF00AA, str);
SendClientMessage(playerid, -1, "Parabйns! Agora este territуrio pertence a sua gangue!");
KillTimer(TempoGz);
SaveGangZone(playerid);
return 1;
}
else if(AztecasEmGz != 0 && GrooveEmGz == 0 && BallasEmGz == 0 && VagosEmGz== 0 && CopsEmGz == 0 && FarcEmGz == 0 && FaEmGz == 0)
{
GangZoneInfo[g][gzOwner] = PlayerInfo[playerid][pGang];
printf("Gangzone %d atualizada: Owner: %d", g, GangZoneInfo[g][gzOwner]);
GangZoneStopFlashForAll(GangZoneInfo[g][gzId]);
GangZoneHideForAll(GangZoneInfo[g][gzId]);
GangZoneShowForAll(GangZoneInfo[g][gzId], GetGangColor(playerid));
new str[90];
format(str, 90, "[TERRITУRIOS]: Aztecas consegue manter o controle de %s.", GangZoneInfo[g][gzName]);
SendClientMessageToAll(0xFFFF00AA, str);
SendClientMessage(playerid, -1, "Parabйns! Agora este territуrio pertence a sua gangue!");
KillTimer(TempoGz);
SaveGangZone(playerid);
return 1;
}
else if(GrooveEmGz != 0 && BallasEmGz != 0 && VagosEmGz != 0 && AztecasEmGz != 0 && CopsEmGz != 0 && FarcEmGz != 0 && FaEmGz != 0)
{
print("17");
new str[77];
format(str, 77, "[TERRITУRIO]: A gangzone em %s foi prolongada.", GangZoneInfo[g][gzName]);
SendRadioMessage(1, 0x00B2EEFF, str);
SendRadioMessage(2, 0x00B2EEFF, str);
SendRadioMessage(3, 0x00B2EEFF, str);
SendRadioMessage(4, 0x00B2EEFF, str);
SendRadioMessage(5, 0x00B2EEFF, str);
SendRadioMessage(6, 0x00B2EEFF, str);
SendRadioMessage(7, 0x00B2EEFF, str);
TempoGz = SetTimerEx("DominarGz", 3000, 0, "ii", i, g);
return 1;
}
else if(GrooveEmGz == 0 && BallasEmGz == 0 && VagosEmGz == 0 && AztecasEmGz == 0 && CopsEmGz == 0 && FarcEmGz == 0 && FaEmGz == 0)
{
new str[90];
format(str, 90, "[TERRITУRIOS]: O territorio em %s estб livre de gangster", GangZoneInfo[g][gzName]);
SendClientMessageToAll(0xFFFF00AA, str);
GangZoneStopFlashForAll(GangZoneInfo[g][gzId]);
GangZoneShowForAll(GangZoneInfo[g][gzId], 0xFFFFFF96);
GangZoneInfo[g][gzStats] = 0;
KillTimer(TempoGz);
return 1;
}