rendered paste bodypublic GangZoneEnd0()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new PlayersAttack;
PlayersAttack = 0;
new Winner = -1;
new Claned0, Claned1, Claned2, Claned3;
new clan_count;
clan_count = 0;
if(IsPlayerConnected(i)) {
if(Claner[i] == true) {
if(PlayerClan[i] != -1) {
if(IsPlayerInArea(i,-2136.4810,120.5163,-2012.3464,312.5915)) {
if(PlayerClan[i] != GangZoneOwner[0]) {
PlayersAttack++;
if(PlayersAttack > 0) {
if(PlayerClan[i] == 0) {
Claned0++;
} else if(PlayerClan[i] == 1) {
Claned1++;
} else if(PlayerClan[i] == 2) {
Claned2++;
} else if(PlayerClan[i] == 3) {
Claned3++;
}
if(Claned0 > clan_count) {
Claned0 = clan_count;
Winner = 0;
} else if(Claned1 > clan_count) {
Claned1 = clan_count;
Winner = 1;
} else if(Claned2 > clan_count) {
Claned2 = clan_count;
Winner = 2;
} else if(Claned3 > clan_count) {
Claned3 = clan_count;
Winner = 3;
} else {
GangZoneStopFlashForAll(GangZone[0]);
GangZoneStatus[0] = 0;
}
GangZoneStopFlashForAll(GangZone[0]);
if(Winner == 0) {
GangZoneStopFlashForAll(GangZone[0]);
GangZoneShowForAll(GangZone[0], COLOR_LIGHTBLUE);
SendMessageToTeam(GangZoneOwner[0],COLOR_BRIGHTRED,"* You lost your territory.");
GangZoneOwner[0] = Winner;
}
} else if(Winner == 1) {
GangZoneStopFlashForAll(GangZone[0]);
GangZoneShowForAll(GangZone[0], COLOR_RED);
SendMessageToTeam(GangZoneOwner[0],COLOR_BRIGHTRED,"* You lost your territory.");
GangZoneOwner[0] = Winner;
} else if(Winner == 2) {
GangZoneStopFlashForAll(GangZone[0]);
GangZoneShowForAll(GangZone[0], COLOR_PINK);
SendMessageToTeam(GangZoneOwner[0],COLOR_BRIGHTRED,"* You lost your territory.");
GangZoneOwner[0] = Winner;
} else if(Winner == 3) {
GangZoneStopFlashForAll(GangZone[0]);
GangZoneShowForAll(GangZone[0], COLOR_YELLOW);
SendMessageToTeam(GangZoneOwner[0],COLOR_BRIGHTRED,"* You lost your territory.");
GangZoneOwner[0] = Winner;
} else {
GangZoneStopFlashForAll(GangZone[0]);
}
}
} else if(IsPlayerInArea(i,0,0,0,0)) {
}
}
}
}
}
}