30.04.2013, 07:11
I've this system scripted.
When player type /leftakeover.
It will show how many gangzones left to take over.
It shows fine (when there is no gangzones captured yet)
When there is 1 captured gangzones. It will always return like this:
there is 18 gangzones.
When there is 1 captured zones it will return 16.
Instead of 17.
It means it 2x subtract from 18 = 16.
More Info:
Gangzone:
For grove street we have 5 gangzone (4 when main zone is not counted)
For ballas we have 5 gangzone (same with grove street when main zone is not counted)
For ls vagos we have 6 gangzone (5 when main zone is not counted)
For los aztecas we have 3 gangzone (2 when main zone is not counted)
For cops we have 2 gangzone (1 when main zone is not counted)
For mafia we have 2 gangzone (1 when main zone is not counted)
For street bikers we have 1 gangzone (0 when main zone is not counted)
For girl squad we have 2 gangzone (1 when main zone is not counted)
Example of counting zones:
Commands:
teamcount (player's gang's gangzone) is being subtracted to all zone.
subtract 1. So that the mainzone will not be counted.
How i set the take over gangzone
When player type /leftakeover.
It will show how many gangzones left to take over.
It shows fine (when there is no gangzones captured yet)
When there is 1 captured gangzones. It will always return like this:
there is 18 gangzones.
When there is 1 captured zones it will return 16.
Instead of 17.
It means it 2x subtract from 18 = 16.
More Info:
Gangzone:
For grove street we have 5 gangzone (4 when main zone is not counted)
For ballas we have 5 gangzone (same with grove street when main zone is not counted)
For ls vagos we have 6 gangzone (5 when main zone is not counted)
For los aztecas we have 3 gangzone (2 when main zone is not counted)
For cops we have 2 gangzone (1 when main zone is not counted)
For mafia we have 2 gangzone (1 when main zone is not counted)
For street bikers we have 1 gangzone (0 when main zone is not counted)
For girl squad we have 2 gangzone (1 when main zone is not counted)
Example of counting zones:
pawn Code:
MainZone[0] = GangZoneCreate(2193.39, -1926.622, 2590.068, -1448.945); //Grove Street
countzone[0]++;
MainZone[1] = GangZoneCreate(2590.068, -1673.966, 2927.337, -1058.119); //LS Vagos
countzone[1]++;
MainZone[2] = GangZoneCreate(2010.854, -1448.945, 2590.068, -1058.119); //Ballas
countzone[2]++;
MainZone[3] = GangZoneCreate(1668.933105, -2190.038574, 2171.591552, -1923.572998); //Los Aztecas
countzone[3]++;
MainZone[4] = GangZoneCreate(1039.722412,-2194.694335,1669.379882,-1860.922973); //Mafia
countzone[4]++;
MainZone[5] = GangZoneCreate(1317.574707,-1863.164062,1674.082031,-1568.616088); //Cops
countzone[5]++;
MainZone[6] = GangZoneCreate(1572.453125,-1406.845214,1809.416992,-1056.452026); //Street Bikers
countzone[6]++;
MainZone[7] = GangZoneCreate(164.378829,-1570.994018,774.189941,-1415.605590); //Girl Squad
countzone[7]++;
pawn Code:
CMD:leftakeover(playerid, params[])
{
if(GetPlayerState(playerid) != 1 && GetPlayerState(playerid) != 2 && GetPlayerState(playerid) != 3) return SendClientMessage(playerid, COLOR_RED, "ERROR: To use this command choose a gang then spawn!");
new teamcount[MAX_PLAYERS],
results[MAX_PLAYERS];
switch(GetPlayerTeam(playerid))
{
case TEAM_GROVE: teamcount[playerid] = countzone[0]-1;
case TEAM_LV: teamcount[playerid] = countzone[1]-1;
case TEAM_BALLAS: teamcount[playerid] = countzone[2]-1;
case TEAM_LA: teamcount[playerid] = countzone[3]-1;
case TEAM_MAFIA: teamcount[playerid] = countzone[4]-1;
case TEAM_COPS: teamcount[playerid] = countzone[5]-1;
case TEAM_BIKERS: teamcount[playerid] = countzone[6]-1;
case TEAM_GIRLS: teamcount[playerid] = countzone[7]-1;
}
new string[128];
switch(GetPlayerTeam(playerid))
{
case TEAM_GROVE:
{
results[playerid] = countzone[1]-1+countzone[2]-1+countzone[3]-1+countzone[4]-1+countzone[5]+countzone[6]-1+countzone[7]-1 - teamcount[playerid];
format(string, 128, "Your gang (Grove Street) needs '%i' gangzone to take over all gangzones in Los Santos! (8 of them cannot be captured!)", results[playerid]);
}
case TEAM_LV:
{
results[playerid] = countzone[0]-1+countzone[2]-1+countzone[3]-1+countzone[4]-1+countzone[5]-1+countzone[6]-1+countzone[7]-1 - teamcount[playerid];
format(string, 128, "Your gang (LS Vagos) needs '%i' gangzone to take over all gangzones in Los Santos! (8 of them cannot be captured!)", results[playerid]);
}
case TEAM_BALLAS:
{
results[playerid] = countzone[0]-1+countzone[1]-1+countzone[3]-1+countzone[4]-1+countzone[5]-1+countzone[6]-1+countzone[7]-1 - teamcount[playerid];
format(string, 128, "Your gang (Ballas) needs '%i' gangzone to take over all gangzones in Los Santos! (8 of them cannot be captured!)", results[playerid]);
}
case TEAM_LA:
{
results[playerid] = countzone[0]-1+countzone[1]-1+countzone[2]-1+countzone[4]-1+countzone[5]-1+countzone[6]-1+countzone[7]-1 - teamcount[playerid];
format(string, 128, "Your gang (Los Aztecas) needs '%i' gangzone to take over all gangzones in Los Santos! (8 of them cannot be captured!)", results[playerid]);
}
case TEAM_MAFIA:
{
results[playerid] = countzone[0]-1+countzone[1]-1+countzone[2]-1+countzone[3]-1+countzone[5]-1+countzone[6]-1+countzone[7]-1 - teamcount[playerid];
format(string, 128, "Your gang (Mafia) needs '%i' gangzone to take over all gangzones in Los Santos! (8 of them cannot be captured!)", results[playerid]);
}
case TEAM_COPS:
{
results[playerid] = countzone[0]-1+countzone[1]-1+countzone[2]-1+countzone[3]-1+countzone[4]-1+countzone[6]-1+countzone[7]-1 - teamcount[playerid];
format(string, 128, "Your gang (Cops) needs '%i' gangzone to take over all gangzones in Los Santos! (8 of them cannot be captured!)", results[playerid]);
}
case TEAM_BIKERS:
{
results[playerid] = countzone[0]-1+countzone[1]-1+countzone[2]-1+countzone[3]-1+countzone[4]-1+countzone[5]-1+countzone[7]-1 - teamcount[playerid];
format(string, 128, "Your gang (Street Bikers) needs '%i' gangzone to take over all gangzones in Los Santos! (8 of them cannot be captured!)", results[playerid]);
}
case TEAM_GIRLS:
{
results[playerid] = countzone[0]-1+countzone[1]-1+countzone[2]-1+countzone[3]-1+countzone[4]-1+countzone[5]-1+countzone[6]-1 - teamcount[playerid];
format(string, 128, "Your gang (Girl Squad) needs '%i' gangzone to take over all gangzones in Los Santos! (8 of them cannot be captured!)", results[playerid]);
}
}
SendClientMessage(playerid, COLOR_GREEN, string);
return 1;
}
subtract 1. So that the mainzone will not be counted.
How i set the take over gangzone
pawn Code:
stock SetGangZone(playerid)
{
new string[128];
switch(GetPlayerTeam(playerid))
{
case TEAM_GROVE: Team = "Grove Street Member";
case TEAM_BALLAS: Team = "Ballas Member";
case TEAM_LA: Team = "Los Aztecas Member";
case TEAM_LV: Team = "Los Santos Vagos Member";
case TEAM_MAFIA: Team = "Mafia Member";
case TEAM_COPS: Team = "Cop Member";
case TEAM_BIKERS: Team = "Street Biker Member";
case TEAM_GIRLS: Team = "Girl Squad Member";
}
switch(GetPlayerTeam(playerid))
{
case TEAM_GROVE: countzone[0]++;
case TEAM_LV: countzone[1]++;
case TEAM_BALLAS: countzone[2]++;
case TEAM_LA: countzone[3]++;
case TEAM_MAFIA: countzone[4]++;
case TEAM_COPS: countzone[5]++;
case TEAM_BIKERS: countzone[6]++;
case TEAM_GIRLS: countzone[7]++;
}
if(zDefine[playerid] == 0)
{
switch(tCheck[0])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[0], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[0]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[0] = GetPlayerTeam(playerid);
UnderAttack[0] = 0;
KillTimer(timer[playerid][0]);
}
else if(zDefine[playerid] == 1)
{
switch(tCheck[1])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[1], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[1]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[1] = GetPlayerTeam(playerid);
UnderAttack[1] = 0;
KillTimer(timer[playerid][1]);
}
else if(zDefine[playerid] == 2)
{
switch(tCheck[2])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[2], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[2]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[2] = GetPlayerTeam(playerid);
UnderAttack[2] = 0;
KillTimer(timer[playerid][2]);
}
else if(zDefine[playerid] == 3)
{
switch(tCheck[3])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[3], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[3]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[3] = GetPlayerTeam(playerid);
UnderAttack[3] = 0;
KillTimer(timer[playerid][3]);
}
else if(zDefine[playerid] == 4)
{
switch(tCheck[4])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[4], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[4]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[4] = GetPlayerTeam(playerid);
UnderAttack[4] = 0;
KillTimer(timer[playerid][4]);
}
else if(zDefine[playerid] == 5)
{
switch(tCheck[5])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[5], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[5]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[5] = GetPlayerTeam(playerid);
UnderAttack[5] = 0;
KillTimer(timer[playerid][5]);
}
else if(zDefine[playerid] == 6)
{
switch(tCheck[6])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[6], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[6]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[6] = GetPlayerTeam(playerid);
UnderAttack[6] = 0;
KillTimer(timer[playerid][6]);
}
else if(zDefine[playerid] == 7)
{
switch(tCheck[7])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[7], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[7]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[7] = GetPlayerTeam(playerid);
UnderAttack[7] = 0;
KillTimer(timer[playerid][7]);
}
else if(zDefine[playerid] == 8)
{
switch(tCheck[8])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[8], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[8]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[8] = GetPlayerTeam(playerid);
UnderAttack[8] = 0;
KillTimer(timer[playerid][8]);
}
else if(zDefine[playerid] == 9)
{
switch(tCheck[9])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[9], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[9]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[9] = GetPlayerTeam(playerid);
UnderAttack[9] = 0;
KillTimer(timer[playerid][9]);
}
else if(zDefine[playerid] == 10)
{
switch(tCheck[10])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[10], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[10]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[10] = GetPlayerTeam(playerid);
UnderAttack[10] = 0;
KillTimer(timer[playerid][10]);
}
else if(zDefine[playerid] == 11)
{
switch(tCheck[11])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[11], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[11]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[11] = GetPlayerTeam(playerid);
UnderAttack[11] = 0;
KillTimer(timer[playerid][11]);
}
else if(zDefine[playerid] == 12)
{
switch(tCheck[12])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[12], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[12]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[12] = GetPlayerTeam(playerid);
UnderAttack[12] = 0;
KillTimer(timer[playerid][12]);
}
else if(zDefine[playerid] == 13)
{
switch(tCheck[13])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[13], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[13]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[13] = GetPlayerTeam(playerid);
UnderAttack[13] = 0;
KillTimer(timer[playerid][13]);
}
else if(zDefine[playerid] == 14)
{
switch(tCheck[14])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[14], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[14]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[14] = GetPlayerTeam(playerid);
UnderAttack[14] = 0;
KillTimer(timer[playerid][14]);
}
else if(zDefine[playerid] == 15)
{
switch(tCheck[15])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[15], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[15]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[15] = GetPlayerTeam(playerid);
UnderAttack[15] = 0;
KillTimer(timer[playerid][15]);
}
else if(zDefine[playerid] == 16)
{
switch(tCheck[16])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[16], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[16]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[16] = GetPlayerTeam(playerid);
UnderAttack[16] = 0;
KillTimer(timer[playerid][16]);
}
else if(zDefine[playerid] == 17)
{
switch(tCheck[17])
{
case TEAM_GROVE:
{
format(string, sizeof(string), "%s %s has captured Grove Street's Gang Zone", Team, GetName(playerid));
countzone[0]--;
}
case TEAM_BALLAS:
{
format(string, sizeof(string), "%s %s has captured Ballas' Gang Zone", Team, GetName(playerid));
countzone[2]--;
}
case TEAM_LA:
{
format(string, sizeof(string), "%s %s has captured Los Aztecas's Gang Zone", Team, GetName(playerid));
countzone[3]--;
}
case TEAM_LV:
{
format(string, sizeof(string), "%s %s has captured Los Santos Vagos' Gang Zone", Team, GetName(playerid));
countzone[1]--;
}
case TEAM_MAFIA:
{
format(string, sizeof(string), "%s %s has captured Mafia's Gang Zone", Team, GetName(playerid));
countzone[4]--;
}
case TEAM_COPS:
{
format(string, sizeof(string), "%s %s has captured Cops' Gang Zone", Team, GetName(playerid));
countzone[5]--;
}
case TEAM_BIKERS:
{
format(string, sizeof(string), "%s %s has captured Street Bikers' Gang Zone", Team, GetName(playerid));
countzone[6]--;
}
case TEAM_GIRLS:
{
format(string, sizeof(string), "%s %s has captured Girl Squad's Gang Zone", Team, GetName(playerid));
countzone[7]--;
}
}
GangZoneShowForAll(Zone[17], GetPlayerColor(playerid));
GangZoneStopFlashForAll(Zone[17]);
SendClientMessageToAll(COLOR_RED, string);
tCheck[17] = GetPlayerTeam(playerid);
UnderAttack[17] = 0;
KillTimer(timer[playerid][16]);
}
return 1;
}