rendered paste body#include <a_samp>
#include <core>
#include <float>
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define GIVECASH_DELAY 5000 // Time in ms between /givecash commands.
#define ATTACK_TIME 180000 //Three minutes
#define MIN_MINI_SPAM 3
#define CHECK_MINI_SPAM_TIME 3000
#define UNMUTE_TIME 60000
#define SLOTS 100
//Various Colors
#define COLOR_SPECIALGREEN 0x20B2AAFF
#define COLOR_LIGHTYELLOW 0xFAEAA9FF
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x97C0FFFF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_GREEN 0x00B000FF
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_RED 0xFF4646FF
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_ME 0x62F821FF
#define COLOR_INACTIVE 0xC8BEBEFF
#define COLOR_FLASH 0xFF000080
#define COLOR_FLASH2 0xFFFFFF80
#define COLOR_ACHAT 0x8080FFFF
#define COLOR_ASAY 0x018FBEFF
#define COLOR_TPM 0x53A6A6FF
//These are the Teams
#define MAX_TEAMS 8
#define TEAM_EFC 0
#define TEAM_GOLFERS 1
#define TEAM_GUARDS 2
#define TEAM_TRIADS 3
#define TEAM_COPS 4
#define TEAM_MOBSTERS 5
#define TEAM_WORKERS 6
#define TEAM_MECHANICS 7
//Team Colors
#define EFC_COLOR 0xFFAD5BFF
#define GOLFERS_COLOR 0x9245ABFF
#define TRIADS_COLOR 0x910000FF
#define COPS_COLOR 0x0080FFFF
#define MOBSTERS_COLOR 0x6D3636FF
#define MECHANICS_COLOR 0xAAAA00FF
#define GUARDS_COLOR 0x666666FF
#define WORKERS_COLOR 0x1D584AFF
//Team Colors2
#define EFC_COLOR2 0xFFAD5B80
#define GOLFERS_COLOR2 0x9245AB80
#define TRIADS_COLOR2 0x91000080
#define COPS_COLOR2 0x0080FF80
#define MOBSTERS_COLOR2 0x6D363680
#define MECHANICS_COLOR2 0xAAAA0080
#define GUARDS_COLOR2 0x66666680
#define WORKERS_COLOR2 0x1D584A80
new teamColors[MAX_TEAMS] = {
EFC_COLOR2,
GOLFERS_COLOR2,
GUARDS_COLOR2,
TRIADS_COLOR2,
COPS_COLOR2,
MOBSTERS_COLOR2,
WORKERS_COLOR2,
MECHANICS_COLOR2
};
new teamName[MAX_TEAMS][32] = {
"E.F.C.",
"Golfers",
"Guards",
"Triads",
"Cops",
"Mobsters",
"Workers",
"Mechanics"
};
static gTeam[ SLOTS ];
new bounty[ SLOTS ];
new playerCheckpoint[ SLOTS ];
new gDriveBy[ SLOTS ];
new gHeliKill[ SLOTS ];
new ShowPM[ SLOTS ];
new ShowTPM[ SLOTS ];
new muted[ SLOTS ];
new Spawned[ SLOTS ];
new TeamKills[ SLOTS ];
new Float:X250[ SLOTS ], Float:Y250[ SLOTS ], Float:Z250[ SLOTS ];
new Attack[ SLOTS ];
new PIDB[ SLOTS ]; // Player Is Drive Byed
new PIHK[ SLOTS ]; // Player Is Heli Killed
new MiniAntiSpamCount[ SLOTS ];
new PlayerOnDuty[ SLOTS ];
new lTMoney[ SLOTS ];
new lSMoney[ SLOTS ];
new savePos;
new worldTime;
new Attackers1,Attackers2,Attackers3,Attackers4,Attackers5,Attackers6,Attackers7,Attackers8,Attackers9,Attackers10;
new Attackers11,Attackers12,Attackers13,Attackers14,Attackers15,Attackers16,Attackers17,Attackers18,Attackers19,Attackers20;
new Attackers21,Attackers22,Attackers23,Attackers24,Attackers25,Attackers26,Attackers27,Attackers28,Attackers29,Attackers30;
new Attackers31,Attackers32,Attackers33,Attackers34,Attackers35,Attackers36,Attackers37,Attackers38,Attackers39,Attackers40;
new Attackers41,Attackers42,Attackers43,Attackers44,Attackers45,Attackers46,Attackers47,Attackers48,Attackers49,Attackers50;
new Turf1Kills[SLOTS], Turf2Kills[SLOTS], Turf3Kills[SLOTS], Turf4Kills[SLOTS], Turf5Kills[SLOTS];
new Turf6Kills[SLOTS], Turf7Kills[SLOTS], Turf8Kills[SLOTS], Turf9Kills[SLOTS], Turf10Kills[SLOTS];
new Turf11Kills[SLOTS], Turf12Kills[SLOTS], Turf13Kills[SLOTS], Turf14Kills[SLOTS], Turf15Kills[SLOTS];
new Turf16Kills[SLOTS], Turf17Kills[SLOTS], Turf18Kills[SLOTS], Turf19Kills[SLOTS], Turf20Kills[SLOTS];
new Turf21Kills[SLOTS], Turf22Kills[SLOTS], Turf23Kills[SLOTS], Turf24Kills[SLOTS], Turf25Kills[SLOTS];
new Turf26Kills[SLOTS], Turf27Kills[SLOTS], Turf28Kills[SLOTS], Turf29Kills[SLOTS], Turf30Kills[SLOTS];
new Turf31Kills[SLOTS], Turf32Kills[SLOTS], Turf33Kills[SLOTS], Turf34Kills[SLOTS], Turf35Kills[SLOTS];
new Turf36Kills[SLOTS], Turf37Kills[SLOTS], Turf38Kills[SLOTS], Turf39Kills[SLOTS], Turf40Kills[SLOTS];
new Turf41Kills[SLOTS], Turf42Kills[SLOTS], Turf43Kills[SLOTS], Turf44Kills[SLOTS], Turf45Kills[SLOTS];
new Turf46Kills[SLOTS], Turf47Kills[SLOTS], Turf48Kills[SLOTS], Turf49Kills[SLOTS], Turf50Kills[SLOTS];
new GangInWar1[SLOTS], GangInWar2[SLOTS], GangInWar3[SLOTS], GangInWar4[SLOTS], GangInWar5[SLOTS];
new GangInWar6[SLOTS], GangInWar7[SLOTS], GangInWar8[SLOTS], GangInWar9[SLOTS], GangInWar10[SLOTS];
new GangInWar11[SLOTS], GangInWar12[SLOTS], GangInWar13[SLOTS], GangInWar14[SLOTS], GangInWar15[SLOTS];
new GangInWar16[SLOTS], GangInWar17[SLOTS], GangInWar18[SLOTS], GangInWar19[SLOTS], GangInWar20[SLOTS];
new GangInWar21[SLOTS], GangInWar22[SLOTS], GangInWar23[SLOTS], GangInWar24[SLOTS], GangInWar25[SLOTS];
new GangInWar26[SLOTS], GangInWar27[SLOTS], GangInWar28[SLOTS], GangInWar29[SLOTS], GangInWar30[SLOTS];
new GangInWar31[SLOTS], GangInWar32[SLOTS], GangInWar33[SLOTS], GangInWar34[SLOTS], GangInWar35[SLOTS];
new GangInWar36[SLOTS], GangInWar37[SLOTS], GangInWar38[SLOTS], GangInWar39[SLOTS], GangInWar40[SLOTS];
new GangInWar41[SLOTS], GangInWar42[SLOTS], GangInWar43[SLOTS], GangInWar44[SLOTS], GangInWar45[SLOTS];
new GangInWar46[SLOTS], GangInWar47[SLOTS], GangInWar48[SLOTS], GangInWar49[SLOTS], GangInWar50[SLOTS];
new AttackKills1[SLOTS], AttackKills2[SLOTS], AttackKills3[SLOTS], AttackKills4[SLOTS], AttackKills5[SLOTS];
new AttackKills6[SLOTS], AttackKills7[SLOTS], AttackKills8[SLOTS], AttackKills9[SLOTS], AttackKills10[SLOTS];
new AttackKills11[SLOTS], AttackKills12[SLOTS], AttackKills13[SLOTS], AttackKills14[SLOTS], AttackKills15[SLOTS];
new AttackKills16[SLOTS], AttackKills17[SLOTS], AttackKills18[SLOTS], AttackKills19[SLOTS], AttackKills20[SLOTS];
new AttackKills21[SLOTS], AttackKills22[SLOTS], AttackKills23[SLOTS], AttackKills24[SLOTS], AttackKills25[SLOTS];
new AttackKills26[SLOTS], AttackKills27[SLOTS], AttackKills28[SLOTS], AttackKills29[SLOTS], AttackKills30[SLOTS];
new AttackKills31[SLOTS], AttackKills32[SLOTS], AttackKills33[SLOTS], AttackKills34[SLOTS], AttackKills35[SLOTS];
new AttackKills36[SLOTS], AttackKills37[SLOTS], AttackKills38[SLOTS], AttackKills39[SLOTS], AttackKills40[SLOTS];
new AttackKills41[SLOTS], AttackKills42[SLOTS], AttackKills43[SLOTS], AttackKills44[SLOTS], AttackKills45[SLOTS];
new AttackKills46[SLOTS], AttackKills47[SLOTS], AttackKills48[SLOTS], AttackKills49[SLOTS], AttackKills50[SLOTS];
#define T_t1 0
#define T_t2 1
#define T_t3 2
#define T_t4 3
#define T_t5 4
#define T_t6 5
#define T_t7 6
#define T_t8 7
#define T_t9 8
#define T_t10 9
#define T_t11 10
#define T_t12 11
#define T_t13 12
#define T_t14 13
#define T_t15 14
#define T_t16 15
#define T_t17 16
#define T_t18 17
#define T_t19 18
#define T_t20 19
#define T_t21 20
#define T_t22 21
#define T_t23 22
#define T_t24 23
#define T_t25 24
#define T_t26 25
#define T_t27 26
#define T_t28 27
#define T_t29 28
#define T_t30 29
#define T_t31 30
#define T_t32 31
#define T_t33 32
#define T_t34 33
#define T_t35 34
#define T_t36 35
#define T_t37 36
#define T_t38 37
#define T_t39 38
#define T_t40 39
#define T_t41 40
#define T_t42 41
#define T_t43 42
#define T_t44 43
#define T_t45 44
#define T_t46 45
#define T_t47 46
#define T_t48 47
#define T_t49 48
#define T_t50 49
#define MAX_TURFS 50
new turfOwner[MAX_TURFS] = {
999,999,999,999,999,999,999,999,999,999,
999,999,999,999,999,999,999,999,999,999,
999,999,999,999,999,999,999,999,999,999,
999,999,999,999,999,999,999,999,999,999,
999,999,999,999,999,999,999,999,999,999
};
new TurfAreaNames[MAX_TURFS][32] = {
"Four Dragons Casino",
"Pink Swan",
"High Roller",
"Rockshore East",
"Come-A-Lot",
"Caligula's Place",
"Caligula's Place",
"Royal Casino",
"Strip",
"Julius Thruway South", //10
"Julius Thruway East",
"Rockshore West",
"Rockshore West",
"Strip",
"Pilgrim",
"Pirates in men's pants",
"Camel's Toe",
"LV Airport",
"LV Airport",
"LV Airport", //20
"LV Airport",
"Prickle Pine",
"Prickle Pine",
"Prickle Pine",
"Prickle Pine",
"Yellow Bell Golf Course",
"Yellow Bell Golf Course",
"Redsands West",
"Redsands West",
"Redsands West", //30
"Redsands West",
"Roca Escalante",
"Roca Escalante",
"Emerald Isle",
"Old Venturas Strip",
"Starfish Casino",
"Starfish Casino",
"Starfish Casino",
"Clown's Pocket",
"Redsands East", //40
"Redsands East",
"Redsands East",
"LVA Freight Depot",
"Visage",
"Visage",
"Strip",
"Strip",
"Julius Thruway East",
"Spiny Bed",
"Last Dime Motel" //50
};
#define CP_AMMU 0
#define MAX_POINTS 1
new Float:checkCoords[MAX_POINTS][4] = {
{ 284.0546, -86.4384, 302.9315, -56.6674} //AMMUNATION
};
new Float:checkpoints[MAX_POINTS][4] = {
{ 291.0004, -84.5168, 1001.5156, 2.0}
};
new checkpointType[MAX_POINTS] = {
CP_AMMU
};
#define MAX_WEAPONS 14
new weaponNames[MAX_WEAPONS][32] = {
"Pistol",
"Silenced Pistol",
"Desert Eagle",
"Shotgun",
"Combat Shotgun",
"Micro Uzi",
"Tec9",
"MP5",
"AK47",
"M4",
"Sniper Rifle",
"Grenade",
"Molotov",
"Chainsaw"
};
new weaponIDs[MAX_WEAPONS] = {
22, //Pistol
23, //Silenced Pistol
24, //Desert Eagle
25, //Shotgun
27, //Combat shotgun
28, //Micro Uzi
32, //Tec9
29, //MP5
30, //AK47
31, //M4
34, //Sniper Rifle
16, //Grenade
18, //Molotov
9 //Chainsaw
};
new weaponCost[MAX_WEAPONS] = {
5000,
6000,
10000,
10000,
25000,
17500,
15000,
12500,
25000,
27500,
22500,
20000,
20000,
7500
};
new weaponAmmo[MAX_WEAPONS] = {
100,
50,
50,
30,
30,
100,
100,
100,
100,
100,
15,
5,
5,
1
};
new playerWeapons[SLOTS][MAX_WEAPONS];
//------------------------------------------------------------------------------
new randcar[ 22 ] =
{
541, 411, 480, 451, 579, 589, 496, 400, 560, 477,
545, 559, 561, 429, 562, 587, 415, 580, 602, 533,
402, 458
};
new gGangZone[255];
new gGangZoneCount;
stock AddGangZone(Float:min_x, Float:min_y, Float:max_x, Float:max_y) {
gGangZoneCount++;
gGangZone[gGangZoneCount] = GangZoneCreate(min_x, min_y, max_x, max_y);
}
//==============================
// random spawnpoints
new Float:gEFCSP[3][4] = { // elvis
{2628.3809,2348.7095,10.8203,213.3659},
{2576.9409,2337.4395,17.8145, 92.0170},
{2640.0483,2379.7546,10.8128,357.7708}
};
new Float:gGOLFERSSP[3][4] = { // golf
{1456.6193,2773.3772,10.8203,270.2127},
{1422.0598,2773.8186,10.8203, 93.0832},
{1441.9548,2796.2803,19.5234,274.3832}
};
new Float:gGUARDSSP[3][4] = { // guards
{1319.0714,1249.9614,10.8203,359.8904},
{1318.5450,1250.8882,14.2656, 1.4068},
{1347.5579,1258.2953,10.8203,308.1222}
};
new Float:gTRIADSSP[3][4] = { // triads
{1924.2043,959.9520,10.8203,86.6694},
{1930.4600,953.0236,10.8203,184.9937},
{1903.4855,966.5887,10.8203,186.7247}
};
new Float:gCOPSSP[3][4] = { // MOBSTERS
{2296.8059,2468.7441,10.8203, 90.1989},
{2296.7900,2451.5720,10.8203, 87.1462},
{2251.5298,2489.7859,10.9908,180.0413}
};
new Float:gMOBSTERSSP[3][4] = { // mobsters
{2179.0608,1721.8046,11.0469,118.3718},
{2159.9807,1638.6989,11.1569,342.6421},
{2196.3025,1670.0936,12.3672, 89.5648}
};
new Float:gWORKERSSP[3][4] = { // workers
{2677.4226,859.3422,10.9395,178.1178},
{2687.0083,829.1935,11.0283,91.5578},
{2697.3901,901.9382,10.4051,174.9568}
};
new Float:gMECHANICSSP[3][4] = { // mechanics
{1643.1450,2354.5815,10.8130, 93.8237},
{1643.2260,2308.1184,10.8203, 95.2967},
{1676.6885,2322.5818,10.8203,266.8212}
};
//====================================
Float:GetDistanceFromPointToPoint(Float:x1, Float:y1, Float:x2, Float:y2);
//====================================
forward TimeUpdate();
forward MoneyTimer();
forward GameModeExitFunc();
forward getCheckpointType(playerID);
forward isPlayerInArea(playerID, Float:data[4]);
forward checkpointUpdate();
forward SavedUpdate();
forward TeamFix();
forward TimeTextForPlayer(playerid, Text:text, time);
forward DestroyTextTimer(Text:text);
forward MiniAntiSpamMute( );
forward Unmute( playerid );
forward GameModeInitExitFunc();
forward OnPlayerTeamPrivmsg(playerid, msg[]);
forward SendAdminMessage(color, string[]);
//------------------------------
forward Turf1TakeOver(killerid);
forward Turf2TakeOver(killerid);
forward Turf3TakeOver(killerid);
forward Turf4TakeOver(killerid);
forward Turf5TakeOver(killerid);
forward Turf6TakeOver(killerid);
forward Turf7TakeOver(killerid);
forward Turf8TakeOver(killerid);
forward Turf9TakeOver(killerid);
forward Turf10TakeOver(killerid);
forward Turf11TakeOver(killerid);
forward Turf12TakeOver(killerid);
forward Turf13TakeOver(killerid);
forward Turf14TakeOver(killerid);
forward Turf15TakeOver(killerid);
forward Turf16TakeOver(killerid);
forward Turf17TakeOver(killerid);
forward Turf18TakeOver(killerid);
forward Turf19TakeOver(killerid);
forward Turf20TakeOver(killerid);
forward Turf21TakeOver(killerid);
forward Turf22TakeOver(killerid);
forward Turf23TakeOver(killerid);
forward Turf24TakeOver(killerid);
forward Turf25TakeOver(killerid);
forward Turf26TakeOver(killerid);
forward Turf27TakeOver(killerid);
forward Turf28TakeOver(killerid);
forward Turf29TakeOver(killerid);
forward Turf30TakeOver(killerid);
forward Turf31TakeOver(killerid);
forward Turf32TakeOver(killerid);
forward Turf33TakeOver(killerid);
forward Turf34TakeOver(killerid);
forward Turf35TakeOver(killerid);
forward Turf36TakeOver(killerid);
forward Turf37TakeOver(killerid);
forward Turf38TakeOver(killerid);
forward Turf39TakeOver(killerid);
forward Turf40TakeOver(killerid);
forward Turf41TakeOver(killerid);
forward Turf42TakeOver(killerid);
forward Turf43TakeOver(killerid);
forward Turf44TakeOver(killerid);
forward Turf45TakeOver(killerid);
forward Turf46TakeOver(killerid);
forward Turf47TakeOver(killerid);
forward Turf48TakeOver(killerid);
forward Turf49TakeOver(killerid);
forward Turf50TakeOver(killerid);
//==============================
#define MAX_SAVE 64
new savedInfo[ MAX_SAVE ][ 3 ];
new savedNames[ MAX_SAVE ][ MAX_PLAYER_NAME ];
new savedWeapons[ MAX_SAVE ][ MAX_WEAPONS ];
//==============================================================================
main()
{
print("\n\n-----------------------------------------\n");
print("------ LV Turf Wars ------\n");
print("------ By [W]Hustler ------\n");
print("-----------------------------------------\n\n");
worldTime = 12;
}
//==============================================================================
public TimeUpdate() {
worldTime++;
worldTime%=24;
SetWorldTime(worldTime);
}
//==============================================================================
public OnGameModeInit()
{
SetGameModeText("LV Turf Wars");
SetTeamCount(11);
ShowPlayerMarkers(1);
ShowNameTags(1);
EnableZoneNames(1);
EnableTirePopping(1);
UsePlayerPedAnims();
AllowAdminTeleport(1);
SetDisabledWeapons(8,10,11,12,13,14,17,19,20,21,35,36,37,38,39,40,41,42,43,44,45);
// PlayerClasses
// Elvis //
AddPlayerClassEx(0, 82, 2628.3809, 2348.7095, 10.8203, 213.3659, 22,136, 27,100, 33,20);//Pistols
AddPlayerClassEx(0, 83, 2628.3809, 2348.7095, 10.8203, 213.3659, 22,136, 27,100, 33,20);//C.Shotgun
AddPlayerClassEx(0, 84, 2628.3809, 2348.7095, 10.8203, 213.3659, 22,136, 27,100, 33,20);//C.Rifle
// Golfers //
AddPlayerClassEx(1, 36, 1456.6193, 2773.3772, 10.8203, 270.2127, 26,100, 31,150, 23,50);//SawnOff|AK47
AddPlayerClassEx(1, 37, 1456.6193, 2773.3772, 10.8203, 270.2127, 26,100, 31,150, 23,50);//Sil.Pistol
// Guards //
AddPlayerClassEx(2, 163, 1319.0714, 1249.9614, 10.8203, 359.8904, 29,180, 25,100, 34,15);//MP5
AddPlayerClassEx(2, 164, 1319.0714, 1249.9614, 10.8203, 359.8904, 29,180, 25,100, 34,15);//Shotgun
AddPlayerClassEx(2, 71, 1319.0714, 1249.9614, 10.8203, 359.8904, 29,180, 25,100, 34,15);//S.Rifle
// Triads //
AddPlayerClassEx(3, 117, 1924.2043, 959.9520, 10.8203, 86.6694, 28,200, 31,150, 18,5);//Uzi
AddPlayerClassEx(3, 120, 1924.2043, 959.9520, 10.8203, 86.6694, 28,200, 31,150, 18,5);//M4
AddPlayerClassEx(3, 294, 1924.2043, 959.9520, 10.8203, 86.6694, 28,200, 31,150, 18,5);//Molotov
// COPS //
AddPlayerClassEx(4, 265, 2296.8059, 2468.7441, 10.8203, 90.1989, 31,200, 24,100, 16,5);//M4
AddPlayerClassEx(4, 266, 2296.8059, 2468.7441, 10.8203, 90.1989, 31,200, 24,100, 16,5);//D.Eagle
AddPlayerClassEx(4, 267, 2296.8059, 2468.7441, 10.8203, 90.1989, 31,200, 24,100, 16,5);//Grenade
// Mobsters //
AddPlayerClassEx(5, 272, 2179.0608, 1721.8046, 11.0469, 118.3718, 32,250, 25,100, 23,50);//Tec9
AddPlayerClassEx(5, 124, 2179.0608, 1721.8046, 11.0469, 118.3718, 32,250, 25,100, 23,50);//Shotgun
AddPlayerClassEx(5, 125, 2179.0608, 1721.8046, 11.0469, 118.3718, 32,250, 25,100, 23,50);//Sil.Pistol
// Workers //
AddPlayerClassEx(6, 27, 2677.4226, 859.3422, 10.9395, 178.1178, 28,200, 30,120, 16,5);//Uzi
AddPlayerClassEx(6, 16, 2677.4226, 859.3422, 10.9395, 178.1178, 28,200, 30,120, 16,5);//AK47
AddPlayerClassEx(6, 153, 2677.4226, 859.3422, 10.9395, 178.1178, 28,200, 30,120, 16,5);//Grenade
// Mechanics //
AddPlayerClassEx(7, 50, 1643.1450, 2354.5815, 10.8130, 93.8237, 27,100, 24,100, 18,5);//C.Shotgun
AddPlayerClassEx(7, 268, 1643.1450 ,2354.5815, 10.8130, 93.8237, 27,100, 24,100, 18,5);//D.Eagle|Molotov
// Vehicles
AddStaticVehicleEx(487,2094.4465,2415.2385,74.7375,271.1638,-1,-1,50); // ---------vid1
AddStaticVehicleEx(487,1659.0100,1548.4155,10.9551,63.0487,-1,-1,50); //
AddStaticVehicleEx(487,2569.6162,2313.8262,17.9812,179.1731,102,96,30); // el
AddStaticVehicleEx(487,2608.6978,810.0910,11.1132,270.3885,51,96,30); // wo
AddStaticVehicleEx(487,1275.1578,1251.0979,10.9693,358.6146,25,96,30); // gu
AddStaticVehicleEx(487,1737.2349,2352.8459,10.9949,111.1276,65,96,30); // me
AddStaticVehicleEx(487,1428.0397,2874.4314,10.9803,230.9682,54,96,30); // go
AddStaticVehicleEx(487,2145.2554,1745.5623,10.9825,64.0813,113,96,30); // mo
AddStaticVehicleEx(487,1866.2169,913.5179,10.9805,1.0245,30,96,30); // tr ---------vid10
AddStaticVehicleEx(497,2208.0754,2504.2356,15.8316,181.8244,0,1,30); // co
// Mobsters //
AddStaticVehicleEx(405,2150.2361,1660.1317,10.5625,313.2410,113,96,30); // sentinel
AddStaticVehicleEx(405,2151.8452,1700.8228,10.5625,42.1650,113,96,30); // sentinel
AddStaticVehicleEx(405,2161.4370,1680.0216,10.6263,357.3232,113,96,30); // sentinel
AddStaticVehicleEx(471,2181.1252,1695.9106,10.5431,83.6429,96,113,30); // quad-mobsters
AddStaticVehicleEx(471,2181.0647,1661.0083,10.5427,91.5100,96,113,30); // quad-mobsters
// Triads //
AddStaticVehicleEx(560,1881.3552,954.0296,10.5259,269.7771,30,96,30); // sultan
AddStaticVehicleEx(561,1881.6270,978.8732,10.6340,269.9508,30,96,30); // stratum
AddStaticVehicleEx(562,1881.2587,1006.8519,10.4791,269.4868,30,96,30); // elegy
AddStaticVehicleEx(471,1880.5829,966.8928,10.3006,270.3502,96,30,30); // quad
AddStaticVehicleEx(561,1881.5861,1019.6302,10.6337,270.3472,30,96,30); // stratum
// Guards //
AddStaticVehicleEx(507,1282.0669,1306.9561,10.6463,269.3059,25,96,30); // elegant
AddStaticVehicleEx(507,1328.7433,1278.8710,10.6462,0.4769,25,96,30); // elegant
AddStaticVehicleEx(426,1306.3514,1278.9878,10.5631,359.8711,25,96,30); // premier
AddStaticVehicleEx(426,1282.2550,1287.6993,10.5637,270.1798,25,96,30); // premier
AddStaticVehicleEx(471,1281.8011,1297.3838,10.3011,270.9142,25,96,30); // quad
// Workers //
AddStaticVehicleEx(560,2668.5881,786.2685,10.6597,359.5543,51,51,30); // sultan
AddStaticVehicleEx(524,2618.1987,843.1329,6.2462,268.8980,51,51,30); // cement
AddStaticVehicleEx(406,2656.2593,860.3382,7.7333,177.6699,1,1,30); // dumper
AddStaticVehicleEx(486,2706.8359,818.6724,10.8689,1.6213,1,1,30); // dozer
AddStaticVehicleEx(552,2692.0405,816.9634,10.6527,179.7592,51,51,30); // utility
AddStaticVehicleEx(530,2654.7927,812.3699,5.0813,90.7226,111,1,30); // forklift
AddStaticVehicleEx(482,2636.0869,786.9632,5.4397,0.0893,51,51,30); // burrito
AddStaticVehicleEx(471,2654.2839,829.1022,8.3032,140.0301,51,96,30); // quad
// Mechanics //
AddStaticVehicleEx(525,1639.4199,2328.7297,10.6923,90.9605,65,96,30); // towtruck
AddStaticVehicleEx(525,1679.7505,2346.5483,10.6997,269.7509,65,96,30); // towtruck
AddStaticVehicleEx(443,1611.4357,2372.2520,11.4540,179.9929,65,96,30); // packer
AddStaticVehicleEx(552,1592.0648,2294.2043,10.5116,270.0344,65,96,30); // utility
AddStaticVehicleEx(482,1679.9426,2328.4780,10.9376,269.2670,65,96,30); // burrito
AddStaticVehicleEx(471,1641.7880,2368.5952,10.3020,143.0194,65,96,30); // quad
// Cops //
AddStaticVehicleEx(598,2260.5723,2477.1794,10.5672,179.0454,0,1,30); // LV:PD
AddStaticVehicleEx(598,2290.9163,2442.7578,10.5687,359.0877,0,1,30); // LV:PD
AddStaticVehicleEx(598,2251.8157,2442.8894,10.5654,359.1755,0,1,30); // LV:PD
AddStaticVehicleEx(598,2282.1196,2459.8562,10.5658,359.5823,0,1,30); // LV:PD
AddStaticVehicleEx(523,2290.8640,2477.4102,10.3901,178.9374,0,0,30); // Copbike
AddStaticVehicleEx(523,2269.1074,2459.7600,10.3865,180.6023,0,0,30); // Copbike
// Elvis //
AddStaticVehicleEx(458,2594.2642,2249.6611,10.9132,0.1499,102,96,30); // solair
AddStaticVehicleEx(458,2564.1619,2279.7290,10.9130,269.7122,102,96,30); // solair
AddStaticVehicleEx(471,2618.4084,2343.2195,10.2966,203.2018,102,96,30); // quad
AddStaticVehicleEx(562,2592.4756,2267.7876,10.4787,269.0993,102,96,30); // elegy
AddStaticVehicleEx(602,2564.2256,2253.7378,10.6270,269.2354,102,96,30); // alpha
// Golfers //
AddStaticVehicleEx(579,1460.5005,2843.2488,10.7541,179.8559,54,96,30); // huntley
AddStaticVehicleEx(541,1494.2910,2843.2703,10.4452,359.7987,54,96,30); // bullet
AddStaticVehicleEx(480,1422.0345,2830.3857,10.5951,270.3614,54,96,30); // comet
AddStaticVehicleEx(533,1530.2983,2804.7546,10.5294,89.9748,54,96,30); // feltzer
AddStaticVehicleEx(471,1460.3103,2879.6633,10.3037,179.0593,54,96,30); // quad
// normal vehicles //
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2340.0166,2117.4158,10.3063,179.1772,-1,-1,50); // bullet_5
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1919.7026,2760.9487,10.4522,88.5429,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2123.1543,1398.7004,10.4375,180.1265,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2460.0112,925.0530,10.4452,269.7485,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1367.1305,1905.0334,11.0937,271.3177,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1541.5825,2603.7256,10.5545,180.3491,-1,-1,50); // infernus_5
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2099.0408,2480.1597,10.5474,179.3891,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2039.9360,1561.3647,10.3990,179.6655,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2544.0686,734.6983,10.5474,0.6420,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1025.7600,1912.5472,11.1573,91.8213,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],993.5217,2274.4968,11.2221,0.2878,-1,-1,50); // comet_4
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2063.5015,2655.6914,10.5941,180.9128,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2529.3125,2006.8423,10.5935,359.1151,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2221.1970,732.1682,11.2290,178.6881,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2388.6545,693.1744,11.1602,0.0712,-1,-1,50); // turismo_5
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1587.2426,2719.2922,10.5272,0.6569,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2239.7271,1952.4745,15.0535,179.1859,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],925.5043,2019.9961,11.0877,89.9703,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1938.8773,1784.2255,12.4196,179.8742,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2186.7986,1979.2098,10.7502,89.7928,-1,-1,50); // huntley_5
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2809.9773,2256.9199,10.7527,90.1571,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1233.6329,2609.5471,10.7497,270.5261,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1641.4650,1296.2800,10.7555,269.9583,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1869.9668,1179.7969,10.7643,180.6411,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2039.7830,1215.5122,10.3300,179.7655,-1,-1,50); // club_5
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2486.5779,1418.1298,10.4783,359.9225,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2810.9915,893.5591,10.4158,0.6269,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2619.2581,2099.9211,10.4744,179.4754,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1668.1991,999.3506,10.4785,359.4512,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2074.8967,1047.4548,10.3879,0.6117,-1,-1,50); // blista_5
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2167.6392,1810.0381,10.5361,0.3719,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2510.3682,2499.0017,10.5370,89.5702,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1684.3075,2194.9597,10.5368,270.3609,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1676.1534,1305.7963,10.5367,359.7157,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1441.7227,2016.4081,10.9125,180.7115,-1,-1,50); // landstalker_5
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2285.0259,2042.5287,10.9127,89.6279,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1527.7367,2203.5735,10.9127,179.7879,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2163.2566,1009.7388,10.9128,89.7574,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2074.7620,1479.6855,10.3772,359.1311,-1,-1,50); // sultan_5
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2602.5820,1795.8744,10.5264,270.1076,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1958.2875,2438.3735,10.5250,90.4530,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2841.7559,2353.3386,10.5183,90.3070,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2183.5103,1285.5220,10.3770,180.7665,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1657.7113,2835.2556,10.5751,180.9483,-1,-1,50); // zr350_5
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1385.9365,2276.4216,10.5741,89.5498,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1089.4449,2039.8474,11.1277,270.2431,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1535.0835,787.2877,10.5756,179.5894,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2274.1260,1879.2256,10.5763,180.1222,-1,-1,50);
AddStaticVehicleEx(522,1412.7568,705.0912,10.3890,268.9777,-1,-1,50); // nrg500_8
AddStaticVehicleEx(522,2622.0728,1106.8651,10.3835,267.3047,-1,-1,50);
AddStaticVehicleEx(522,2809.0122,2026.3104,10.3908,359.4229,-1,-1,50);
AddStaticVehicleEx(522,2096.7139,2407.6614,31.8966,88.5247,-1,-1,50);
AddStaticVehicleEx(522,1913.5779,1817.4600,18.5047,179.6794,-1,-1,50);
AddStaticVehicleEx(522,1596.9814,1916.2965,10.3910,0.9330,-1,-1,50);
AddStaticVehicleEx(522,1040.1671,2313.7712,11.0384,179.5905,-1,-1,50);
AddStaticVehicleEx(522,2154.9119,2173.1409,10.2435,359.3055,-1,-1,50);
AddStaticVehicleEx(514,1379.6771,1038.9794,11.4081,271.6768,-1,-1,50); // tanker_4
AddStaticVehicleEx(514,1704.1650,746.9109,11.4093,182.1859,-1,-1,50);
AddStaticVehicleEx(514,2399.8577,2800.9729,11.4128,0.8659,-1,-1,50);
AddStaticVehicleEx(514,1446.8655,2370.9153,11.4050,268.7174,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2200.8896,2529.6594,10.6277,179.7935,-1,-1,50); // hustler_4
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2599.4287,1687.8195,10.6314,89.9309,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2132.6995,1025.6949,10.6314,268.8499,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2309.0718,1387.5192,17.0299,358.3670,-1,-1,50);
AddStaticVehicleEx(416,1624.3634,1819.1528,10.9688,0.9160,1,3,50); // ambulance_2
AddStaticVehicleEx(416,1883.1991,2240.6760,10.9693,90.2275,1,3,50);
AddStaticVehicleEx(420,1721.8887,1488.4362,10.4480,163.0425,-1,-1,50); // taxi_3
AddStaticVehicleEx(420,1708.4354,1419.1813,10.2728,185.8519,-1,-1,50);
AddStaticVehicleEx(420,1433.2502,2608.9287,10.4495,90.4692,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2040.0502,1379.5880,10.3282,179.8467,-1,-1,50); // jester_3
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2051.6877,773.3444,11.1095,179.7789,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2824.6250,1293.8087,10.4207,180.0484,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2455.5793,1275.8947,10.6342,90.1572,-1,-1,50); // stratum_3
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2120.0991,1933.9960,10.4850,179.9567,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2393.7249,986.4650,10.6341,0.8004,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2103.6838,2089.0706,10.5000,89.6389,-1,-1,50); // banshee_4
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1598.6187,2131.6563,11.1307,271.2186,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2432.0115,2547.2771,21.5547,359.1680,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1925.9707,698.0490,10.5000,179.7303,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1553.7565,1021.7628,10.4805,90.2183,-1,-1,50); // elegy_3
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2075.5769,2228.2222,10.4790,90.7900,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1928.5114,2656.2388,10.4453,182.1850,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2167.0430,2737.6497,10.5464,90.2242,-1,-1,50); // euros_3
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2572.7588,1059.3734,10.5473,0.2929,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2085.7627,653.7158,11.1727,1.4424,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1847.9371,734.1070,11.2331,269.2414,-1,-1,50); // cheetah_5
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2389.3105,1658.9147,10.5915,179.7360,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1914.0593,2117.5706,10.5910,88.7981,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],781.1291,1886.8740,4.7723,270.0668,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2332.7764,1465.7894,10.5907,89.0038,-1,-1,50);
AddStaticVehicleEx(476,1352.9524,1756.0701,11.5329,270.1070,-1,-1,30); // rustler_2
AddStaticVehicleEx(476,1352.9767,1714.1501,11.5325,269.8607,-1,-1,30);
AddStaticVehicleEx(593,1328.4003,1612.8673,11.2823,269.9724,-1,-1,30); // dodo_3
AddStaticVehicleEx(593,1328.2723,1580.2542,11.2793,270.7819,-1,-1,30);
AddStaticVehicleEx(593,1281.3132,1361.5042,11.2838,271.1652,-1,-1,30);
AddStaticVehicleEx(592,1477.5566,1771.9543,12.0084,179.8486,-1,-1,30); // andromada_1
AddStaticVehicleEx(553,1567.9365,1327.5068,12.1957,54.5890,5-1,-1,30); // nevada_1
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2440.8911,2017.0930,10.6165,269.6954,-1,-1,50); // stafford_2
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2015.6399,2250.1301,23.7102,89.9551,-1,-1,50);
AddStaticVehicleEx(521,1686.1753,2054.7253,11.0568,269.5677,-1,-1,50); // fcr900_5
AddStaticVehicleEx(521,2633.9651,2177.2629,10.4122,179.1067,-1,-1,50);
AddStaticVehicleEx(521,2579.7283,1225.7368,10.4018,359.8362,-1,-1,50);
AddStaticVehicleEx(521,1658.5725,1039.6758,10.3998,178.6224,-1,-1,50);
AddStaticVehicleEx(521,1710.5845,2698.3828,10.4041,0.9560,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1455.7183,1100.9534,10.6264,0.1034,-1,-1,50); // alpha_4
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1680.9491,1753.4017,10.6334,271.9320,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2360.4617,2203.2559,10.4843,359.9385,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2039.7783,940.9880,9.5899,180.3659,-1,-1,50);
AddStaticVehicleEx(584,1425.8328,1055.5983,10.6199,91.3573,-1,-1,50); // trailer_4
AddStaticVehicleEx(450,2367.9470,2755.9709,10.6268,180.6494,-1,-1,50);
AddStaticVehicleEx(435,1695.6190,688.7194,10.6264,359.2707,-1,-1,50);
AddStaticVehicleEx(584,1493.9489,2367.6487,10.8203,2.6578,-1,-1,50);
AddStaticVehicleEx(406,2420.0427,1893.7073,7.5409,280.6230,-1,-1,50); // dumper_1
AddStaticVehicleEx(486,2427.3499,1952.3828,6.2349,179.1030,-1,-1,50); // dozer_1
AddStaticVehicleEx(524,2486.5674,1868.1685,11.4812,359.8380,-1,-1,50); // cement_1
AddStaticVehicleEx(444,1060.8198,1290.0707,11.1916,269.6880,-1,-1,50); // monster_2
AddStaticVehicleEx(444,1032.8547,1306.6661,11.1933,1.0045,-1,-1,50);
AddStaticVehicleEx(432,275.1338,2025.9343,17.7536,271.4715,-1,-1,30); // rhino_1
AddStaticVehicleEx(470,275.5993,1988.8992,17.6345,267.4164,-1,-1,50); // patriot_2
AddStaticVehicleEx(470,276.3875,1955.6840,17.6323,268.6328,-1,-1,50);
AddStaticVehicleEx(448,2637.4250,1853.7677,10.6195,38.0821,3,6,50); // pizzaboy_2
AddStaticVehicleEx(448,2368.1550,2536.4570,10.4196,216.5177,3,6,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2591.9175,1846.6589,10.5294,90.6307,-1,-1,50); // feltzer_4
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2127.5093,2357.1201,10.3810,89.9984,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1365.4449,2520.1289,10.5294,269.6555,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1959.9789,1728.2712,18.6429,0.0160,-1,-1,50);
AddStaticVehicleEx(463,2326.8306,653.8416,10.9935,135.5016,-1,-1,50); // freeway_5
AddStaticVehicleEx(463,2446.5603,1208.4742,10.3607,181.2497,-1,-1,50);
AddStaticVehicleEx(463,2485.7217,1667.5084,10.3609,358.8430,-1,-1,50);
AddStaticVehicleEx(463,1369.1094,2698.1965,10.3607,181.4820,-1,-1,50);
AddStaticVehicleEx(463,2511.5720,2364.8967,10.3607,89.1133,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2524.4722,2372.7673,4.0426,270.1851,-1,-1,50); // buffalo_3
AddStaticVehicleEx(randcar[random(sizeof(randcar))],2269.4819,2326.0674,10.6519,271.4679,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1879.3564,1966.2317,13.6164,0.1284,-1,-1,50);
AddStaticVehicleEx(510,2477.0122,1132.1898,10.4291,178.6919,-1,-1,50); // mountainbike_4
AddStaticVehicleEx(510,1940.9202,1566.5649,10.2643,181.7515,-1,-1,50);
AddStaticVehicleEx(510,1346.8152,2002.5367,10.4213,181.8357,-1,-1,50);
AddStaticVehicleEx(510,2159.2646,2808.0269,10.4265,181.5607,-1,-1,50);
AddStaticVehicleEx(randcar[random(sizeof(randcar))],1909.1060,2080.3169,10.9133,179.7421,-1,-1,50); // solair_1
AddStaticVehicleEx(457,1337.9006,2773.9958,10.4432,66.3598,-1,-1,30); // caddy_3
AddStaticVehicleEx(457,1245.3346,2837.8215,10.4470,242.1769,-1,-1,30);
AddStaticVehicleEx(457,1210.6246,2794.1555,10.4469,220.1736,-1,-1,30);
AddStaticVehicleEx(552,2395.1333,1860.0509,5.7181,359.5908,56,56,50); // utility_1
AddStaticVehicleEx(530,2437.5554,1872.0314,7.9281,41.7518,112,1,50); // forklift_1
//GangTurfs
AddGangZone(1817.30, 863.20, 2027.30, 1083.20);// min_x, min_y, max_x, max_y
AddGangZone(1817.30, 1083.20, 2027.30, 1283.20);
AddGangZone(1817.30, 1283.20, 2027.30, 1469.20);
AddGangZone(2537.30, 676.50, 2902.30, 943.20);
AddGangZone(2087.30, 943.20, 2623.10, 1203.20);
AddGangZone(2087.30, 1543.20, 2437.30, 1703.20);
AddGangZone(2137.40, 1703.20, 2437.30, 1783.20);
AddGangZone(2087.30, 1383.20, 2437.30, 1543.20);
AddGangZone(2027.40, 863.20, 2087.30, 1703.20);
AddGangZone(2377.30, 788.80, 2537.30, 897.90); //10
AddGangZone(2623.10, 943.20, 2749.90, 1055.90);
AddGangZone(2377.30, 596.30, 2537.30, 788.80);
AddGangZone(1997.20, 596.30, 2377.30, 823.20);
AddGangZone(2027.40, 1703.20, 2137.40, 1783.20);
AddGangZone(2437.30, 1383.20, 2624.40, 1783.20);
AddGangZone(1817.30, 1469.20, 2027.40, 1703.20);
AddGangZone(2087.30, 1203.20, 2640.40, 1383.20);
AddGangZone(1236.60, 1203.20, 1457.30, 1883.10);
AddGangZone(1457.30, 1203.20, 1777.30, 1883.10);
AddGangZone(1457.30, 1143.20, 1777.40, 1203.20); //20
AddGangZone(1515.80, 1586.40, 1729.90, 1714.50);
AddGangZone(1534.50, 2583.20, 1848.40, 2863.20);
AddGangZone(1117.40, 2507.20, 1534.50, 2723.20);
AddGangZone(1848.40, 2553.40, 1938.80, 2863.20);
AddGangZone(1938.80, 2624.20, 2121.40, 2861.50);
AddGangZone(1117.40, 2723.23, 1457.46, 2863.23);
AddGangZone(1457.46, 2723.23, 1534.56, 2863.23);
AddGangZone(1236.60, 1883.10, 1777.30, 2142.80);
AddGangZone(1297.40, 2142.80, 1777.30, 2243.20);
AddGangZone(1377.30, 2243.20, 1704.50, 2433.20); //30
AddGangZone(1704.50, 2243.20, 1777.30, 2342.80);
AddGangZone(2237.40, 2202.70, 2536.40, 2542.50);
AddGangZone(2536.40, 2202.70, 2625.10, 2442.50);
AddGangZone(2011.90, 2202.70, 2237.40, 2508.20);
AddGangZone(2162.30, 2012.10, 2685.10, 2202.70);
AddGangZone(2437.30, 1783.20, 2685.10, 2012.10);
AddGangZone(2437.30, 1858.10, 2495.00, 1970.80);
AddGangZone(2162.30, 1883.20, 2437.30, 2012.10);
AddGangZone(2162.30, 1783.20, 2437.30, 1883.20);
AddGangZone(1817.30, 2011.80, 2106.70, 2202.70); //40
AddGangZone(1817.30, 2202.70, 2011.90, 2342.80);
AddGangZone(1848.40, 2342.80, 2011.90, 2478.40);
AddGangZone(1457.30, 863.20, 1777.40, 1143.20);
AddGangZone(1817.30, 1863.20, 2106.70, 2011.80);
AddGangZone(1817.30, 1703.20, 2027.40, 1863.20);
AddGangZone(2106.70, 1863.20, 2162.30, 2202.70);
AddGangZone(2027.40, 1783.20, 2162.30, 1863.20);
AddGangZone(2625.10, 2202.70, 2685.10, 2442.50);
AddGangZone(2121.40, 2663.10, 2498.20, 2861.50);
AddGangZone(1823.00, 596.30, 1997.20, 823.20); //50
//TurfOwners
turfOwner[T_t1] = TEAM_TRIADS;
turfOwner[T_t2] = TEAM_TRIADS;
turfOwner[T_t3] = TEAM_TRIADS;
turfOwner[T_t4] = TEAM_WORKERS;
turfOwner[T_t5] = TEAM_TRIADS;
turfOwner[T_t6] = TEAM_MOBSTERS;
turfOwner[T_t7] = TEAM_MOBSTERS;
turfOwner[T_t8] = TEAM_MOBSTERS;
turfOwner[T_t9] = TEAM_TRIADS;
turfOwner[T_t10] = TEAM_WORKERS;
turfOwner[T_t11] = TEAM_WORKERS;
turfOwner[T_t12] = TEAM_WORKERS;
turfOwner[T_t13] = TEAM_WORKERS;
turfOwner[T_t14] = TEAM_MOBSTERS;
turfOwner[T_t15] = TEAM_MOBSTERS;
turfOwner[T_t16] = TEAM_TRIADS;
turfOwner[T_t17] = TEAM_MOBSTERS;
turfOwner[T_t18] = TEAM_GUARDS;
turfOwner[T_t19] = TEAM_GUARDS;
turfOwner[T_t20] = TEAM_GUARDS;
turfOwner[T_t21] = TEAM_GUARDS;
turfOwner[T_t22] = TEAM_GOLFERS;
turfOwner[T_t23] = TEAM_GOLFERS;
turfOwner[T_t24] = TEAM_GOLFERS;
turfOwner[T_t25] = TEAM_GOLFERS;
turfOwner[T_t26] = TEAM_GOLFERS;
turfOwner[T_t27] = TEAM_GOLFERS;
turfOwner[T_t28] = TEAM_MECHANICS;
turfOwner[T_t29] = TEAM_MECHANICS;
turfOwner[T_t30] = TEAM_MECHANICS;
turfOwner[T_t31] = TEAM_MECHANICS;
turfOwner[T_t32] = TEAM_COPS;
turfOwner[T_t33] = TEAM_EFC;
turfOwner[T_t34] = TEAM_COPS;
turfOwner[T_t35] = TEAM_EFC;
turfOwner[T_t36] = TEAM_EFC;
turfOwner[T_t37] = TEAM_EFC;
turfOwner[T_t38] = TEAM_EFC;
turfOwner[T_t39] = TEAM_EFC;
turfOwner[T_t40] = TEAM_COPS;
turfOwner[T_t41] = TEAM_COPS;
turfOwner[T_t42] = TEAM_COPS;
turfOwner[T_t43] = TEAM_GUARDS;
turfOwner[T_t44] = TEAM_COPS;
turfOwner[T_t45] = TEAM_TRIADS;
turfOwner[T_t46] = TEAM_COPS;
turfOwner[T_t47] = TEAM_MOBSTERS;
turfOwner[T_t48] = TEAM_EFC;
turfOwner[T_t49] = TEAM_GOLFERS;
turfOwner[T_t50] = TEAM_WORKERS;
SetTimer( "MoneyTimer", 1000, 1 );
SetTimer( "checkpointUpdate", 1100, 1 );
SetTimer( "TimeUpdate", 60009, 1 );
SetTimer( "SavedUpdate", 60017, 1 );
return 1;
}
//==============================================================================
public getCheckpointType(playerID) {
return checkpointType[playerCheckpoint[playerID]];
}
//==============================================================================
public isPlayerInArea(playerID, Float:data[4])
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerID, X, Y, Z);
if(X >= data[0] && X <= data[2] && Y >= data[1] && Y <= data[3]) {
return 1;
}
return 0;
}
//==============================================================================
public checkpointUpdate()
{
for(new i=0; i<SLOTS; i++)
{
if(IsPlayerConnected(i)) {
for(new j=0; j < MAX_POINTS; j++) {
if(isPlayerInArea(i, checkCoords[j])) {
if(playerCheckpoint[i]!=j) {
DisablePlayerCheckpoint(i);
SetPlayerCheckpoint(i, checkpoints[j][0],checkpoints[j][1],checkpoints[j][2],checkpoints[j][3]);
playerCheckpoint[i] = j;
}
} else {
if(playerCheckpoint[i]==j) {
DisablePlayerCheckpoint(i);
playerCheckpoint[i] = 999;
}
}
}
}
}
}
//==============================================================================
public SavedUpdate()
{
for(new i = 0; i < MAX_SAVE; i++) {
if(savedInfo[i][2] < 5) {
if(savedInfo[i][2]==3) {
savedInfo[i][0]=savedInfo[i][1]=0;
savedNames[i][0]=0;
}
savedInfo[i][2]++;
}
}
}
//==============================================================================
public MoneyTimer( )
{
for ( new playerid = 0, mp = GetMaxPlayers( ); playerid < mp; playerid++ )
{
if ( !IsPlayerConnected( playerid ) )
continue;
new
pMoney = GetPlayerMoney( playerid );
if ( !lSMoney[ playerid ] && pMoney > ( lTMoney[ playerid ] + 1499 ) )
{
GetPlayerPos( playerid, X250[ playerid ], Y250[ playerid ], Z250[ playerid ] );
if (X250[playerid] >= 1924.0562 && X250[playerid] <= 2019.0679 &&
Y250[playerid] >= 967.1267 && Y250[playerid] <= 1029.9370 )
{
new tString[ 128 ];
GetPlayerName( playerid, tString, MAX_PLAYER_NAME );
format(
tString, 128,
"* %s's (%d) cash just increased by $%d (from $%d to $%d | Location: FourDragons)",
tString, playerid, pMoney - lTMoney[ playerid ],
lTMoney[ playerid ],pMoney
);
SendAdminMessage( COLOR_ORANGE, tString );
}
else if (X250[playerid] >= 2147.1572 && X250[playerid] <= 2259.6709 &&
Y250[playerid] >= 1573.1588 && Y250[playerid] <= 1714.0790 )
{
new tString[ 128 ];
GetPlayerName( playerid, tString, MAX_PLAYER_NAME );
format(
tString, 128,
"* %s's (%d) cash just increased by $%d (from $%d to $%d | Location: Caligulas)",
tString, playerid, pMoney - lTMoney[ playerid ],
lTMoney[ playerid ],pMoney
);
SendAdminMessage( COLOR_ORANGE, tString );
}
else
{
new tString[ 128 ];
GetPlayerName( playerid, tString, MAX_PLAYER_NAME );
format(
tString, 128,
"* %s's (%d) cash just increased by $%d (from $%d to $%d | Location: Unknown)",
tString, playerid, pMoney - lTMoney[ playerid ],
lTMoney[ playerid ],pMoney
);
SendAdminMessage( COLOR_ORANGE, tString );
}
}
// Set the last script money to the current
// real money (to stop the increase showing many times).
lTMoney[ playerid ] = pMoney;
lSMoney[ playerid ] = 0;
}
}
//==============================================================================
public OnPlayerConnect(playerid)
{
new playrname[MAX_PLAYER_NAME], string[256];
SetPlayerColor(playerid, COLOR_INACTIVE);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~w~LV Turf Wars", 5000, 3);
SendClientMessage(playerid, COLOR_RED, "Type /help for more info.");
GetPlayerName(playerid, playrname, sizeof(playrname));
format(string, 256, "*** %s has joined the server.", playrname);
SendClientMessageToAll( COLOR_INACTIVE, string );
// SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
playerCheckpoint[ playerid ] =999;
AllowPlayerTeleport( playerid, 0 );
SetPlayerWantedLevel( playerid, 0 );
TeamKills[ playerid ] =0;
gDriveBy[ playerid ] =0;
gHeliKill[ playerid ] =0;
Spawned [ playerid ] =0;
PIDB[ playerid ] =0;
PIHK[ playerid ] =0;
ShowPM[ playerid ] =0;
ShowTPM[ playerid ] =0;
MiniAntiSpamCount[ playerid ] = 0;
muted[ playerid ] =0;
PlayerOnDuty[ playerid ]=0;
lTMoney[ playerid ] = 0;
lSMoney[ playerid ] = 0;
GetPlayerName(playerid, playrname, sizeof(playrname));
for(new i = 0; i < MAX_SAVE; i++) {
if(isStringSame(savedNames[i], playrname, MAX_PLAYER_NAME)) {
bounty[playerid] = savedInfo[i][0];
savedInfo[i][0]=savedInfo[i][1]=0;
savedNames[i][0]=0;
for(new j = 0; j < MAX_WEAPONS; j++) {
playerWeapons[playerid][j]=savedWeapons[i][j];
savedWeapons[i][j]=0;
}
}
}
GangZoneShowForPlayer(playerid,gGangZone[1],teamColors[turfOwner[T_t1]]);
GangZoneShowForPlayer(playerid,gGangZone[2],teamColors[turfOwner[T_t2]]);
GangZoneShowForPlayer(playerid,gGangZone[3],teamColors[turfOwner[T_t3]]);
GangZoneShowForPlayer(playerid,gGangZone[4],teamColors[turfOwner[T_t4]]);
GangZoneShowForPlayer(playerid,gGangZone[5],teamColors[turfOwner[T_t5]]);
GangZoneShowForPlayer(playerid,gGangZone[6],teamColors[turfOwner[T_t6]]);
GangZoneShowForPlayer(playerid,gGangZone[7],teamColors[turfOwner[T_t7]]);
GangZoneShowForPlayer(playerid,gGangZone[8],teamColors[turfOwner[T_t8]]);
GangZoneShowForPlayer(playerid,gGangZone[9],teamColors[turfOwner[T_t9]]);
GangZoneShowForPlayer(playerid,gGangZone[10],teamColors[turfOwner[T_t10]]);
GangZoneShowForPlayer(playerid,gGangZone[11],teamColors[turfOwner[T_t11]]);
GangZoneShowForPlayer(playerid,gGangZone[12],teamColors[turfOwner[T_t12]]);
GangZoneShowForPlayer(playerid,gGangZone[13],teamColors[turfOwner[T_t13]]);
GangZoneShowForPlayer(playerid,gGangZone[14],teamColors[turfOwner[T_t14]]);
GangZoneShowForPlayer(playerid,gGangZone[15],teamColors[turfOwner[T_t15]]);
GangZoneShowForPlayer(playerid,gGangZone[16],teamColors[turfOwner[T_t16]]);
GangZoneShowForPlayer(playerid,gGangZone[17],teamColors[turfOwner[T_t17]]);
GangZoneShowForPlayer(playerid,gGangZone[18],teamColors[turfOwner[T_t18]]);
GangZoneShowForPlayer(playerid,gGangZone[19],teamColors[turfOwner[T_t19]]);
GangZoneShowForPlayer(playerid,gGangZone[20],teamColors[turfOwner[T_t20]]);
GangZoneShowForPlayer(playerid,gGangZone[21],teamColors[turfOwner[T_t21]]);
GangZoneShowForPlayer(playerid,gGangZone[22],teamColors[turfOwner[T_t22]]);
GangZoneShowForPlayer(playerid,gGangZone[23],teamColors[turfOwner[T_t23]]);
GangZoneShowForPlayer(playerid,gGangZone[24],teamColors[turfOwner[T_t24]]);
GangZoneShowForPlayer(playerid,gGangZone[25],teamColors[turfOwner[T_t25]]);
GangZoneShowForPlayer(playerid,gGangZone[26],teamColors[turfOwner[T_t26]]);
GangZoneShowForPlayer(playerid,gGangZone[27],teamColors[turfOwner[T_t27]]);
GangZoneShowForPlayer(playerid,gGangZone[28],teamColors[turfOwner[T_t28]]);
GangZoneShowForPlayer(playerid,gGangZone[29],teamColors[turfOwner[T_t29]]);
GangZoneShowForPlayer(playerid,gGangZone[30],teamColors[turfOwner[T_t30]]);
GangZoneShowForPlayer(playerid,gGangZone[31],teamColors[turfOwner[T_t31]]);
GangZoneShowForPlayer(playerid,gGangZone[32],teamColors[turfOwner[T_t32]]);
GangZoneShowForPlayer(playerid,gGangZone[33],teamColors[turfOwner[T_t33]]);
GangZoneShowForPlayer(playerid,gGangZone[34],teamColors[turfOwner[T_t34]]);
GangZoneShowForPlayer(playerid,gGangZone[35],teamColors[turfOwner[T_t35]]);
GangZoneShowForPlayer(playerid,gGangZone[36],teamColors[turfOwner[T_t36]]);
GangZoneShowForPlayer(playerid,gGangZone[37],teamColors[turfOwner[T_t37]]);
GangZoneShowForPlayer(playerid,gGangZone[38],teamColors[turfOwner[T_t38]]);
GangZoneShowForPlayer(playerid,gGangZone[39],teamColors[turfOwner[T_t39]]);
GangZoneShowForPlayer(playerid,gGangZone[40],teamColors[turfOwner[T_t40]]);
GangZoneShowForPlayer(playerid,gGangZone[41],teamColors[turfOwner[T_t41]]);
GangZoneShowForPlayer(playerid,gGangZone[42],teamColors[turfOwner[T_t42]]);
GangZoneShowForPlayer(playerid,gGangZone[43],teamColors[turfOwner[T_t43]]);
GangZoneShowForPlayer(playerid,gGangZone[44],teamColors[turfOwner[T_t44]]);
GangZoneShowForPlayer(playerid,gGangZone[45],teamColors[turfOwner[T_t45]]);
GangZoneShowForPlayer(playerid,gGangZone[46],teamColors[turfOwner[T_t46]]);
GangZoneShowForPlayer(playerid,gGangZone[47],teamColors[turfOwner[T_t47]]);
GangZoneShowForPlayer(playerid,gGangZone[48],teamColors[turfOwner[T_t48]]);
GangZoneShowForPlayer(playerid,gGangZone[49],teamColors[turfOwner[T_t49]]);
GangZoneShowForPlayer(playerid,gGangZone[50],teamColors[turfOwner[T_t50]]);
return 1;
}
//==============================================================================
public OnPlayerDisconnect(playerid, reason)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
//Save temp info for timeouts/crashes
GetPlayerName(playerid, playername, sizeof(playername));
format(savedNames[savePos], MAX_PLAYER_NAME, "%s",playername);
savedInfo[savePos][0] = bounty[playerid];
savedInfo[savePos][1] = 0;
for(new i = 0; i < MAX_WEAPONS; i++)
savedWeapons[savePos][i]=playerWeapons[playerid][i];
//
savePos++;
if(savePos >= MAX_SAVE)
savePos = 0;
bounty[playerid] = 0;
MiniAntiSpamCount[playerid] = 0;
for(new i = 0; i < MAX_WEAPONS;i++) {
playerWeapons[playerid][i]=0;
}
SetPlayerColor( playerid, COLOR_INACTIVE );
}
//==============================================================================
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerClass( playerid, classid );
SetPlayerColor( playerid, COLOR_INACTIVE );
PlayerPlaySound( playerid, 1068, 0.0, 0.0, 0.0 );
switch(classid)
{
case 0..2:
{
SetPlayerPos( playerid, 2614.2617, 2294.0925, 10.8203);
SetPlayerCameraPos( playerid, 2613.0112, 2291.6824, 10.8203);
SetPlayerCameraLookAt( playerid, 2614.2617, 2294.0925, 10.8203);
SetPlayerFacingAngle(playerid,145.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~E.F.C", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_ANGRY",4.0,1,1,1,1,1);
}
case 3..4:
{
SetPlayerPos(playerid, 1509.3374,2759.3149,10.8125);
SetPlayerCameraPos(playerid, 1511.9844,2758.4561,10.8125);
SetPlayerCameraLookAt(playerid,1509.3374,2759.3149,10.8125);
SetPlayerFacingAngle(playerid,255.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Golfers", 3000, 3);
ApplyAnimation(playerid,"RIOT", "RIOT_CHANT",4.0,1,1,1,1,1);
}
case 5..7:
{
SetPlayerPos(playerid,1289.1920,1313.4346,17.3299);
SetPlayerCameraPos(playerid,1287.9818,1315.8494,17.6311);
SetPlayerCameraLookAt(playerid,1289.1920,1313.4346,17.3299);
SetPlayerFacingAngle(playerid,30.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Guards", 3000, 3);
ApplyAnimation(playerid,"GHANDS", "gsign2LH",4.0,1,1,1,1,1);
}
case 8..10:
{
SetPlayerPos(playerid,2034.5020,1007.8717,10.8203);
SetPlayerCameraPos(playerid,2037.1581,1007.9218,10.8203);
SetPlayerCameraLookAt(playerid,2034.5020,1007.8717,10.8203);
SetPlayerFacingAngle(playerid,270.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Triads", 3000, 3);
ApplyAnimation(playerid,"LOWRIDER", "RAP_B_Loop",4.0,1,1,1,1,1);
}
case 11..13:
{
SetPlayerPos(playerid,2214.7708,2431.7397,11.2422);
SetPlayerCameraPos(playerid,2212.5396,2430.1682,11.2422);
SetPlayerCameraLookAt(playerid,2214.7708,2431.7397,11.2422);
SetPlayerFacingAngle(playerid,120.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Cops", 3000, 3);
ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
}
case 14..16:
{
SetPlayerPos(playerid,2080.5840,1682.7871,10.8203);
SetPlayerCameraPos(playerid,2077.9380,1684.2322,10.8203);
SetPlayerCameraLookAt(playerid,2080.5840,1682.7871,10.8203);
SetPlayerFacingAngle(playerid,55.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Mobsters", 3000, 3);
ApplyAnimation(playerid,"DEALER", "DEALER_IDLE",4.0,1,1,1,1,1);
}
case 17..19:
{
SetPlayerPos(playerid,2695.0601,875.6984,13.5703);
SetPlayerCameraPos(playerid,2699.5176,879.5563,13.5703);
SetPlayerCameraLookAt(playerid,2695.0601,875.6984,13.5703);
SetPlayerFacingAngle(playerid,315.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Workers", 3000, 3);
ApplyAnimation(playerid,"GANGS", "Invite_Yes",4.0,1,1,1,1,1);
}
case 20..21:
{
SetPlayerPos(playerid,1597.1831,2312.2361,18.8222);
SetPlayerCameraPos(playerid,1594.8032,2311.0300,18.8222);
SetPlayerCameraLookAt(playerid,1597.1831,2312.2361,18.8222);
SetPlayerFacingAngle(playerid,110.0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~y~Mechanics", 3000, 3);
ApplyAnimation(playerid,"LOWRIDER", "RAP_A_Loop",4.0,1,1,1,1,1);
}
}
return 1;
}
//==============================================================================
SetPlayerClass(playerid, classid)
{
if(classid ==0 || classid ==1 || classid ==2) {gTeam[playerid] = TEAM_EFC; }
else if(classid== 3 || classid== 4) {gTeam[playerid] = TEAM_GOLFERS; }
else if(classid== 5 || classid== 6 || classid== 7){gTeam[playerid] = TEAM_GUARDS; }
else if(classid== 8 || classid== 9 || classid==10){gTeam[playerid] = TEAM_TRIADS; }
else if(classid==11 || classid==12 || classid==13){gTeam[playerid] = TEAM_COPS; }
else if(classid==14 || classid==15 || classid==16){gTeam[playerid] = TEAM_MOBSTERS; }
else if(classid==17 || classid==18 || classid==19){gTeam[playerid] = TEAM_WORKERS; }
else if(classid==20 || classid==21) {gTeam[playerid] = TEAM_MECHANICS;}
}
//==============================================================================
public OnPlayerSpawn(playerid)
{
new rand = random( 5 );
SetPlayerInterior( playerid, 0 );
SetPlayerToTeamColor( playerid );
TeamFix( );
SetPlayerHealth( playerid, 100 );
Spawned[ playerid ] =1;
FlashZoneForPlayer( playerid );
PlayerPlaySound( playerid, 1069, 0.0, 0.0, 0.0) ;
SetCameraBehindPlayer( playerid );
if (GetPlayerScore( playerid ) >= 100) { SetPlayerArmour( playerid, 100 ); }
if (PlayerOnDuty[ playerid ] == 1) { SetPlayerColor( playerid, COLOR_WHITE ); }
if(PIDB[playerid] == 1) {
if(gTeam[playerid] == TEAM_EFC) { GivePlayerWeapon(playerid, 4, 1); }
else if(gTeam[playerid] == TEAM_GOLFERS) { GivePlayerWeapon(playerid, 2, 1); }
else if(gTeam[playerid] == TEAM_GUARDS) { GivePlayerWeapon(playerid, 3, 1); }
else if(gTeam[playerid] == TEAM_TRIADS) { GivePlayerWeapon(playerid,15, 1); }
else if(gTeam[playerid] == TEAM_COPS) { GivePlayerWeapon(playerid, 3, 1); }
else if(gTeam[playerid] == TEAM_MOBSTERS) { GivePlayerWeapon(playerid, 5, 1); }
else if(gTeam[playerid] == TEAM_WORKERS) { GivePlayerWeapon(playerid, 6, 1); }
else if(gTeam[playerid] == TEAM_MECHANICS) { GivePlayerWeapon(playerid, 5, 1); }
SetPlayerPos(playerid, X250[playerid], Y250[playerid], Z250[playerid]);
PIDB[playerid] =0;
}
else if(PIHK[playerid] == 1) {
if(gTeam[playerid] == TEAM_EFC) { GivePlayerWeapon(playerid, 4, 1); }
else if(gTeam[playerid] == TEAM_GOLFERS) { GivePlayerWeapon(playerid, 2, 1); }
else if(gTeam[playerid] == TEAM_GUARDS) { GivePlayerWeapon(playerid, 3, 1); }
else if(gTeam[playerid] == TEAM_TRIADS) { GivePlayerWeapon(playerid,15, 1); }
else if(gTeam[playerid] == TEAM_COPS) { GivePlayerWeapon(playerid, 3, 1); }
else if(gTeam[playerid] == TEAM_MOBSTERS) { GivePlayerWeapon(playerid, 5, 1); }
else if(gTeam[playerid] == TEAM_WORKERS) { GivePlayerWeapon(playerid, 6, 1); }
else if(gTeam[playerid] == TEAM_MECHANICS) { GivePlayerWeapon(playerid, 5, 1); }
SetPlayerPos(playerid, X250[playerid], Y250[playerid], Z250[playerid]);
PIHK[playerid] =0;
}
else
{
if(gTeam[playerid] == TEAM_EFC) {
SetPlayerPos(playerid,gEFCSP[rand][0],gEFCSP[rand][1],gEFCSP[rand][2]);
SetPlayerFacingAngle(playerid,gEFCSP[rand][3]);
GivePlayerWeapon(playerid, 4, 1);
}
else if(gTeam[playerid] == TEAM_GOLFERS) {
SetPlayerPos(playerid,gGOLFERSSP[rand][0],gGOLFERSSP[rand][1],gGOLFERSSP[rand][2]);
SetPlayerFacingAngle(playerid,gGOLFERSSP[rand][3]);
GivePlayerWeapon(playerid, 2, 1);
}
else if(gTeam[playerid] == TEAM_GUARDS) {
SetPlayerPos(playerid,gGUARDSSP[rand][0],gGUARDSSP[rand][1],gGUARDSSP[rand][2]);
SetPlayerFacingAngle(playerid,gGUARDSSP[rand][3]);
GivePlayerWeapon(playerid, 3, 1);
}
else if(gTeam[playerid] == TEAM_TRIADS) {
SetPlayerPos(playerid,gTRIADSSP[rand][0],gTRIADSSP[rand][1],gTRIADSSP[rand][2]);
SetPlayerFacingAngle(playerid,gTRIADSSP[rand][3]);
GivePlayerWeapon(playerid, 15, 1);
}
else if(gTeam[playerid] == TEAM_COPS) {
SetPlayerPos(playerid,gCOPSSP[rand][0],gCOPSSP[rand][1],gCOPSSP[rand][2]);
SetPlayerFacingAngle(playerid,gCOPSSP[rand][3]);
GivePlayerWeapon(playerid, 3, 1);
}
else if(gTeam[playerid] == TEAM_MOBSTERS) {
SetPlayerPos(playerid,gMOBSTERSSP[rand][0],gMOBSTERSSP[rand][1],gMOBSTERSSP[rand][2]);
SetPlayerFacingAngle(playerid,gMOBSTERSSP[rand][3]);
GivePlayerWeapon(playerid, 5, 1);
}
else if(gTeam[playerid] == TEAM_WORKERS) {
SetPlayerPos(playerid,gWORKERSSP[rand][0],gWORKERSSP[rand][1],gWORKERSSP[rand][2]);
SetPlayerFacingAngle(playerid,gWORKERSSP[rand][3]);
GivePlayerWeapon(playerid, 6, 1);
}
else if(gTeam[playerid] == TEAM_MECHANICS) {
SetPlayerPos(playerid,gMECHANICSSP[rand][0],gMECHANICSSP[rand][1],gMECHANICSSP[rand][2]);
SetPlayerFacingAngle(playerid,gMECHANICSSP[rand][3]);
GivePlayerWeapon(playerid, 5, 1);
}
}
for(new i = 0; i < MAX_WEAPONS; i++) {
if(playerWeapons[playerid][i] > 0) {
GivePlayerWeapon(playerid,weaponIDs[i],weaponAmmo[i]*playerWeapons[playerid][i]);
}
}
return 1;
}
//==============================================================================
SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_EFC) { SetPlayerColor( playerid, EFC_COLOR); }
else if(gTeam[playerid] == TEAM_GOLFERS) { SetPlayerColor( playerid, GOLFERS_COLOR); }
else if(gTeam[playerid] == TEAM_GUARDS) { SetPlayerColor( playerid, GUARDS_COLOR); }
else if(gTeam[playerid] == TEAM_TRIADS) { SetPlayerColor( playerid, TRIADS_COLOR); }
else if(gTeam[playerid] == TEAM_COPS) { SetPlayerColor( playerid, COPS_COLOR); }
else if(gTeam[playerid] == TEAM_MOBSTERS) { SetPlayerColor( playerid, MOBSTERS_COLOR); }
else if(gTeam[playerid] == TEAM_WORKERS) { SetPlayerColor( playerid, WORKERS_COLOR); }
else if(gTeam[playerid] == TEAM_MECHANICS) { SetPlayerColor( playerid, MECHANICS_COLOR);}
}
//==============================================================================
public TeamFix( )
{
for (new i; i < SLOTS; i++) {
if (gTeam[ i ] == TEAM_EFC){
SetPlayerTeam( i, 999 );
SetPlayerTeam( i, 0 );//original team number here
}
else if (gTeam[ i ] == TEAM_GOLFERS){
SetPlayerTeam( i, 998 );
SetPlayerTeam( i, 1 );//original team number here
}
else if (gTeam[ i ] == TEAM_GUARDS){
SetPlayerTeam( i, 997 );
SetPlayerTeam( i, 2 );//original team number here
}
else if (gTeam[ i ] == TEAM_TRIADS){
SetPlayerTeam( i, 996 );
SetPlayerTeam( i, 3 );//original team number here
}
else if (gTeam[ i ] == TEAM_COPS){
SetPlayerTeam( i, 995 );
SetPlayerTeam( i, 4 );//original team number here
}
else if (gTeam[ i ] == TEAM_MOBSTERS){
SetPlayerTeam( i, 994 );
SetPlayerTeam( i, 5 );//original team number here
}
else if (gTeam[ i ] == TEAM_WORKERS){
SetPlayerTeam( i, 993 );
SetPlayerTeam( i, 6 );//original team number here
}
else if (gTeam[ i ] == TEAM_MECHANICS){
SetPlayerTeam( i, 992 );
SetPlayerTeam( i, 7 );//original team number here
}
}
}
//==============================================================================
FlashZoneForPlayer( playerid )
{
if(Attack[gGangZone[1]] == 1) {
if(GangInWar1[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[1], COLOR_FLASH); }
else {GangZoneFlashForPlayer(playerid, gGangZone[1], COLOR_FLASH2);}
}
else if(Attack[gGangZone[2]] == 1) {
if(GangInWar2[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[2], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[2], COLOR_FLASH2);}
}
else if(Attack[gGangZone[3]] == 1) {
if(GangInWar3[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[3], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[3], COLOR_FLASH2);}
}
else if(Attack[gGangZone[4]] == 1) {
if(GangInWar4[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[4], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[4], COLOR_FLASH2);}
}
else if(Attack[gGangZone[5]] == 1) {
if(GangInWar5[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[5], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[5], COLOR_FLASH2);}
}
else if(Attack[gGangZone[6]] == 1) {
if(GangInWar6[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[6], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[6], COLOR_FLASH2);}
}
else if(Attack[gGangZone[7]] == 1) {
if(GangInWar7[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[7], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[7], COLOR_FLASH2);}
}
else if(Attack[gGangZone[8]] == 1) {
if(GangInWar8[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[8], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[8], COLOR_FLASH2);}
}
else if(Attack[gGangZone[9]] == 1) {
if(GangInWar9[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[9], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[9], COLOR_FLASH2);}
}
else if(Attack[gGangZone[10]] == 1) {
if(GangInWar10[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[10], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[10], COLOR_FLASH2);}
}
if(Attack[gGangZone[11]] == 1) {
if(GangInWar11[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[11], COLOR_FLASH); }
else {GangZoneFlashForPlayer(playerid, gGangZone[11], COLOR_FLASH2);}
}
if(Attack[gGangZone[12]] == 1) {
if(GangInWar12[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[12], COLOR_FLASH); }
else {GangZoneFlashForPlayer(playerid, gGangZone[12], COLOR_FLASH2);}
}
if(Attack[gGangZone[13]] == 1) {
if(GangInWar13[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[13], COLOR_FLASH); }
else {GangZoneFlashForPlayer(playerid, gGangZone[13], COLOR_FLASH2);}
}
if(Attack[gGangZone[14]] == 1) {
if(GangInWar14[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[14], COLOR_FLASH); }
else {GangZoneFlashForPlayer(playerid, gGangZone[14], COLOR_FLASH2);}
}
if(Attack[gGangZone[15]] == 1) {
if(GangInWar15[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[15], COLOR_FLASH); }
else {GangZoneFlashForPlayer(playerid, gGangZone[15], COLOR_FLASH2);}
}
if(Attack[gGangZone[16]] == 1) {
if(GangInWar16[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[16], COLOR_FLASH); }
else {GangZoneFlashForPlayer(playerid, gGangZone[16], COLOR_FLASH2);}
}
if(Attack[gGangZone[17]] == 1) {
if(GangInWar17[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[17], COLOR_FLASH); }
else {GangZoneFlashForPlayer(playerid, gGangZone[17], COLOR_FLASH2);}
}
if(Attack[gGangZone[18]] == 1) {
if(GangInWar18[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[18], COLOR_FLASH); }
else {GangZoneFlashForPlayer(playerid, gGangZone[18], COLOR_FLASH2);}
}
if(Attack[gGangZone[19]] == 1) {
if(GangInWar19[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[19], COLOR_FLASH); }
else {GangZoneFlashForPlayer(playerid, gGangZone[19], COLOR_FLASH2);}
}
else if(Attack[gGangZone[20]] == 1) {
if(GangInWar20[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[20], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[20], COLOR_FLASH2);}
}
else if(Attack[gGangZone[21]] == 1) {
if(GangInWar21[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[21], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[21], COLOR_FLASH2);}
}
else if(Attack[gGangZone[22]] == 1) {
if(GangInWar22[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[22], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[22], COLOR_FLASH2);}
}
else if(Attack[gGangZone[23]] == 1) {
if(GangInWar23[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[23], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[23], COLOR_FLASH2);}
}
else if(Attack[gGangZone[24]] == 1) {
if(GangInWar24[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[24], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[24], COLOR_FLASH2);}
}
else if(Attack[gGangZone[25]] == 1) {
if(GangInWar25[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[25], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[25], COLOR_FLASH2);}
}
else if(Attack[gGangZone[26]] == 1) {
if(GangInWar26[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[26], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[26], COLOR_FLASH2);}
}
else if(Attack[gGangZone[27]] == 1) {
if(GangInWar27[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[27], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[27], COLOR_FLASH2);}
}
else if(Attack[gGangZone[28]] == 1) {
if(GangInWar28[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[28], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[28], COLOR_FLASH2);}
}
else if(Attack[gGangZone[29]] == 1) {
if(GangInWar29[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[29], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[29], COLOR_FLASH2);}
}
else if(Attack[gGangZone[30]] == 1) {
if(GangInWar30[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[30], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[30], COLOR_FLASH2);}
}
else if(Attack[gGangZone[31]] == 1) {
if(GangInWar31[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[31], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[31], COLOR_FLASH2);}
}
else if(Attack[gGangZone[32]] == 1) {
if(GangInWar32[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[32], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[32], COLOR_FLASH2);}
}
else if(Attack[gGangZone[33]] == 1) {
if(GangInWar33[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[33], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[33], COLOR_FLASH2);}
}
else if(Attack[gGangZone[34]] == 1) {
if(GangInWar34[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[34], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[34], COLOR_FLASH2);}
}
else if(Attack[gGangZone[35]] == 1) {
if(GangInWar35[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[35], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[35], COLOR_FLASH2);}
}
else if(Attack[gGangZone[36]] == 1) {
if(GangInWar36[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[36], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[36], COLOR_FLASH2);}
}
else if(Attack[gGangZone[37]] == 1) {
if(GangInWar37[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[37], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[37], COLOR_FLASH2);}
}
else if(Attack[gGangZone[38]] == 1) {
if(GangInWar38[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[38], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[38], COLOR_FLASH2);}
}
else if(Attack[gGangZone[39]] == 1) {
if(GangInWar39[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[39], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[39], COLOR_FLASH2);}
}
else if(Attack[gGangZone[40]] == 1) {
if(GangInWar40[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[40], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[40], COLOR_FLASH2);}
}
else if(Attack[gGangZone[41]] == 1) {
if(GangInWar41[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[41], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[41], COLOR_FLASH2);}
}
else if(Attack[gGangZone[42]] == 1) {
if(GangInWar42[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[42], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[42], COLOR_FLASH2);}
}
else if(Attack[gGangZone[43]] == 1) {
if(GangInWar43[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[43], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[43], COLOR_FLASH2);}
}
else if(Attack[gGangZone[44]] == 1) {
if(GangInWar44[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[44], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[44], COLOR_FLASH2);}
}
else if(Attack[gGangZone[45]] == 1) {
if(GangInWar45[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[45], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[45], COLOR_FLASH2);}
}
else if(Attack[gGangZone[46]] == 1) {
if(GangInWar46[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[46], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[46], COLOR_FLASH2);}
}
else if(Attack[gGangZone[47]] == 1) {
if(GangInWar47[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[47], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[47], COLOR_FLASH2);}
}
else if(Attack[gGangZone[48]] == 1) {
if(GangInWar48[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[48], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[48], COLOR_FLASH2);}
}
else if(Attack[gGangZone[49]] == 1) {
if(GangInWar49[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[49], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[49], COLOR_FLASH2);}
}
else if(Attack[gGangZone[50]] == 1) {
if(GangInWar50[gTeam[playerid]] == 1) {GangZoneFlashForPlayer(playerid, gGangZone[50], COLOR_FLASH);}
else {GangZoneFlashForPlayer(playerid, gGangZone[50], COLOR_FLASH2);}
}
}
//==============================================================================
stock WhoWasKilled(playerid){
new killedname[MAX_PLAYER_NAME];
GetPlayerName(playerid,killedname, sizeof (killedname));
return killedname;
}
//==============================================================================
stock Float:GetDistanceBetweenPlayers(p1,p2){
new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
if(!IsPlayerConnected(p1) || !IsPlayerConnected(p2)){
return -1.00;
}
GetPlayerPos(p1,x1,y1,z1);
GetPlayerPos(p2,x2,y2,z2);
return floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
}
//==============================================================================
public OnPlayerDeath( playerid, killerid, reason )
{
new killedplayer[ MAX_PLAYER_NAME ];
new string[ 256 ];
Spawned[ playerid ] =0;
SetPlayerArmour( playerid, 0 );
if (killerid == INVALID_PLAYER_ID) {
SendDeathMessage( INVALID_PLAYER_ID, playerid, reason );
SetPlayerWantedLevel( playerid, 0 );
}
else
{
SendDeathMessage( killerid, playerid, reason );
if (gTeam[ killerid ] != gTeam[ playerid ]) // Valid kill
{
GetPlayerPos( playerid, X250[ playerid ], Y250[ playerid ], Z250[ playerid ] );
GetPlayerPos( killerid, X250[ killerid ], Y250[ killerid ], Z250[ killerid ] );
SetPlayerScore( killerid, GetPlayerScore( killerid ) +1 );
GivePlayerMoney( killerid, 1000 );
SetPlayerWantedLevel( killerid, GetPlayerWantedLevel( killerid )+1 );
//===================Check to see if player is killed in t1=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1817.30 && X250[playerid] <= 2027.30 && Y250[playerid] >= 863.20 && Y250[playerid] <= 1083.20)&&
(X250[killerid] >= 1817.30 && X250[killerid] <= 2027.30 && Y250[killerid] >= 863.20 && Y250[killerid] <= 1083.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[1]] !=1)
{
Turf1Kills[gTeam[killerid]]++;
if(Turf1Kills[gTeam[killerid]] == 5){ Turf1Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[1]] == 1 && GangInWar1[gTeam[killerid]] == 1){ AttackKills1[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t2=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1817.30 && X250[playerid] <= 2027.30 && Y250[playerid] >= 1083.20 && Y250[playerid] <= 1283.20)&&
(X250[killerid] >= 1817.30 && X250[killerid] <= 2027.30 && Y250[killerid] >= 1083.20 && Y250[killerid] <= 1283.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[2]] !=1)
{
Turf2Kills[gTeam[killerid]]++;
if(Turf2Kills[gTeam[killerid]] == 5){ Turf2Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[2]] == 1 && GangInWar2[gTeam[killerid]] == 1){ AttackKills2[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t3=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1817.30 && X250[playerid] <= 2027.30 && Y250[playerid] >= 1283.20 && Y250[playerid] <= 1469.20)&&
(X250[killerid] >= 1817.30 && X250[killerid] <= 2027.30 && Y250[killerid] >= 1283.20 && Y250[killerid] <= 1469.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[3]] !=1)
{
Turf3Kills[gTeam[killerid]]++;
if(Turf3Kills[gTeam[killerid]] == 5){ Turf3Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[3]] == 1 && GangInWar3[gTeam[killerid]] == 1){ AttackKills3[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t4=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2537.30 && X250[playerid] <= 2902.30 && Y250[playerid] >= 676.50 && Y250[playerid] <= 943.20)&&
(X250[killerid] >= 2537.30 && X250[killerid] <= 2902.30 && Y250[killerid] >= 676.50 && Y250[killerid] <= 943.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[4]] !=1)
{
Turf4Kills[gTeam[killerid]]++;
if(Turf4Kills[gTeam[killerid]] == 5){ Turf4Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[4]] == 1 && GangInWar4[gTeam[killerid]] == 1){ AttackKills4[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t5=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2087.30 && X250[playerid] <= 2623.10 && Y250[playerid] >= 943.20 && Y250[playerid] <= 1203.20)&&
(X250[killerid] >= 2087.30 && X250[killerid] <= 2623.10 && Y250[killerid] >= 943.20 && Y250[killerid] <= 1203.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[5]] !=1)
{
Turf5Kills[gTeam[killerid]]++;
if(Turf5Kills[gTeam[killerid]] == 5){ Turf5Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[5]] == 1 && GangInWar5[gTeam[killerid]] == 1){ AttackKills5[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t6=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2087.30 && X250[playerid] <= 2437.30 && Y250[playerid] >= 1543.20 && Y250[playerid] <= 1703.20)&&
(X250[killerid] >= 2087.30 && X250[killerid] <= 2437.30 && Y250[killerid] >= 1543.20 && Y250[killerid] <= 1703.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[6]] !=1)
{
Turf6Kills[gTeam[killerid]]++;
if(Turf6Kills[gTeam[killerid]] == 5){ Turf6Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[6]] == 1 && GangInWar6[gTeam[killerid]] == 1){ AttackKills6[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t7=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2137.40 && X250[playerid] <= 2437.30 && Y250[playerid] >= 1703.20 && Y250[playerid] <= 1783.20)&&
(X250[killerid] >= 2137.40 && X250[killerid] <= 2437.30 && Y250[killerid] >= 1703.20 && Y250[killerid] <= 1783.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[7]] !=1)
{
Turf7Kills[gTeam[killerid]]++;
if(Turf7Kills[gTeam[killerid]] == 5){ Turf7Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[7]] == 1 && GangInWar7[gTeam[killerid]] == 1){ AttackKills7[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t8=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2087.30 && X250[playerid] <= 2437.30 && Y250[playerid] >= 1383.20 && Y250[playerid] <= 1543.20)&&
(X250[killerid] >= 2087.30 && X250[killerid] <= 2437.30 && Y250[killerid] >= 1383.20 && Y250[killerid] <= 1543.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[8]] !=1)
{
Turf8Kills[gTeam[killerid]]++;
if(Turf8Kills[gTeam[killerid]] == 5){ Turf8Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[8]] == 1 && GangInWar8[gTeam[killerid]] == 1){ AttackKills8[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t9=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2027.40 && X250[playerid] <= 2087.30 && Y250[playerid] >= 863.20 && Y250[playerid] <= 1703.20)&&
(X250[killerid] >= 2027.40 && X250[killerid] <= 2087.30 && Y250[killerid] >= 863.20 && Y250[killerid] <= 1703.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[9]] !=1)
{
Turf9Kills[gTeam[killerid]]++;
if(Turf9Kills[gTeam[killerid]] == 5){ Turf9Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[9]] == 1 && GangInWar9[gTeam[killerid]] == 1){ AttackKills9[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t10=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2377.30 && X250[playerid] <= 2537.30 && Y250[playerid] >= 788.80 && Y250[playerid] <= 897.90)&&
(X250[killerid] >= 2377.30 && X250[killerid] <= 2537.30 && Y250[killerid] >= 788.80 && Y250[killerid] <= 897.90))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[10]] !=1)
{
Turf10Kills[gTeam[killerid]]++;
if(Turf10Kills[gTeam[killerid]] == 5){ Turf10Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[10]] == 1 && GangInWar10[gTeam[killerid]] == 1){ AttackKills10[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t11=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2623.10 && X250[playerid] <= 2749.90 && Y250[playerid] >= 943.20 && Y250[playerid] <= 1055.90)&&
(X250[killerid] >= 2623.10 && X250[killerid] <= 2749.90 && Y250[killerid] >= 943.20 && Y250[killerid] <= 1055.90))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[11]] !=1)
{
Turf11Kills[gTeam[killerid]]++;
if(Turf11Kills[gTeam[killerid]] == 5){ Turf11Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[11]] == 1 && GangInWar11[gTeam[killerid]] == 1){ AttackKills11[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t12=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2377.30 && X250[playerid] <= 2537.30 && Y250[playerid] >= 596.30 && Y250[playerid] <= 788.80)&&
(X250[killerid] >= 2377.30 && X250[killerid] <= 2537.30 && Y250[killerid] >= 596.30 && Y250[killerid] <= 788.80))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[12]] !=1)
{
Turf12Kills[gTeam[killerid]]++;
if(Turf12Kills[gTeam[killerid]] == 5){ Turf12Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[12]] == 1 && GangInWar12[gTeam[killerid]] == 1){ AttackKills12[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t13=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1997.20 && X250[playerid] <= 2377.30 && Y250[playerid] >= 596.30 && Y250[playerid] <= 823.20)&&
(X250[killerid] >= 1997.20 && X250[killerid] <= 2377.30 && Y250[killerid] >= 596.30 && Y250[killerid] <= 823.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[13]] !=1)
{
Turf13Kills[gTeam[killerid]]++;
if(Turf13Kills[gTeam[killerid]] == 5){ Turf13Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[13]] == 1 && GangInWar13[gTeam[killerid]] == 1){ AttackKills13[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t14=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2027.40 && X250[playerid] <= 2137.40 && Y250[playerid] >= 1703.20 && Y250[playerid] <= 1783.20)&&
(X250[killerid] >= 2027.40 && X250[killerid] <= 2137.40 && Y250[killerid] >= 1703.20 && Y250[killerid] <= 1783.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[14]] !=1)
{
Turf14Kills[gTeam[killerid]]++;
if(Turf14Kills[gTeam[killerid]] == 5){ Turf14Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[14]] == 1 && GangInWar14[gTeam[killerid]] == 1){ AttackKills14[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t15=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2437.30 && X250[playerid] <= 2624.40 && Y250[playerid] >= 1383.20 && Y250[playerid] <= 1783.20)&&
(X250[killerid] >= 2437.30 && X250[killerid] <= 2624.40 && Y250[killerid] >= 1383.20 && Y250[killerid] <= 1783.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[15]] !=1)
{
Turf15Kills[gTeam[killerid]]++;
if(Turf15Kills[gTeam[killerid]] == 5){ Turf15Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[15]] == 1 && GangInWar15[gTeam[killerid]] == 1){ AttackKills15[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t16=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1817.30 && X250[playerid] <= 2027.40 && Y250[playerid] >= 1469.20 && Y250[playerid] <= 1703.20)&&
(X250[killerid] >= 1817.30 && X250[killerid] <= 2027.40 && Y250[killerid] >= 1469.20 && Y250[killerid] <= 1703.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[16]] !=1)
{
Turf16Kills[gTeam[killerid]]++;
if(Turf16Kills[gTeam[killerid]] == 5){ Turf16Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[16]] == 1 && GangInWar16[gTeam[killerid]] == 1){ AttackKills16[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t17=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2087.30 && X250[playerid] <= 2640.40 && Y250[playerid] >= 1203.20 && Y250[playerid] <= 1383.20)&&
(X250[killerid] >= 2087.30 && X250[killerid] <= 2640.40 && Y250[killerid] >= 1203.20 && Y250[killerid] <= 1383.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[17]] !=1)
{
Turf17Kills[gTeam[killerid]]++;
if(Turf17Kills[gTeam[killerid]] == 5){ Turf17Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[17]] == 1 && GangInWar17[gTeam[killerid]] == 1){ AttackKills17[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t18=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1236.60 && X250[playerid] <= 1457.30 && Y250[playerid] >= 1203.20 && Y250[playerid] <= 1883.10)&&
(X250[killerid] >= 1236.60 && X250[killerid] <= 1457.30 && Y250[killerid] >= 1203.20 && Y250[killerid] <= 1883.10))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[18]] !=1)
{
Turf18Kills[gTeam[killerid]]++;
if(Turf18Kills[gTeam[killerid]] == 5){ Turf18Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[18]] == 1 && GangInWar18[gTeam[killerid]] == 1){ AttackKills18[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t19=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1457.30 && X250[playerid] <= 1777.30 && Y250[playerid] >= 1203.20 && Y250[playerid] <= 1883.10)&&
(X250[killerid] >= 1457.30 && X250[killerid] <= 1777.30 && Y250[killerid] >= 1203.20 && Y250[killerid] <= 1883.10))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[19]] !=1)
{
Turf19Kills[gTeam[killerid]]++;
if(Turf19Kills[gTeam[killerid]] == 5){ Turf19Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[19]] == 1 && GangInWar19[gTeam[killerid]] == 1){ AttackKills19[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t20=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1457.30 && X250[playerid] <= 1777.40 && Y250[playerid] >= 1143.20 && Y250[playerid] <= 1203.20)&&
(X250[killerid] >= 1457.30 && X250[killerid] <= 1777.40 && Y250[killerid] >= 1143.20 && Y250[killerid] <= 1203.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[20]] !=1)
{
Turf20Kills[gTeam[killerid]]++;
if(Turf20Kills[gTeam[killerid]] == 5){ Turf20Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[20]] == 1 && GangInWar20[gTeam[killerid]] == 1){ AttackKills20[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t21=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1515.80 && X250[playerid] <= 1729.90 && Y250[playerid] >= 1586.40 && Y250[playerid] <= 1714.50)&&
(X250[killerid] >= 1515.80 && X250[killerid] <= 1729.90 && Y250[killerid] >= 1586.40 && Y250[killerid] <= 1714.50))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[21]] !=1)
{
Turf21Kills[gTeam[killerid]]++;
if(Turf21Kills[gTeam[killerid]] == 5){ Turf21Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[21]] == 1 && GangInWar21[gTeam[killerid]] == 1){ AttackKills21[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t22=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1534.50 && X250[playerid] <= 1848.40 && Y250[playerid] >= 2583.20 && Y250[playerid] <= 2863.20)&&
(X250[killerid] >= 1534.50 && X250[killerid] <= 1848.40 && Y250[killerid] >= 2583.20 && Y250[killerid] <= 2863.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[22]] !=1)
{
Turf22Kills[gTeam[killerid]]++;
if(Turf22Kills[gTeam[killerid]] == 5){ Turf22Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[22]] == 1 && GangInWar22[gTeam[killerid]] == 1){ AttackKills22[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t23=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1117.40 && X250[playerid] <= 1534.50 && Y250[playerid] >= 2507.20 && Y250[playerid] <= 2723.20)&&
(X250[killerid] >= 1117.40 && X250[killerid] <= 1534.50 && Y250[killerid] >= 2507.20 && Y250[killerid] <= 2723.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[23]] !=1)
{
Turf23Kills[gTeam[killerid]]++;
if(Turf23Kills[gTeam[killerid]] == 5){ Turf23Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[23]] == 1 && GangInWar23[gTeam[killerid]] == 1){ AttackKills23[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t24=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1848.40 && X250[playerid] <= 1938.80 && Y250[playerid] >= 2553.40 && Y250[playerid] <= 2863.20)&&
(X250[killerid] >= 1848.40 && X250[killerid] <= 1938.80 && Y250[killerid] >= 2553.40 && Y250[killerid] <= 2863.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[24]] !=1)
{
Turf24Kills[gTeam[killerid]]++;
if(Turf24Kills[gTeam[killerid]] == 5){ Turf24Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[24]] == 1 && GangInWar24[gTeam[killerid]] == 1){ AttackKills24[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t25=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1938.80 && X250[playerid] <= 2121.40 && Y250[playerid] >= 2624.20 && Y250[playerid] <= 2861.50)&&
(X250[killerid] >= 1938.80 && X250[killerid] <= 2121.40 && Y250[killerid] >= 2624.20 && Y250[killerid] <= 2861.50))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[25]] !=1)
{
Turf25Kills[gTeam[killerid]]++;
if(Turf25Kills[gTeam[killerid]] == 5){ Turf25Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[25]] == 1 && GangInWar25[gTeam[killerid]] == 1){ AttackKills25[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t26=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1117.40 && X250[playerid] <= 1457.46 && Y250[playerid] >= 2723.23 && Y250[playerid] <= 2863.23)&&
(X250[killerid] >= 1117.40 && X250[killerid] <= 1457.46 && Y250[killerid] >= 2723.23 && Y250[killerid] <= 2863.23))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[26]] !=1)
{
Turf26Kills[gTeam[killerid]]++;
if(Turf26Kills[gTeam[killerid]] == 5){ Turf26Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[26]] == 1 && GangInWar26[gTeam[killerid]] == 1){ AttackKills26[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t27=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1457.46 && X250[playerid] <= 1534.56 && Y250[playerid] >= 2723.23 && Y250[playerid] <= 2863.23)&&
(X250[killerid] >= 1457.46 && X250[killerid] <= 1534.56 && Y250[killerid] >= 2723.23 && Y250[killerid] <= 2863.23))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[27]] !=1)
{
Turf27Kills[gTeam[killerid]]++;
if(Turf27Kills[gTeam[killerid]] == 5){ Turf27Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[27]] == 1 && GangInWar27[gTeam[killerid]] == 1){ AttackKills27[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t28=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1236.60 && X250[playerid] <= 1777.30 && Y250[playerid] >= 1883.10 && Y250[playerid] <= 2142.80)&&
(X250[killerid] >= 1236.60 && X250[killerid] <= 1777.30 && Y250[killerid] >= 1883.10 && Y250[killerid] <= 2142.80))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[28]] !=1)
{
Turf28Kills[gTeam[killerid]]++;
if(Turf28Kills[gTeam[killerid]] == 5){ Turf28Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[28]] == 1 && GangInWar28[gTeam[killerid]] == 1){ AttackKills28[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t29=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1297.40 && X250[playerid] <= 1777.30 && Y250[playerid] >= 2142.80 && Y250[playerid] <= 2243.20)&&
(X250[killerid] >= 1297.40 && X250[killerid] <= 1777.30 && Y250[killerid] >= 2142.80 && Y250[killerid] <= 2243.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[29]] !=1)
{
Turf29Kills[gTeam[killerid]]++;
if(Turf29Kills[gTeam[killerid]] == 5){ Turf29Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[29]] == 1 && GangInWar29[gTeam[killerid]] == 1){ AttackKills29[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t30=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1377.30 && X250[playerid] <= 1704.50 && Y250[playerid] >= 2243.20 && Y250[playerid] <= 2433.20)&&
(X250[killerid] >= 1377.30 && X250[killerid] <= 1704.50 && Y250[killerid] >= 2243.20 && Y250[killerid] <= 2433.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[30]] !=1)
{
Turf30Kills[gTeam[killerid]]++;
if(Turf30Kills[gTeam[killerid]] == 5){ Turf30Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[30]] == 1 && GangInWar30[gTeam[killerid]] == 1){ AttackKills30[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t31=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1704.50 && X250[playerid] <= 1777.30 && Y250[playerid] >= 2243.20 && Y250[playerid] <= 2342.80)&&
(X250[killerid] >= 1704.50 && X250[killerid] <= 1777.30 && Y250[killerid] >= 2243.20 && Y250[killerid] <= 2342.80))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[31]] !=1)
{
Turf31Kills[gTeam[killerid]]++;
if(Turf31Kills[gTeam[killerid]] == 5){ Turf31Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[31]] == 1 && GangInWar31[gTeam[killerid]] == 1){ AttackKills31[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t32=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2237.40 && X250[playerid] <= 2536.40 && Y250[playerid] >= 2202.70 && Y250[playerid] <= 2542.50)&&
(X250[killerid] >= 2237.40 && X250[killerid] <= 2536.40 && Y250[killerid] >= 2202.70 && Y250[killerid] <= 2542.50))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[32]] !=1)
{
Turf32Kills[gTeam[killerid]]++;
if(Turf32Kills[gTeam[killerid]] == 5){ Turf32Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[32]] == 1 && GangInWar32[gTeam[killerid]] == 1){ AttackKills32[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t33=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2536.40 && X250[playerid] <= 2625.10 && Y250[playerid] >= 2202.70 && Y250[playerid] <= 2442.50)&&
(X250[killerid] >= 2536.40 && X250[killerid] <= 2625.10 && Y250[killerid] >= 2202.70 && Y250[killerid] <= 2442.50))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[33]] !=1)
{
Turf33Kills[gTeam[killerid]]++;
if(Turf33Kills[gTeam[killerid]] == 5){ Turf33Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[33]] == 1 && GangInWar33[gTeam[killerid]] == 1){ AttackKills33[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t34=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2011.90 && X250[playerid] <= 2237.40 && Y250[playerid] >= 2202.70 && Y250[playerid] <= 2508.20)&&
(X250[killerid] >= 2011.90 && X250[killerid] <= 2237.40 && Y250[killerid] >= 2202.70 && Y250[killerid] <= 2508.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[34]] !=1)
{
Turf34Kills[gTeam[killerid]]++;
if(Turf34Kills[gTeam[killerid]] == 5){ Turf34Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[34]] == 1 && GangInWar34[gTeam[killerid]] == 1){ AttackKills34[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t35=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2162.30 && X250[playerid] <= 2685.10 && Y250[playerid] >= 2012.10 && Y250[playerid] <= 2202.70)&&
(X250[killerid] >= 2162.30 && X250[killerid] <= 2685.10 && Y250[killerid] >= 2012.10 && Y250[killerid] <= 2202.70))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[35]] !=1)
{
Turf35Kills[gTeam[killerid]]++;
if(Turf35Kills[gTeam[killerid]] == 5){ Turf35Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[35]] == 1 && GangInWar35[gTeam[killerid]] == 1){ AttackKills35[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t36=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2437.30 && X250[playerid] <= 2685.10 && Y250[playerid] >= 1783.20 && Y250[playerid] <= 2012.10)&&
(X250[killerid] >= 2437.30 && X250[killerid] <= 2685.10 && Y250[killerid] >= 1783.20 && Y250[killerid] <= 2012.10))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[36]] !=1)
{
Turf36Kills[gTeam[killerid]]++;
if(Turf36Kills[gTeam[killerid]] == 5){ Turf36Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[36]] == 1 && GangInWar36[gTeam[killerid]] == 1){ AttackKills36[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t37=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2437.30 && X250[playerid] <= 2495.00 && Y250[playerid] >= 1858.10 && Y250[playerid] <= 1970.80)&&
(X250[killerid] >= 2437.30 && X250[killerid] <= 2495.00 && Y250[killerid] >= 1858.10 && Y250[killerid] <= 1970.80))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[37]] !=1)
{
Turf37Kills[gTeam[killerid]]++;
if(Turf37Kills[gTeam[killerid]] == 5){ Turf37Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[37]] == 1 && GangInWar37[gTeam[killerid]] == 1){ AttackKills37[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t38=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2162.30 && X250[playerid] <= 2437.30 && Y250[playerid] >= 1883.20 && Y250[playerid] <= 2012.10)&&
(X250[killerid] >= 2162.30 && X250[killerid] <= 2437.30 && Y250[killerid] >= 1883.20 && Y250[killerid] <= 2012.10))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[38]] !=1)
{
Turf38Kills[gTeam[killerid]]++;
if(Turf38Kills[gTeam[killerid]] == 5){ Turf38Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[38]] == 1 && GangInWar38[gTeam[killerid]] == 1){ AttackKills38[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t39=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2162.30 && X250[playerid] <= 2437.30 && Y250[playerid] >= 1783.20 && Y250[playerid] <= 1883.20)&&
(X250[killerid] >= 2162.30 && X250[killerid] <= 2437.30 && Y250[killerid] >= 1783.20 && Y250[killerid] <= 1883.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[39]] !=1)
{
Turf39Kills[gTeam[killerid]]++;
if(Turf39Kills[gTeam[killerid]] == 5){ Turf39Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[39]] == 1 && GangInWar39[gTeam[killerid]] == 1){ AttackKills39[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t40=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1817.30 && X250[playerid] <= 2106.70 && Y250[playerid] >= 2011.80 && Y250[playerid] <= 2202.70)&&
(X250[killerid] >= 1817.30 && X250[killerid] <= 2106.70 && Y250[killerid] >= 2011.80 && Y250[killerid] <= 2202.70))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[40]] !=1)
{
Turf40Kills[gTeam[killerid]]++;
if(Turf40Kills[gTeam[killerid]] == 5){ Turf40Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[40]] == 1 && GangInWar40[gTeam[killerid]] == 1){ AttackKills40[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t41=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1817.30 && X250[playerid] <= 2011.90 && Y250[playerid] >= 2202.70 && Y250[playerid] <= 2342.80)&&
(X250[killerid] >= 1817.30 && X250[killerid] <= 2011.90 && Y250[killerid] >= 2202.70 && Y250[killerid] <= 2342.80))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[41]] !=1)
{
Turf41Kills[gTeam[killerid]]++;
if(Turf41Kills[gTeam[killerid]] == 5){ Turf41Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[41]] == 1 && GangInWar41[gTeam[killerid]] == 1){ AttackKills41[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t42=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1848.40 && X250[playerid] <= 2011.90 && Y250[playerid] >= 2342.80 && Y250[playerid] <= 2478.40)&&
(X250[killerid] >= 1848.40 && X250[killerid] <= 2011.90 && Y250[killerid] >= 2342.80 && Y250[killerid] <= 2478.40))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[42]] !=1)
{
Turf42Kills[gTeam[killerid]]++;
if(Turf42Kills[gTeam[killerid]] == 5){ Turf42Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[42]] == 1 && GangInWar42[gTeam[killerid]] == 1){ AttackKills42[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t43=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1457.30 && X250[playerid] <= 1777.40 && Y250[playerid] >= 863.20 && Y250[playerid] <= 1143.20)&&
(X250[killerid] >= 1457.30 && X250[killerid] <= 1777.40 && Y250[killerid] >= 863.20 && Y250[killerid] <= 1143.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[43]] !=1)
{
Turf43Kills[gTeam[killerid]]++;
if(Turf43Kills[gTeam[killerid]] == 5){ Turf43Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[43]] == 1 && GangInWar43[gTeam[killerid]] == 1){ AttackKills43[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t44=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1817.30 && X250[playerid] <= 2106.70 && Y250[playerid] >= 1863.20 && Y250[playerid] <= 2011.80)&&
(X250[killerid] >= 1817.30 && X250[killerid] <= 2106.70 && Y250[killerid] >= 1863.20 && Y250[killerid] <= 2011.80))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[44]] !=1)
{
Turf44Kills[gTeam[killerid]]++;
if(Turf44Kills[gTeam[killerid]] == 5){ Turf44Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[44]] == 1 && GangInWar44[gTeam[killerid]] == 1){ AttackKills44[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t45=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1817.30 && X250[playerid] <= 2027.40 && Y250[playerid] >= 1703.20 && Y250[playerid] <= 1863.20)&&
(X250[killerid] >= 1817.30 && X250[killerid] <= 2027.40 && Y250[killerid] >= 1703.20 && Y250[killerid] <= 1863.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[45]] !=1)
{
Turf45Kills[gTeam[killerid]]++;
if(Turf45Kills[gTeam[killerid]] == 5){ Turf45Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[45]] == 1 && GangInWar45[gTeam[killerid]] == 1){ AttackKills45[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t46=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2106.70 && X250[playerid] <= 2162.30 && Y250[playerid] >= 1863.20 && Y250[playerid] <= 2202.70)&&
(X250[killerid] >= 2106.70 && X250[killerid] <= 2162.30 && Y250[killerid] >= 1863.20 && Y250[killerid] <= 2202.70))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[46]] !=1)
{
Turf46Kills[gTeam[killerid]]++;
if(Turf46Kills[gTeam[killerid]] == 5){ Turf46Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[46]] == 1 && GangInWar46[gTeam[killerid]] == 1){ AttackKills46[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t47=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2027.40 && X250[playerid] <= 2162.30 && Y250[playerid] >= 1783.20 && Y250[playerid] <= 1863.20)&&
(X250[killerid] >= 2027.40 && X250[killerid] <= 2162.30 && Y250[killerid] >= 1783.20 && Y250[killerid] <= 1863.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[47]] !=1)
{
Turf47Kills[gTeam[killerid]]++;
if(Turf47Kills[gTeam[killerid]] == 5){ Turf47Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[47]] == 1 && GangInWar47[gTeam[killerid]] == 1){ AttackKills47[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t48=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2625.10 && X250[playerid] <= 2685.10 && Y250[playerid] >= 2202.70 && Y250[playerid] <= 2442.50)&&
(X250[killerid] >= 2625.10 && X250[killerid] <= 2685.10 && Y250[killerid] >= 2202.70 && Y250[killerid] <= 2442.50))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[48]] !=1)
{
Turf48Kills[gTeam[killerid]]++;
if(Turf48Kills[gTeam[killerid]] == 5){ Turf48Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[48]] == 1 && GangInWar48[gTeam[killerid]] == 1){ AttackKills48[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t49=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 2121.40 && X250[playerid] <= 2498.20 && Y250[playerid] >= 2663.10 && Y250[playerid] <= 2861.50)&&
(X250[killerid] >= 2121.40 && X250[killerid] <= 2498.20 && Y250[killerid] >= 2663.10 && Y250[killerid] <= 2861.50))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[49]] !=1)
{
Turf49Kills[gTeam[killerid]]++;
if(Turf49Kills[gTeam[killerid]] == 5){ Turf49Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[49]] == 1 && GangInWar49[gTeam[killerid]] == 1){ AttackKills49[gTeam[killerid]]++; return 1;
}
}
//===================Check to see if player is killed in t50=====================
// min_X,max_X,min_Y,max_Y
if((X250[playerid] >= 1823.00 && X250[playerid] <= 1997.20 && Y250[playerid] >= 596.30 && Y250[playerid] <= 823.20)&&
(X250[killerid] >= 1823.00 && X250[killerid] <= 1997.20 && Y250[killerid] >= 596.30 && Y250[killerid] <= 823.20))
{
if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[50]] !=1)
{
Turf50Kills[gTeam[killerid]]++;
if(Turf50Kills[gTeam[killerid]] == 5){ Turf50Attack(killerid); return 1; }
}
else if(!IsPlayerInAnyVehicle(killerid) && Attack[gGangZone[50]] == 1 && GangInWar50[gTeam[killerid]] == 1){ AttackKills50[gTeam[killerid]]++; return 1;
}
}
//=================================End of Turfs=================================
if (bounty[ playerid ] > 0) {
GetPlayerName( playerid, killedplayer, sizeof( killedplayer ) );
format(string, sizeof(string), "* Bounty reward: %d for killing %s.", bounty[playerid], killedplayer);
SendClientMessage( killerid, COLOR_YELLOW, string );
GivePlayerMoney( killerid, bounty[ playerid ] );
bounty[ playerid ] = 0;
}
if (GetPlayerWantedLevel( playerid ) > 0) {
switch( GetPlayerWantedLevel( playerid ) ) {
case 1: {
SendClientMessage( killerid, COLOR_YELLOW, "* Bonus for killing a player with a wanted level: $1000 + 1 point." );
GivePlayerMoney( killerid, 1000 );
SetPlayerScore( killerid, GetPlayerScore( killerid ) +1 );
SetPlayerWantedLevel( playerid, 0 );
}
case 2: {
SendClientMessage( killerid, COLOR_YELLOW, "* Bonus for killing a player with a wanted level: $2000 + 2 points." );
GivePlayerMoney( killerid, 2000);
SetPlayerScore( killerid, GetPlayerScore( killerid ) +2 );
SetPlayerWantedLevel( playerid, 0 );
}
case 3: {
SendClientMessage( killerid, COLOR_YELLOW, "* Bonus for killing a player with a wanted level: $3000 + 3 points." );
GivePlayerMoney( killerid, 3000 );
SetPlayerScore( killerid, GetPlayerScore( killerid ) +3 );
SetPlayerWantedLevel( playerid, 0 );
}
case 4: {
SendClientMessage( killerid, COLOR_YELLOW, "* Bonus for killing a player with a wanted level: $4000 + 4 points." );
GivePlayerMoney( killerid, 4000 );
SetPlayerScore( killerid, GetPlayerScore( killerid ) +4 );
SetPlayerWantedLevel( playerid, 0 );
}
case 5: {
SendClientMessage( killerid, COLOR_YELLOW, "* Bonus for killing a player with a wanted level: $5000 + 5 points." );
GivePlayerMoney( killerid, 5000 );
SetPlayerScore( killerid, GetPlayerScore( killerid ) +5 );
SetPlayerWantedLevel( playerid, 0 );
}
case 6: {
SendClientMessage( killerid, COLOR_YELLOW, "* Bonus for killing a player with a wanted level: $6000 + 6 points." );
GivePlayerMoney( killerid, 6000 );
SetPlayerScore( killerid, GetPlayerScore( killerid ) +6 );
SetPlayerWantedLevel( playerid, 0 );
}
case 7..200: {
SendClientMessage( killerid, COLOR_YELLOW, "* Bonus for killing a player with a wanted level: $6000 + 6 points." );
GivePlayerMoney( killerid, 6000 );
SetPlayerScore( killerid, GetPlayerScore( killerid ) +6 );
SetPlayerWantedLevel( playerid, 0 );
}
}
}
if (IsPlayerInAnyVehicle( killerid ) && GetPlayerState( killerid ) == 2 && !IsPlayerInAnyVehicle( playerid ))
{
new Vid = GetPlayerVehicleID( killerid );
if ((reason == WEAPON_TEC9 || reason == WEAPON_UZI || reason == WEAPON_MP5))
{
if (GetDistanceBetweenPlayers(playerid, killerid) <100) {
gDriveBy[ killerid ]++;
if (gDriveBy[ killerid ] == 1) {
SendClientMessage( killerid, COLOR_RED, "Don't drive-by players! It's supposed to destroy cars only!" );
GivePlayerMoney( killerid, -5000 );
SetPlayerScore( killerid, GetPlayerScore( killerid ) -5 );
SetPlayerHealth( killerid, 0 );
gDriveBy[ killerid ] =0;
PIDB[ playerid ] =1;
}
format(string, sizeof (string), "*** %s has been punished for drive-bying.", WhoWasKilled( killerid ) );
SendClientMessageToAll( COLOR_RED, string );
}
}
else if(Vid <= 10) {
gHeliKill[ killerid ]++;
if (gHeliKill[ killerid ] == 1) {
SendClientMessage( killerid, COLOR_RED, "Don't heli-kill players! A heli is supposed to transport people!" );
GivePlayerMoney( killerid, -5000 );
SetPlayerScore( killerid, GetPlayerScore( killerid ) -5 );
SetPlayerHealth( killerid, 0 );
gHeliKill[ killerid ] =0;
PIHK[ playerid ] =1;
}
format(string, sizeof (string), "*** %s has been punished for heli-killing.", WhoWasKilled(killerid));
SendClientMessageToAll( COLOR_RED, string);
}
}
}
else //Team Killer!
{
new warning[ 256 ];
format( warning, sizeof( warning ), "* Be careful! No teamkilling." );
SendClientMessage( killerid, COLOR_RED, warning );
TeamKills[ killerid ]++;
if (TeamKills[ killerid ] == 3)
{
SetPlayerInterior( killerid, 6 );
SetPlayerPos( killerid, 264.6296, 77.1372, 1001.0390);
ResetPlayerWeapons( killerid );
GivePlayerMoney( killerid, -2500 );
SetPlayerScore( killerid, GetPlayerScore( killerid ) -5 );
SendClientMessage( killerid, COLOR_RED, "*** You've been jailed for teamkilling!" );
TeamKills[ killerid ] = 0;
}
}
}
return 1;
}
//==============================================================================
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!IsPlayerConnected(playerid)) return 0; // Check for undisconnected bug.
new
i,
c;
while ((c = cmdtext[i++])) if (c < 0x20 || c > 0x7E) return 0; // Check for illegal characters.
dcmd(help, 4, cmdtext);
dcmd(turfhelp, 8, cmdtext);
dcmd(cmds, 4, cmdtext);
dcmd(rules, 5, cmdtext);
dcmd(credits, 7, cmdtext);
dcmd(report, 6, cmdtext);
dcmd(me, 2, cmdtext);
dcmd(hitman, 6, cmdtext);
dcmd(bounties, 8, cmdtext);
dcmd(buyweapon, 9, cmdtext);
dcmd(list, 4, cmdtext);
dcmd(list2, 5, cmdtext);
dcmd(seepm, 5, cmdtext);
dcmd(hidepm, 6, cmdtext);
dcmd(seetpm, 6, cmdtext);
dcmd(hidetpm, 7, cmdtext);
dcmd(on, 2, cmdtext);
dcmd(off, 3, cmdtext);
dcmd(a, 1, cmdtext);
return 0;
}
//==============================================================================
dcmd_help(playerid, cmdtext[]) {
#pragma unused cmdtext
SendClientMessage(playerid, COLOR_RED,"LV Turf Wars help");
SendClientMessage(playerid, COLOR_YELLOW,"This is a Team Death Match gamemode where you can kill players to receive money and points.");
SendClientMessage(playerid, COLOR_YELLOW,"When you have 100 points or more you will spawn with free armor.");
SendClientMessage(playerid, COLOR_YELLOW,"You can take over turf with your team. Type /turfhelp for info");
SendClientMessage(playerid, COLOR_YELLOW,"You can purchase weapons in the ammunation that you will have every time you spawn.");
SendClientMessage(playerid, COLOR_YELLOW,"See a rulebreaker? Use /report <id> <reason>.");
SendClientMessage(playerid, COLOR_YELLOW,"Type /tpm <message> to talk in Team-Chat.");
SendClientMessage(playerid, COLOR_YELLOW,"You can see the server rules under /rules.");
SendClientMessage(playerid, COLOR_ORANGE,"Type /cmds for a full list of commands.");
return 1;
}
dcmd_turfhelp(playerid, cmdtext[]) {
#pragma unused cmdtext
SendClientMessage(playerid, COLOR_RED,"LV Turf Wars turf help");
SendClientMessage(playerid, COLOR_YELLOW,"Your team must kill 5 players in a specific area to provoke a gangwar.");
SendClientMessage(playerid, COLOR_YELLOW,"The turf you´ve attacked, will flash with a red color on your radar.");
SendClientMessage(playerid, COLOR_YELLOW,"After 3 minutes the team with the most kills in that area wins the gangwar.");
SendClientMessage(playerid, COLOR_YELLOW,"If you see a turf flashing with a white color, it means that the turf");
SendClientMessage(playerid, COLOR_YELLOW,"is under attack, but not by your team.");
SendClientMessage(playerid, COLOR_GREEN,"The winners will receive $1000 + 1 point.");
return 1;
}
dcmd_cmds(playerid, cmdtext[]) {
#pragma unused cmdtext
SendClientMessage(playerid, COLOR_RED,"LV Turf Wars commands");
SendClientMessage(playerid, COLOR_YELLOW,"/help | /turfhelp | /cmds | /credits");
SendClientMessage(playerid, COLOR_YELLOW,"/pm <playerid> <message> | /tpm <message>");
SendClientMessage(playerid, COLOR_YELLOW,"/buyweapon <weaponid> <amount> | /list | /list2");
SendClientMessage(playerid, COLOR_YELLOW,"/givecash <playerid> <amount> | /bounties");
SendClientMessage(playerid, COLOR_YELLOW,"/hitman <playerid> <amount>");
SendClientMessage(playerid, COLOR_YELLOW,"/report <playerid> <reason> | /me <message>");
return 1;
}
dcmd_rules(playerid, cmdtext[]) {
#pragma unused cmdtext
SendClientMessage(playerid, COLOR_RED,"LV Turf Wars rules");
SendClientMessage(playerid, COLOR_YELLOW,"There are several rules which you need to follow to avoid a kick or a ban.");
SendClientMessage(playerid, COLOR_YELLOW,"1. No cheating/hacking or spamming/flaming.");
SendClientMessage(playerid, COLOR_YELLOW,"2. No bug abuse. (including 2shot)");
SendClientMessage(playerid, COLOR_YELLOW,"3. Obey the admins and show them some respect.");
SendClientMessage(playerid, COLOR_YELLOW,"4. Don't annoy the admins.");
SendClientMessage(playerid, COLOR_YELLOW,"5. Don't abuse /spam, /me and /report commands.");
SendClientMessage(playerid, COLOR_YELLOW,"6. Don't camp exit doors continuously.");
SendClientMessage(playerid, COLOR_YELLOW,"7. Don't fight in ammunation and food places.");
SendClientMessage(playerid, COLOR_YELLOW,"8. No racism.");
return 1;
}
dcmd_credits(playerid, cmdtext[]) {
#pragma unused cmdtext
SendClientMessage(playerid, COLOR_RED,"LV Turf Wars credits");
SendClientMessage(playerid, COLOR_YELLOW,"To: [W]Hustler, CP:Simon, Mike,");
SendClientMessage(playerid, COLOR_YELLOW,"Jax, Sintax and [NB]90NINE.");
SendClientMessage(playerid, COLOR_YELLOW,"And all the people i forgot.");
return 1;
}
dcmd_report(playerid, text[]) {
if(strlen(text) > 0) {
new string[256], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string, sizeof(string), "Report from %s(%d): %s", playername, playerid, text[0]);
SendAdminMessage(COLOR_RED, string);
format(string, sizeof(string), "Report sent to currently online admins.");
SendClientMessage(playerid, COLOR_ORANGE, string);
}
else {
new string[256];
format(string, sizeof(string), "Usage: /report [id] [reason]");
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}
dcmd_me(const playerid, message[])
{
if (!strlen(message)) {
SendClientMessage( playerid, COLOR_RED, "USAGE : /me [message]" );
}
else {
new pname[ MAX_PLAYER_NAME ], string[ 256 ];
GetPlayerName( playerid, pname, sizeof( pname ));
format( string, 256, "%s %s", pname, message );
SendClientMessageToAll( COLOR_ME, string );
}
return 1;
}
dcmd_hitman(playerid, cmdtext[])
{
#pragma unused cmdtext
new string[256];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new giveplayerid, moneys, idx;
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hitman [playerid] [amount]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /hitman [playerid] [amount]");
return 1;
}
moneys = strval(tmp);
if(moneys > AC_GetPlayerMoney(playerid)) {
SendClientMessage(playerid, COLOR_RED, "You don't have enough money!");
return 1;
}
if(moneys < 100) {
SendClientMessage(playerid, COLOR_RED, "A bounty must be $100 at least!");
return 1;
}
if(bounty[giveplayerid] == 100000) {
SendClientMessage(playerid, COLOR_RED, "A bounty can't be more than $100000!");
return 1;
}
if(IsPlayerConnected(giveplayerid)==0) {
SendClientMessage(playerid, COLOR_RED, "No such player exists.");
return 1;
}
bounty[giveplayerid]+=moneys;
GivePlayerMoney(playerid, 0-moneys);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s has had a $%d bounty put on his head from %s (total: $%d).", giveplayer, moneys, sendername, bounty[giveplayerid]);
SendClientMessageToAll(COLOR_ORANGE, string);
format(string, sizeof(string), "You have had a $%d bounty put on you from %s (id: %d).", moneys, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_RED, string);
return 1;
}
dcmd_bounties(playerid, cmdtext[])
{
#pragma unused cmdtext
new string[256];
new giveplayer[MAX_PLAYER_NAME];
// new tmp[256];
new x;
SendClientMessage(playerid, COLOR_GREEN, "Current Bounties:");
for(new i=0; i < SLOTS; i++) {
if(IsPlayerConnected(i) && bounty[i] > 0) {
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "%s%s(%d): $%d", string,giveplayer,i,bounty[i]);
x++;
if(x > 3) {
SendClientMessage(playerid, COLOR_YELLOW, string);
x = 0;
format(string, sizeof(string), "");
} else {
format(string, sizeof(string), "%s, ", string);
}
}
}
if(x <= 3 && x > 0) {
string[strlen(string)-2] = '.';
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}
dcmd_buyweapon(playerid, cmdtext[]) {
#pragma unused cmdtext
new string[256];
new idx, weaponid;
new tmp[256], tmp2[256];
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
if(!strlen(tmp) || !strlen(tmp2)) {
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /buyweapon [weapon_number] [amount]");
return 1;
}
weaponid = strval(tmp);
new ammos = strval(tmp2);
if(IsPlayerInCheckpoint(playerid)==0 || playerCheckpoint[playerid]!=CP_AMMU) {
SendClientMessage(playerid, COLOR_YELLOW, "You need to be in an Ammunation to buy weapons.");
return 1;
}
if(AC_GetPlayerMoney(playerid) < weaponCost[weaponid]*ammos) {
SendClientMessage(playerid, COLOR_RED, "You don't have enough money!");
return 1;
}
if(weaponid < 0 || weaponid > MAX_WEAPONS-1){
SendClientMessage(playerid, COLOR_RED, "Invalid weapon number.");
return 1;
}
if(ammos < 1) {
SendClientMessage(playerid, COLOR_RED, "Invalid weapon amount.");
return 1;
}
format (string, sizeof(string), "You bought %d %s's for when you spawn.",ammos,weaponNames[weaponid]);
SendClientMessage(playerid, COLOR_GREEN, string);
GivePlayerWeapon(playerid, weaponIDs[weaponid], weaponAmmo[weaponid]*ammos);
playerWeapons[playerid][weaponid] += ammos;
GivePlayerMoney(playerid, 0-(weaponCost[weaponid]*ammos));
return 1;
}
dcmd_list(playerid, cmdtext[]) {
#pragma unused cmdtext
new string[256];
new weaponstemp = MAX_WEAPONS;
if(IsPlayerInCheckpoint(playerid)==0 || playerCheckpoint[playerid]!=CP_AMMU) {
SendClientMessage(playerid, COLOR_YELLOW, "You need to be in an ammunation checkpoint.");
return 1;
}
if(weaponstemp>8) {
weaponstemp = 8;
}
SendClientMessage(playerid, COLOR_GREEN, "Weapon List 1/2:");
for(new i = 0; i < weaponstemp; i++) {
format (string, sizeof(string), "%d. %s - $%d",i,weaponNames[i],weaponCost[i]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}
dcmd_list2(playerid, cmdtext[]) {
#pragma unused cmdtext
new string[256];
if(IsPlayerInCheckpoint(playerid)==0 || playerCheckpoint[playerid]!=CP_AMMU) {
SendClientMessage(playerid, COLOR_YELLOW, "You need to be in an ammunation checkpoint.");
return 1;
}
SendClientMessage(playerid, COLOR_GREEN, "Weapon List 2/2:");
for(new i = 8; i < MAX_WEAPONS; i++) {
format (string, sizeof(string), "%d. %s - $%d",i,weaponNames[i],weaponCost[i]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}
dcmd_seepm(playerid, cmdtext[]) {
#pragma unused cmdtext
if(IsPlayerAdmin(playerid)) {
ShowPM[playerid]= 1;
SendClientMessage(playerid, COLOR_GREEN, "You can see PM's now.");
}
return 1;
}
dcmd_hidepm(playerid, cmdtext[]) {
#pragma unused cmdtext
if(IsPlayerAdmin(playerid)) {
ShowPM[playerid]= 0;
SendClientMessage(playerid, COLOR_RED, "You can't see PM's anymore.");
}
return 1;
}
dcmd_seetpm(playerid, cmdtext[]) {
#pragma unused cmdtext
if(IsPlayerAdmin(playerid)) {
ShowTPM[playerid]= 1;
SendClientMessage(playerid, COLOR_GREEN, "You can see TPM's now.");
}
return 1;
}
dcmd_hidetpm(playerid, cmdtext[]) {
#pragma unused cmdtext
if(IsPlayerAdmin(playerid)) {
ShowTPM[playerid]= 0;
SendClientMessage(playerid, COLOR_RED, "You can't see TPM's anymore.");
}
return 1;
}
dcmd_on(playerid, cmdtext[]) {
#pragma unused cmdtext
if(IsPlayerAdmin(playerid)) {
SetPlayerColor(playerid, COLOR_WHITE);
PlayerOnDuty[playerid]=1;
}
return 1;
}
dcmd_off(playerid, cmdtext[]) {
#pragma unused cmdtext
if(IsPlayerAdmin(playerid)) {
SetPlayerToTeamColor(playerid);
PlayerOnDuty[playerid]=0;
}
return 1;
}
dcmd_a(playerid, cmdtext[]) {
#pragma unused cmdtext
new sendername[MAX_PLAYER_NAME];
new string[256], idx;
if (IsPlayerAdmin(playerid)) {
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /a <message>");
return 1;
}
format(string, sizeof(string), "[AdminChat]%s: %s", sendername, result);
SendAdminMessage( COLOR_ACHAT, string );
return 1;
}
return 1;
}
//==============================================================================
public OnPlayerEnterCheckpoint(playerid)
{
switch(getCheckpointType(playerid))
{
case CP_AMMU: {
SendClientMessage(playerid, COLOR_GREEN, "You can purchase weapons here so that you have them every");
SendClientMessage(playerid, COLOR_GREEN, "time you spawn. You can purchase more than once for more ammo.");
SendClientMessage(playerid, COLOR_YELLOW, "Type /buyweapon <weapon number> <weapon_amount> and /list or /list2 for a list of weapons.");
}
}
}
//===================================================================================================//
//===================================================================================================//
//====== TAKEOVER BY KILLING IN AREA ======//
//===================================================================================================//
//===================================================================================================//
stock Turf1Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t1]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf1Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t1]) {
GangInWar1[turfOwner[T_t1]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t1]);
new Text:txt1 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt1, 0);
TextDrawSetShadow(txt1,0);
TextDrawSetOutline(txt1,1);
TextDrawColor(txt1,COLOR_RED);
TimeTextForPlayer(a,txt1,6000);
GangZoneFlashForPlayer(a, gGangZone[1], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar1[TEAM_EFC] =1; Attackers1= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar1[TEAM_GOLFERS] =1; Attackers1= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar1[TEAM_GUARDS] =1; Attackers1= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar1[TEAM_TRIADS] =1; Attackers1= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar1[TEAM_COPS] =1; Attackers1= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar1[TEAM_MOBSTERS] =1; Attackers1= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar1[TEAM_WORKERS] =1; Attackers1= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar1[TEAM_MECHANICS] =1; Attackers1= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t1],teamName[turfOwner[T_t1]]);
new Text:txt2 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt2, 0);
TextDrawSetShadow(txt2,0);
TextDrawSetOutline(txt2,1);
TextDrawColor(txt2,0xDFDFDFFF);
TimeTextForPlayer(a,txt2,6000);
GangZoneFlashForPlayer(a, gGangZone[1], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[1], COLOR_FLASH2); }
}
SetTimer("Turf1TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[1]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills1[b] =0; Turf1Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf2Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t2]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf2Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t2]) {
GangInWar2[turfOwner[T_t2]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t2]);
new Text:txt3 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt3, 0);
TextDrawSetShadow(txt3,0);
TextDrawSetOutline(txt3,1);
TextDrawColor(txt3,COLOR_RED);
TimeTextForPlayer(a,txt3,6000);
GangZoneFlashForPlayer(a, gGangZone[2], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar2[TEAM_EFC] =1; Attackers2= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar2[TEAM_GOLFERS] =1; Attackers2= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar2[TEAM_GUARDS] =1; Attackers2= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar2[TEAM_TRIADS] =1; Attackers2= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar2[TEAM_COPS] =1; Attackers2= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar2[TEAM_MOBSTERS] =1; Attackers2= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar2[TEAM_WORKERS] =1; Attackers2= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar2[TEAM_MECHANICS] =1; Attackers2= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t2],teamName[turfOwner[T_t2]]);
new Text:txt4 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt4, 0);
TextDrawSetShadow(txt4,0);
TextDrawSetOutline(txt4,1);
TextDrawColor(txt4,0xDFDFDFFF);
TimeTextForPlayer(a,txt4,6000);
GangZoneFlashForPlayer(a, gGangZone[2], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[2], COLOR_FLASH2); }
}
SetTimer("Turf2TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[2]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills2[b] =0; Turf2Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf3Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t3]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf3Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t3]) {
GangInWar3[turfOwner[T_t3]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t3]);
new Text:txt5 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt5, 0);
TextDrawSetShadow(txt5,0);
TextDrawSetOutline(txt5,1);
TextDrawColor(txt5,COLOR_RED);
TimeTextForPlayer(a,txt5,6000);
GangZoneFlashForPlayer(a, gGangZone[3], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar3[TEAM_EFC] =1; Attackers3= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar3[TEAM_GOLFERS] =1; Attackers3= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar3[TEAM_GUARDS] =1; Attackers3= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar3[TEAM_TRIADS] =1; Attackers3= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar3[TEAM_COPS] =1; Attackers3= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar3[TEAM_MOBSTERS] =1; Attackers3= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar3[TEAM_WORKERS] =1; Attackers3= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar3[TEAM_MECHANICS] =1; Attackers3= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t3],teamName[turfOwner[T_t3]]);
new Text:txt6 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt6, 0);
TextDrawSetShadow(txt6,0);
TextDrawSetOutline(txt6,1);
TextDrawColor(txt6,0xDFDFDFFF);
TimeTextForPlayer(a,txt6,6000);
GangZoneFlashForPlayer(a, gGangZone[3], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[3], COLOR_FLASH2); }
}
SetTimer("Turf3TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[3]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills3[b] =0; Turf3Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf4Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t4]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf4Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t4]) {
GangInWar4[turfOwner[T_t4]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t4]);
new Text:txt7 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt7, 0);
TextDrawSetShadow(txt7,0);
TextDrawSetOutline(txt7,1);
TextDrawColor(txt7,COLOR_RED);
TimeTextForPlayer(a,txt7,6000);
GangZoneFlashForPlayer(a, gGangZone[4], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar4[TEAM_EFC] =1; Attackers4= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar4[TEAM_GOLFERS] =1; Attackers4= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar4[TEAM_GUARDS] =1; Attackers4= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar4[TEAM_TRIADS] =1; Attackers4= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar4[TEAM_COPS] =1; Attackers4= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar4[TEAM_MOBSTERS] =1; Attackers4= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar4[TEAM_WORKERS] =1; Attackers4= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar4[TEAM_MECHANICS] =1; Attackers4= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t4],teamName[turfOwner[T_t4]]);
new Text:txt8 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt8, 0);
TextDrawSetShadow(txt8,0);
TextDrawSetOutline(txt8,1);
TextDrawColor(txt8,0xDFDFDFFF);
TimeTextForPlayer(a,txt8,6000);
GangZoneFlashForPlayer(a, gGangZone[4], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[4], COLOR_FLASH2); }
}
SetTimer("Turf4TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[4]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills4[b] =0; Turf4Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf5Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t5]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf5Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t5]) {
GangInWar5[turfOwner[T_t5]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t5]);
new Text:txt9 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt9, 0);
TextDrawSetShadow(txt9,0);
TextDrawSetOutline(txt9,1);
TextDrawColor(txt9,COLOR_RED);
TimeTextForPlayer(a,txt9,6000);
GangZoneFlashForPlayer(a, gGangZone[5], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar5[TEAM_EFC] =1; Attackers5= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar5[TEAM_GOLFERS] =1; Attackers5= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar5[TEAM_GUARDS] =1; Attackers5= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar5[TEAM_TRIADS] =1; Attackers5= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar5[TEAM_COPS] =1; Attackers5= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar5[TEAM_MOBSTERS] =1; Attackers5= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar5[TEAM_WORKERS] =1; Attackers5= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar5[TEAM_MECHANICS] =1; Attackers5= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t5],teamName[turfOwner[T_t5]]);
new Text:txt10 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt10, 0);
TextDrawSetShadow(txt10,0);
TextDrawSetOutline(txt10,1);
TextDrawColor(txt10,0xDFDFDFFF);
TimeTextForPlayer(a,txt10,6000);
GangZoneFlashForPlayer(a, gGangZone[5], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[5], COLOR_FLASH2); }
}
SetTimer("Turf5TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[5]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills5[b] =0; Turf5Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf6Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t6]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf6Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t6]) {
GangInWar6[turfOwner[T_t6]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t6]);
new Text:txt11 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt11, 0);
TextDrawSetShadow(txt11,0);
TextDrawSetOutline(txt11,1);
TextDrawColor(txt11,COLOR_RED);
TimeTextForPlayer(a,txt11,6000);
GangZoneFlashForPlayer(a, gGangZone[6], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar6[TEAM_EFC] =1; Attackers6= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar6[TEAM_GOLFERS] =1; Attackers6= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar6[TEAM_GUARDS] =1; Attackers6= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar6[TEAM_TRIADS] =1; Attackers6= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar6[TEAM_COPS] =1; Attackers6= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar6[TEAM_MOBSTERS] =1; Attackers6= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar6[TEAM_WORKERS] =1; Attackers6= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar6[TEAM_MECHANICS] =1; Attackers6= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t6],teamName[turfOwner[T_t6]]);
new Text:txt12 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt12, 0);
TextDrawSetShadow(txt12,0);
TextDrawSetOutline(txt12,1);
TextDrawColor(txt12,0xDFDFDFFF);
TimeTextForPlayer(a,txt12,6000);
GangZoneFlashForPlayer(a, gGangZone[6], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[6], COLOR_FLASH2); }
}
SetTimer("Turf6TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[6]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills6[b] =0; Turf6Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf7Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t7]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf7Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t7]) {
GangInWar7[turfOwner[T_t7]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t7]);
new Text:txt13 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt13, 0);
TextDrawSetShadow(txt13,0);
TextDrawSetOutline(txt13,1);
TextDrawColor(txt13,COLOR_RED);
TimeTextForPlayer(a,txt13,6000);
GangZoneFlashForPlayer(a, gGangZone[7], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar7[TEAM_EFC] =1; Attackers7= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar7[TEAM_GOLFERS] =1; Attackers7= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar7[TEAM_GUARDS] =1; Attackers7= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar7[TEAM_TRIADS] =1; Attackers7= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar7[TEAM_COPS] =1; Attackers7= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar7[TEAM_MOBSTERS] =1; Attackers7= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar7[TEAM_WORKERS] =1; Attackers7= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar7[TEAM_MECHANICS] =1; Attackers7= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t7],teamName[turfOwner[T_t7]]);
new Text:txt14 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt14, 0);
TextDrawSetShadow(txt14,0);
TextDrawSetOutline(txt14,1);
TextDrawColor(txt14,0xDFDFDFFF);
TimeTextForPlayer(a,txt14,6000);
GangZoneFlashForPlayer(a, gGangZone[7], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[7], COLOR_FLASH2); }
}
SetTimer("Turf7TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[7]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills7[b] =0; Turf7Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf8Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t8]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf8Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t8]) {
GangInWar8[turfOwner[T_t8]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t8]);
new Text:txt15 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt15, 0);
TextDrawSetShadow(txt15,0);
TextDrawSetOutline(txt15,1);
TextDrawColor(txt15,COLOR_RED);
TimeTextForPlayer(a,txt15,6000);
GangZoneFlashForPlayer(a, gGangZone[8], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar8[TEAM_EFC] =1; Attackers8= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar8[TEAM_GOLFERS] =1; Attackers8= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar8[TEAM_GUARDS] =1; Attackers8= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar8[TEAM_TRIADS] =1; Attackers8= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar8[TEAM_COPS] =1; Attackers8= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar8[TEAM_MOBSTERS] =1; Attackers8= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar8[TEAM_WORKERS] =1; Attackers8= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar8[TEAM_MECHANICS] =1; Attackers8= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t8],teamName[turfOwner[T_t8]]);
new Text:txt16 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt16, 0);
TextDrawSetShadow(txt16,0);
TextDrawSetOutline(txt16,1);
TextDrawColor(txt16,0xDFDFDFFF);
TimeTextForPlayer(a,txt16,6000);
GangZoneFlashForPlayer(a, gGangZone[8], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[8], COLOR_FLASH2); }
}
SetTimer("Turf8TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[8]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills8[b] =0; Turf8Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf9Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t9]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf9Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t9]) {
GangInWar9[turfOwner[T_t9]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t9]);
new Text:txt17 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt17, 0);
TextDrawSetShadow(txt17,0);
TextDrawSetOutline(txt17,1);
TextDrawColor(txt17,COLOR_RED);
TimeTextForPlayer(a,txt17,6000);
GangZoneFlashForPlayer(a, gGangZone[9], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar9[TEAM_EFC] =1; Attackers9= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar9[TEAM_GOLFERS] =1; Attackers9= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar9[TEAM_GUARDS] =1; Attackers9= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar9[TEAM_TRIADS] =1; Attackers9= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar9[TEAM_COPS] =1; Attackers9= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar9[TEAM_MOBSTERS] =1; Attackers9= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar9[TEAM_WORKERS] =1; Attackers9= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar9[TEAM_MECHANICS] =1; Attackers9= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t9],teamName[turfOwner[T_t9]]);
new Text:txt18 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt18, 0);
TextDrawSetShadow(txt18,0);
TextDrawSetOutline(txt18,1);
TextDrawColor(txt18,0xDFDFDFFF);
TimeTextForPlayer(a,txt18,6000);
GangZoneFlashForPlayer(a, gGangZone[9], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[9], COLOR_FLASH2); }
}
SetTimer("Turf9TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[9]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills9[b] =0; Turf9Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf10Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t10]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf10Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t10]) {
GangInWar10[turfOwner[T_t10]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t10]);
new Text:txt19 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt19, 0);
TextDrawSetShadow(txt19,0);
TextDrawSetOutline(txt19,1);
TextDrawColor(txt19,COLOR_RED);
TimeTextForPlayer(a,txt19,6000);
GangZoneFlashForPlayer(a, gGangZone[10], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar10[TEAM_EFC] =1; Attackers10= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar10[TEAM_GOLFERS] =1; Attackers10= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar10[TEAM_GUARDS] =1; Attackers10= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar10[TEAM_TRIADS] =1; Attackers10= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar10[TEAM_COPS] =1; Attackers10= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar10[TEAM_MOBSTERS] =1; Attackers10= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar10[TEAM_WORKERS] =1; Attackers10= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar10[TEAM_MECHANICS] =1; Attackers10= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t10],teamName[turfOwner[T_t10]]);
new Text:txt20 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt20, 0);
TextDrawSetShadow(txt20,0);
TextDrawSetOutline(txt20,1);
TextDrawColor(txt20,0xDFDFDFFF);
TimeTextForPlayer(a,txt20,6000);
GangZoneFlashForPlayer(a, gGangZone[10], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[10], COLOR_FLASH); }
}
SetTimer("Turf10TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[10]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills10[b] =0; Turf10Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf11Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t11]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf11Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t11]) {
GangInWar11[turfOwner[T_t11]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t11]);
new Text:txt21 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt21, 0);
TextDrawSetShadow(txt21,0);
TextDrawSetOutline(txt21,1);
TextDrawColor(txt21,COLOR_RED);
TimeTextForPlayer(a,txt21,6000);
GangZoneFlashForPlayer(a, gGangZone[11], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar11[TEAM_EFC] =1; Attackers11= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar11[TEAM_GOLFERS] =1; Attackers11= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar11[TEAM_GUARDS] =1; Attackers11= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar11[TEAM_TRIADS] =1; Attackers11= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar11[TEAM_COPS] =1; Attackers11= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar11[TEAM_MOBSTERS] =1; Attackers11= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar11[TEAM_WORKERS] =1; Attackers11= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar11[TEAM_MECHANICS] =1; Attackers11= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t11],teamName[turfOwner[T_t11]]);
new Text:txt22 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt22, 0);
TextDrawSetShadow(txt22,0);
TextDrawSetOutline(txt22,1);
TextDrawColor(txt22,0xDFDFDFFF);
TimeTextForPlayer(a,txt22,6000);
GangZoneFlashForPlayer(a, gGangZone[11], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[11], COLOR_FLASH2); }
}
SetTimer("Turf11TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[11]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills11[b] =0; Turf11Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf12Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t12]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf12Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t12]) {
GangInWar12[turfOwner[T_t12]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t12]);
new Text:txt23 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt23, 0);
TextDrawSetShadow(txt23,0);
TextDrawSetOutline(txt23,1);
TextDrawColor(txt23,COLOR_RED);
TimeTextForPlayer(a,txt23,6000);
GangZoneFlashForPlayer(a, gGangZone[12], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar12[TEAM_EFC] =1; Attackers12= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar12[TEAM_GOLFERS] =1; Attackers12= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar12[TEAM_GUARDS] =1; Attackers12= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar12[TEAM_TRIADS] =1; Attackers12= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar12[TEAM_COPS] =1; Attackers12= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar12[TEAM_MOBSTERS] =1; Attackers12= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar12[TEAM_WORKERS] =1; Attackers12= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar12[TEAM_MECHANICS] =1; Attackers12= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t12],teamName[turfOwner[T_t12]]);
new Text:txt24 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt24, 0);
TextDrawSetShadow(txt24,0);
TextDrawSetOutline(txt24,1);
TextDrawColor(txt24,0xDFDFDFFF);
TimeTextForPlayer(a,txt24,6000);
GangZoneFlashForPlayer(a, gGangZone[12], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[12], COLOR_FLASH2); }
}
SetTimer("Turf12TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[12]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills12[b] =0; Turf12Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf13Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t13]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf13Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t13]) {
GangInWar13[turfOwner[T_t13]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t13]);
new Text:txt25 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt25, 0);
TextDrawSetShadow(txt25,0);
TextDrawSetOutline(txt25,1);
TextDrawColor(txt25,COLOR_RED);
TimeTextForPlayer(a,txt25,6000);
GangZoneFlashForPlayer(a, gGangZone[13], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar13[TEAM_EFC] =1; Attackers13= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar13[TEAM_GOLFERS] =1; Attackers13= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar13[TEAM_GUARDS] =1; Attackers13= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar13[TEAM_TRIADS] =1; Attackers13= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar13[TEAM_COPS] =1; Attackers13= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar13[TEAM_MOBSTERS] =1; Attackers13= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar13[TEAM_WORKERS] =1; Attackers13= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar13[TEAM_MECHANICS] =1; Attackers13= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t13],teamName[turfOwner[T_t13]]);
new Text:txt26 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt26, 0);
TextDrawSetShadow(txt26,0);
TextDrawSetOutline(txt26,1);
TextDrawColor(txt26,0xDFDFDFFF);
TimeTextForPlayer(a,txt26,6000);
GangZoneFlashForPlayer(a, gGangZone[13], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[13], COLOR_FLASH2); }
}
SetTimer("Turf13TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[13]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills13[b] =0; Turf13Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf14Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t14]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf14Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t14]) {
GangInWar14[turfOwner[T_t14]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t14]);
new Text:txt27 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt27, 0);
TextDrawSetShadow(txt27,0);
TextDrawSetOutline(txt27,1);
TextDrawColor(txt27,COLOR_RED);
TimeTextForPlayer(a,txt27,6000);
GangZoneFlashForPlayer(a, gGangZone[14], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar14[TEAM_EFC] =1; Attackers14= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar14[TEAM_GOLFERS] =1; Attackers14= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar14[TEAM_GUARDS] =1; Attackers14= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar14[TEAM_TRIADS] =1; Attackers14= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar14[TEAM_COPS] =1; Attackers14= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar14[TEAM_MOBSTERS] =1; Attackers14= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar14[TEAM_WORKERS] =1; Attackers14= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar14[TEAM_MECHANICS] =1; Attackers14= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t14],teamName[turfOwner[T_t14]]);
new Text:txt28 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt28, 0);
TextDrawSetShadow(txt28,0);
TextDrawSetOutline(txt28,1);
TextDrawColor(txt28,0xDFDFDFFF);
TimeTextForPlayer(a,txt28,6000);
GangZoneFlashForPlayer(a, gGangZone[14], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[14], COLOR_FLASH2); }
}
SetTimer("Turf14TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[14]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills14[b] =0; Turf14Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf15Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t15]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf15Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t15]) {
GangInWar15[turfOwner[T_t15]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t15]);
new Text:txt29 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt29, 0);
TextDrawSetShadow(txt29,0);
TextDrawSetOutline(txt29,1);
TextDrawColor(txt29,COLOR_RED);
TimeTextForPlayer(a,txt29,6000);
GangZoneFlashForPlayer(a, gGangZone[15], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar15[TEAM_EFC] =1; Attackers15= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar15[TEAM_GOLFERS] =1; Attackers15= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar15[TEAM_GUARDS] =1; Attackers15= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar15[TEAM_TRIADS] =1; Attackers15= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar15[TEAM_COPS] =1; Attackers15= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar15[TEAM_MOBSTERS] =1; Attackers15= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar15[TEAM_WORKERS] =1; Attackers15= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar15[TEAM_MECHANICS] =1; Attackers15= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t15],teamName[turfOwner[T_t15]]);
new Text:txt30 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt30, 0);
TextDrawSetShadow(txt30,0);
TextDrawSetOutline(txt30,1);
TextDrawColor(txt30,0xDFDFDFFF);
TimeTextForPlayer(a,txt30,6000);
GangZoneFlashForPlayer(a, gGangZone[15], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[15], COLOR_FLASH2); }
}
GangZoneFlashForAll(gGangZone[15], COLOR_FLASH);
SetTimer("Turf15TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[15]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills15[b] =0; Turf15Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf16Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t16]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf16Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t16]) {
GangInWar16[turfOwner[T_t16]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t16]);
new Text:txt31 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt31, 0);
TextDrawSetShadow(txt31,0);
TextDrawSetOutline(txt31,1);
TextDrawColor(txt31,COLOR_RED);
TimeTextForPlayer(a,txt31,6000);
GangZoneFlashForPlayer(a, gGangZone[16], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar16[TEAM_EFC] =1; Attackers16= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar16[TEAM_GOLFERS] =1; Attackers16= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar16[TEAM_GUARDS] =1; Attackers16= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar16[TEAM_TRIADS] =1; Attackers16= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar16[TEAM_COPS] =1; Attackers16= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar16[TEAM_MOBSTERS] =1; Attackers16= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar16[TEAM_WORKERS] =1; Attackers16= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar16[TEAM_MECHANICS] =1; Attackers16= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t16],teamName[turfOwner[T_t16]]);
new Text:txt32 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt32, 0);
TextDrawSetShadow(txt32,0);
TextDrawSetOutline(txt32,1);
TextDrawColor(txt32,0xDFDFDFFF);
TimeTextForPlayer(a,txt32,6000);
GangZoneFlashForPlayer(a, gGangZone[16], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[16], COLOR_FLASH2); }
}
SetTimer("Turf16TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[16]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills16[b] =0; Turf16Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf17Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t17]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf17Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t17]) {
GangInWar17[turfOwner[T_t17]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t17]);
new Text:txt33 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt33, 0);
TextDrawSetShadow(txt33,0);
TextDrawSetOutline(txt33,1);
TextDrawColor(txt33,COLOR_RED);
TimeTextForPlayer(a,txt33,6000);
GangZoneFlashForPlayer(a, gGangZone[17], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar17[TEAM_EFC] =1; Attackers17= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar17[TEAM_GOLFERS] =1; Attackers17= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar17[TEAM_GUARDS] =1; Attackers17= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar17[TEAM_TRIADS] =1; Attackers17= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar17[TEAM_COPS] =1; Attackers17= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar17[TEAM_MOBSTERS] =1; Attackers17= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar17[TEAM_WORKERS] =1; Attackers17= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar17[TEAM_MECHANICS] =1; Attackers17= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t17],teamName[turfOwner[T_t17]]);
new Text:txt34 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt34, 0);
TextDrawSetShadow(txt34,0);
TextDrawSetOutline(txt34,1);
TextDrawColor(txt34,0xDFDFDFFF);
TimeTextForPlayer(a,txt34,6000);
GangZoneFlashForPlayer(a, gGangZone[17], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[17], COLOR_FLASH2); }
}
SetTimer("Turf17TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[17]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills17[b] =0; Turf17Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf18Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t18]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf18Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t18]) {
GangInWar18[turfOwner[T_t18]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t18]);
new Text:txt35 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt35, 0);
TextDrawSetShadow(txt35,0);
TextDrawSetOutline(txt35,1);
TextDrawColor(txt35,COLOR_RED);
TimeTextForPlayer(a,txt35,6000);
GangZoneFlashForPlayer(a, gGangZone[18], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar18[TEAM_EFC] =1; Attackers18= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar18[TEAM_GOLFERS] =1; Attackers18= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar18[TEAM_GUARDS] =1; Attackers18= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar18[TEAM_TRIADS] =1; Attackers18= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar18[TEAM_COPS] =1; Attackers18= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar18[TEAM_MOBSTERS] =1; Attackers18= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar18[TEAM_WORKERS] =1; Attackers18= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar18[TEAM_MECHANICS] =1; Attackers18= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t18],teamName[turfOwner[T_t18]]);
new Text:txt36 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt36, 0);
TextDrawSetShadow(txt36,0);
TextDrawSetOutline(txt36,1);
TextDrawColor(txt36,0xDFDFDFFF);
TimeTextForPlayer(a,txt36,6000);
GangZoneFlashForPlayer(a, gGangZone[18], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[18], COLOR_FLASH2); }
}
SetTimer("Turf18TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[18]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills18[b] =0; Turf18Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf19Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t19]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf19Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t19]) {
GangInWar19[turfOwner[T_t19]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t19]);
new Text:txt37 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt37, 0);
TextDrawSetShadow(txt37,0);
TextDrawSetOutline(txt37,1);
TextDrawColor(txt37,COLOR_RED);
TimeTextForPlayer(a,txt37,6000);
GangZoneFlashForPlayer(a, gGangZone[19], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar19[TEAM_EFC] =1; Attackers19= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar19[TEAM_GOLFERS] =1; Attackers19= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar19[TEAM_GUARDS] =1; Attackers19= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar19[TEAM_TRIADS] =1; Attackers19= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar19[TEAM_COPS] =1; Attackers19= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar19[TEAM_MOBSTERS] =1; Attackers19= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar19[TEAM_WORKERS] =1; Attackers19= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar19[TEAM_MECHANICS] =1; Attackers19= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t19],teamName[turfOwner[T_t19]]);
new Text:txt38 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt38, 0);
TextDrawSetShadow(txt38,0);
TextDrawSetOutline(txt38,1);
TextDrawColor(txt38,0xDFDFDFFF);
TimeTextForPlayer(a,txt38,6000);
GangZoneFlashForPlayer(a, gGangZone[19], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[19], COLOR_FLASH2); }
}
SetTimer("Turf19TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[19]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills19[b] =0; Turf19Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf20Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t20]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf20Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t20]) {
GangInWar20[turfOwner[T_t20]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t20]);
new Text:txt39 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt39, 0);
TextDrawSetShadow(txt39,0);
TextDrawSetOutline(txt39,1);
TextDrawColor(txt39,COLOR_RED);
TimeTextForPlayer(a,txt39,6000);
GangZoneFlashForPlayer(a, gGangZone[20], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar20[TEAM_EFC] =1; Attackers20= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar20[TEAM_GOLFERS] =1; Attackers20= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar20[TEAM_GUARDS] =1; Attackers20= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar20[TEAM_TRIADS] =1; Attackers20= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar20[TEAM_COPS] =1; Attackers20= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar20[TEAM_MOBSTERS] =1; Attackers20= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar20[TEAM_WORKERS] =1; Attackers20= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar20[TEAM_MECHANICS] =1; Attackers20= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t20],teamName[turfOwner[T_t20]]);
new Text:txt40 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt40, 0);
TextDrawSetShadow(txt40,0);
TextDrawSetOutline(txt40,1);
TextDrawColor(txt40,0xDFDFDFFF);
TimeTextForPlayer(a,txt40,6000);
GangZoneFlashForPlayer(a, gGangZone[20], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[20], COLOR_FLASH2); }
}
SetTimer("Turf20TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[20]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills20[b] =0; Turf20Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf21Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t21]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf21Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t21]) {
GangInWar21[turfOwner[T_t21]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t21]);
new Text:txt41 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt41, 0);
TextDrawSetShadow(txt41,0);
TextDrawSetOutline(txt41,1);
TextDrawColor(txt41,COLOR_RED);
TimeTextForPlayer(a,txt41,6000);
GangZoneFlashForPlayer(a, gGangZone[21], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar21[TEAM_EFC] =1; Attackers21= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar21[TEAM_GOLFERS] =1; Attackers21= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar21[TEAM_GUARDS] =1; Attackers21= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar21[TEAM_TRIADS] =1; Attackers21= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar21[TEAM_COPS] =1; Attackers21= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar21[TEAM_MOBSTERS] =1; Attackers21= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar21[TEAM_WORKERS] =1; Attackers21= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar21[TEAM_MECHANICS] =1; Attackers21= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t21],teamName[turfOwner[T_t21]]);
new Text:txt42 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt42, 0);
TextDrawSetShadow(txt42,0);
TextDrawSetOutline(txt42,1);
TextDrawColor(txt42,0xDFDFDFFF);
TimeTextForPlayer(a,txt42,6000);
GangZoneFlashForPlayer(a, gGangZone[21], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[21], COLOR_FLASH2); }
}
SetTimer("Turf21TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[21]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills21[b] =0; Turf21Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf22Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t22]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf22Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t22]) {
GangInWar22[turfOwner[T_t22]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t22]);
new Text:txt43 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt43, 0);
TextDrawSetShadow(txt43,0);
TextDrawSetOutline(txt43,1);
TextDrawColor(txt43,COLOR_RED);
TimeTextForPlayer(a,txt43,6000);
GangZoneFlashForPlayer(a, gGangZone[22], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar22[TEAM_EFC] =1; Attackers22= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar22[TEAM_GOLFERS] =1; Attackers22= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar22[TEAM_GUARDS] =1; Attackers22= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar22[TEAM_TRIADS] =1; Attackers22= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar22[TEAM_COPS] =1; Attackers22= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar22[TEAM_MOBSTERS] =1; Attackers22= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar22[TEAM_WORKERS] =1; Attackers22= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar22[TEAM_MECHANICS] =1; Attackers22= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t22],teamName[turfOwner[T_t22]]);
new Text:txt44 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt44, 0);
TextDrawSetShadow(txt44,0);
TextDrawSetOutline(txt44,1);
TextDrawColor(txt44,0xDFDFDFFF);
TimeTextForPlayer(a,txt44,6000);
GangZoneFlashForPlayer(a, gGangZone[22], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[22], COLOR_FLASH2); }
}
SetTimer("Turf22TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[22]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills22[b] =0; Turf22Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf23Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t23]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf23Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t23]) {
GangInWar23[turfOwner[T_t23]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t23]);
new Text:txt45 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt45, 0);
TextDrawSetShadow(txt45,0);
TextDrawSetOutline(txt45,1);
TextDrawColor(txt45,COLOR_RED);
TimeTextForPlayer(a,txt45,6000);
GangZoneFlashForPlayer(a, gGangZone[23], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar23[TEAM_EFC] =1; Attackers23= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar23[TEAM_GOLFERS] =1; Attackers23= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar23[TEAM_GUARDS] =1; Attackers23= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar23[TEAM_TRIADS] =1; Attackers23= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar23[TEAM_COPS] =1; Attackers23= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar23[TEAM_MOBSTERS] =1; Attackers23= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar23[TEAM_WORKERS] =1; Attackers23= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar23[TEAM_MECHANICS] =1; Attackers23= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t23],teamName[turfOwner[T_t23]]);
new Text:txt46 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt46, 0);
TextDrawSetShadow(txt46,0);
TextDrawSetOutline(txt46,1);
TextDrawColor(txt46,0xDFDFDFFF);
TimeTextForPlayer(a,txt46,6000);
GangZoneFlashForPlayer(a, gGangZone[23], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[23], COLOR_FLASH2); }
}
SetTimer("Turf23TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[23]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills23[b] =0; Turf23Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf24Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t24]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf24Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t24]) {
GangInWar24[turfOwner[T_t24]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t24]);
new Text:txt47 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt47, 0);
TextDrawSetShadow(txt47,0);
TextDrawSetOutline(txt47,1);
TextDrawColor(txt47,COLOR_RED);
TimeTextForPlayer(a,txt47,6000);
GangZoneFlashForPlayer(a, gGangZone[24], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar24[TEAM_EFC] =1; Attackers24= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar24[TEAM_GOLFERS] =1; Attackers24= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar24[TEAM_GUARDS] =1; Attackers24= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar24[TEAM_TRIADS] =1; Attackers24= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar24[TEAM_COPS] =1; Attackers24= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar24[TEAM_MOBSTERS] =1; Attackers24= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar24[TEAM_WORKERS] =1; Attackers24= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar24[TEAM_MECHANICS] =1; Attackers24= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t24],teamName[turfOwner[T_t24]]);
new Text:txt48 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt48, 0);
TextDrawSetShadow(txt48,0);
TextDrawSetOutline(txt48,1);
TextDrawColor(txt48,0xDFDFDFFF);
TimeTextForPlayer(a,txt48,6000);
GangZoneFlashForPlayer(a, gGangZone[24], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[24], COLOR_FLASH2); }
}
SetTimer("Turf24TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[24]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills24[b] =0; Turf24Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf25Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t25]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf25Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t25]) {
GangInWar25[turfOwner[T_t25]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t25]);
new Text:txt49 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt49, 0);
TextDrawSetShadow(txt49,0);
TextDrawSetOutline(txt49,1);
TextDrawColor(txt49,COLOR_RED);
TimeTextForPlayer(a,txt49,6000);
GangZoneFlashForPlayer(a, gGangZone[25], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar25[TEAM_EFC] =1; Attackers25= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar25[TEAM_GOLFERS] =1; Attackers25= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar25[TEAM_GUARDS] =1; Attackers25= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar25[TEAM_TRIADS] =1; Attackers25= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar25[TEAM_COPS] =1; Attackers25= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar25[TEAM_MOBSTERS] =1; Attackers25= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar25[TEAM_WORKERS] =1; Attackers25= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar25[TEAM_MECHANICS] =1; Attackers25= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t25],teamName[turfOwner[T_t25]]);
new Text:txt50 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt50, 0);
TextDrawSetShadow(txt50,0);
TextDrawSetOutline(txt50,1);
TextDrawColor(txt50,0xDFDFDFFF);
TimeTextForPlayer(a,txt50,6000);
GangZoneFlashForPlayer(a, gGangZone[25], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[25], COLOR_FLASH2); }
}
SetTimer("Turf25TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[25]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills25[b] =0; Turf25Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf26Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t26]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf26Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t26]) {
GangInWar26[turfOwner[T_t26]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t26]);
new Text:txt51 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt51, 0);
TextDrawSetShadow(txt51,0);
TextDrawSetOutline(txt51,1);
TextDrawColor(txt51,COLOR_RED);
TimeTextForPlayer(a,txt51,6000);
GangZoneFlashForPlayer(a, gGangZone[26], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar26[TEAM_EFC] =1; Attackers26= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar26[TEAM_GOLFERS] =1; Attackers26= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar26[TEAM_GUARDS] =1; Attackers26= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar26[TEAM_TRIADS] =1; Attackers26= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar26[TEAM_COPS] =1; Attackers26= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar26[TEAM_MOBSTERS] =1; Attackers26= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar26[TEAM_WORKERS] =1; Attackers26= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar26[TEAM_MECHANICS] =1; Attackers26= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t26],teamName[turfOwner[T_t26]]);
new Text:txt52 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt52, 0);
TextDrawSetShadow(txt52,0);
TextDrawSetOutline(txt52,1);
TextDrawColor(txt52,0xDFDFDFFF);
TimeTextForPlayer(a,txt52,6000);
GangZoneFlashForPlayer(a, gGangZone[26], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[26], COLOR_FLASH2); }
}
SetTimer("Turf26TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[26]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills26[b] =0; Turf26Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf27Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t27]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf27Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t27]) {
GangInWar27[turfOwner[T_t27]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t27]);
new Text:txt53 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt53, 0);
TextDrawSetShadow(txt53,0);
TextDrawSetOutline(txt53,1);
TextDrawColor(txt53,COLOR_RED);
TimeTextForPlayer(a,txt53,6000);
GangZoneFlashForPlayer(a, gGangZone[27], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar27[TEAM_EFC] =1; Attackers27= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar27[TEAM_GOLFERS] =1; Attackers27= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar27[TEAM_GUARDS] =1; Attackers27= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar27[TEAM_TRIADS] =1; Attackers27= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar27[TEAM_COPS] =1; Attackers27= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar27[TEAM_MOBSTERS] =1; Attackers27= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar27[TEAM_WORKERS] =1; Attackers27= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar27[TEAM_MECHANICS] =1; Attackers27= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t27],teamName[turfOwner[T_t27]]);
new Text:txt54 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt54, 0);
TextDrawSetShadow(txt54,0);
TextDrawSetOutline(txt54,1);
TextDrawColor(txt54,0xDFDFDFFF);
TimeTextForPlayer(a,txt54,6000);
GangZoneFlashForPlayer(a, gGangZone[27], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[27], COLOR_FLASH2); }
}
SetTimer("Turf27TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[27]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills27[b] =0; Turf27Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf28Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t28]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf28Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t28]) {
GangInWar28[turfOwner[T_t28]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t28]);
new Text:txt55 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt55, 0);
TextDrawSetShadow(txt55,0);
TextDrawSetOutline(txt55,1);
TextDrawColor(txt55,COLOR_RED);
TimeTextForPlayer(a,txt55,6000);
GangZoneFlashForPlayer(a, gGangZone[28], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar28[TEAM_EFC] =1; Attackers28= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar28[TEAM_GOLFERS] =1; Attackers28= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar28[TEAM_GUARDS] =1; Attackers28= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar28[TEAM_TRIADS] =1; Attackers28= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar28[TEAM_COPS] =1; Attackers28= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar28[TEAM_MOBSTERS] =1; Attackers28= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar28[TEAM_WORKERS] =1; Attackers28= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar28[TEAM_MECHANICS] =1; Attackers28= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t28],teamName[turfOwner[T_t28]]);
new Text:txt56 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt56, 0);
TextDrawSetShadow(txt56,0);
TextDrawSetOutline(txt56,1);
TextDrawColor(txt56,0xDFDFDFFF);
TimeTextForPlayer(a,txt56,6000);
GangZoneFlashForPlayer(a, gGangZone[28], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[28], COLOR_FLASH2); }
}
SetTimer("Turf28TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[28]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills28[b] =0; Turf28Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf29Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t29]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf29Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t29]) {
GangInWar29[turfOwner[T_t29]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t29]);
new Text:txt57 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt57, 0);
TextDrawSetShadow(txt57,0);
TextDrawSetOutline(txt57,1);
TextDrawColor(txt57,COLOR_RED);
TimeTextForPlayer(a,txt57,6000);
GangZoneFlashForPlayer(a, gGangZone[29], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar29[TEAM_EFC] =1; Attackers29= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar29[TEAM_GOLFERS] =1; Attackers29= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar29[TEAM_GUARDS] =1; Attackers29= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar29[TEAM_TRIADS] =1; Attackers29= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar29[TEAM_COPS] =1; Attackers29= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar29[TEAM_MOBSTERS] =1; Attackers29= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar29[TEAM_WORKERS] =1; Attackers29= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar29[TEAM_MECHANICS] =1; Attackers29= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t29],teamName[turfOwner[T_t29]]);
new Text:txt58 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt58, 0);
TextDrawSetShadow(txt58,0);
TextDrawSetOutline(txt58,1);
TextDrawColor(txt58,0xDFDFDFFF);
TimeTextForPlayer(a,txt58,6000);
GangZoneFlashForPlayer(a, gGangZone[29], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[29], COLOR_FLASH2); }
}
SetTimer("Turf29TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[29]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills29[b] =0; Turf29Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf30Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t30]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf30Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t30]) {
GangInWar30[turfOwner[T_t30]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t30]);
new Text:txt59 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt59, 0);
TextDrawSetShadow(txt59,0);
TextDrawSetOutline(txt59,1);
TextDrawColor(txt59,COLOR_RED);
TimeTextForPlayer(a,txt59,6000);
GangZoneFlashForPlayer(a, gGangZone[30], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar30[TEAM_EFC] =1; Attackers30= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar30[TEAM_GOLFERS] =1; Attackers30= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar30[TEAM_GUARDS] =1; Attackers30= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar30[TEAM_TRIADS] =1; Attackers30= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar30[TEAM_COPS] =1; Attackers30= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar30[TEAM_MOBSTERS] =1; Attackers30= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar30[TEAM_WORKERS] =1; Attackers30= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar30[TEAM_MECHANICS] =1; Attackers30= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t30],teamName[turfOwner[T_t30]]);
new Text:txt60 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt60, 0);
TextDrawSetShadow(txt60,0);
TextDrawSetOutline(txt60,1);
TextDrawColor(txt60,0xDFDFDFFF);
TimeTextForPlayer(a,txt60,6000);
GangZoneFlashForPlayer(a, gGangZone[30], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[30], COLOR_FLASH2); }
}
SetTimer("Turf30TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[30]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills30[b] =0; Turf30Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf31Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t31]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf31Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t31]) {
GangInWar31[turfOwner[T_t31]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t31]);
new Text:txt61 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt61, 0);
TextDrawSetShadow(txt61,0);
TextDrawSetOutline(txt61,1);
TextDrawColor(txt61,COLOR_RED);
TimeTextForPlayer(a,txt61,6000);
GangZoneFlashForPlayer(a, gGangZone[31], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar31[TEAM_EFC] =1; Attackers31= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar31[TEAM_GOLFERS] =1; Attackers31= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar31[TEAM_GUARDS] =1; Attackers31= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar31[TEAM_TRIADS] =1; Attackers31= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar31[TEAM_COPS] =1; Attackers31= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar31[TEAM_MOBSTERS] =1; Attackers31= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar31[TEAM_WORKERS] =1; Attackers31= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar31[TEAM_MECHANICS] =1; Attackers31= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t31],teamName[turfOwner[T_t31]]);
new Text:txt62 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt62, 0);
TextDrawSetShadow(txt62,0);
TextDrawSetOutline(txt62,1);
TextDrawColor(txt62,0xDFDFDFFF);
TimeTextForPlayer(a,txt62,6000);
GangZoneFlashForPlayer(a, gGangZone[31], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[31], COLOR_FLASH2); }
}
SetTimer("Turf31TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[31]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills31[b] =0; Turf31Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf32Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t32]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf32Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t32]) {
GangInWar32[turfOwner[T_t32]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t32]);
new Text:txt63 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt63, 0);
TextDrawSetShadow(txt63,0);
TextDrawSetOutline(txt63,1);
TextDrawColor(txt63,COLOR_RED);
TimeTextForPlayer(a,txt63,6000);
GangZoneFlashForPlayer(a, gGangZone[32], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar32[TEAM_EFC] =1; Attackers32= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar32[TEAM_GOLFERS] =1; Attackers32= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar32[TEAM_GUARDS] =1; Attackers32= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar32[TEAM_TRIADS] =1; Attackers32= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar32[TEAM_COPS] =1; Attackers32= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar32[TEAM_MOBSTERS] =1; Attackers32= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar32[TEAM_WORKERS] =1; Attackers32= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar32[TEAM_MECHANICS] =1; Attackers32= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t32],teamName[turfOwner[T_t32]]);
new Text:txt64 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt64, 0);
TextDrawSetShadow(txt64,0);
TextDrawSetOutline(txt64,1);
TextDrawColor(txt64,0xDFDFDFFF);
TimeTextForPlayer(a,txt64,6000);
GangZoneFlashForPlayer(a, gGangZone[32], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[32], COLOR_FLASH2); }
}
SetTimer("Turf32TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[32]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills32[b] =0; Turf32Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf33Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t33]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf33Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t33]) {
GangInWar33[turfOwner[T_t33]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t33]);
new Text:txt65 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt65, 0);
TextDrawSetShadow(txt65,0);
TextDrawSetOutline(txt65,1);
TextDrawColor(txt65,COLOR_RED);
TimeTextForPlayer(a,txt65,6000);
GangZoneFlashForPlayer(a, gGangZone[33], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar33[TEAM_EFC] =1; Attackers33= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar33[TEAM_GOLFERS] =1; Attackers33= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar33[TEAM_GUARDS] =1; Attackers33= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar33[TEAM_TRIADS] =1; Attackers33= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar33[TEAM_COPS] =1; Attackers33= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar33[TEAM_MOBSTERS] =1; Attackers33= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar33[TEAM_WORKERS] =1; Attackers33= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar33[TEAM_MECHANICS] =1; Attackers33= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t33],teamName[turfOwner[T_t33]]);
new Text:txt66 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt66, 0);
TextDrawSetShadow(txt66,0);
TextDrawSetOutline(txt66,1);
TextDrawColor(txt66,0xDFDFDFFF);
TimeTextForPlayer(a,txt66,6000);
GangZoneFlashForPlayer(a, gGangZone[33], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[33], COLOR_FLASH2); }
}
SetTimer("Turf33TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[33]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills33[b] =0; Turf33Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf34Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t34]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf34Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t34]) {
GangInWar34[turfOwner[T_t34]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t34]);
new Text:txt67 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt67, 0);
TextDrawSetShadow(txt67,0);
TextDrawSetOutline(txt67,1);
TextDrawColor(txt67,COLOR_RED);
TimeTextForPlayer(a,txt67,6000);
GangZoneFlashForPlayer(a, gGangZone[34], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar34[TEAM_EFC] =1; Attackers34= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar34[TEAM_GOLFERS] =1; Attackers34= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar34[TEAM_GUARDS] =1; Attackers34= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar34[TEAM_TRIADS] =1; Attackers34= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar34[TEAM_COPS] =1; Attackers34= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar34[TEAM_MOBSTERS] =1; Attackers34= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar34[TEAM_WORKERS] =1; Attackers34= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar34[TEAM_MECHANICS] =1; Attackers34= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t34],teamName[turfOwner[T_t34]]);
new Text:txt68 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt68, 0);
TextDrawSetShadow(txt68,0);
TextDrawSetOutline(txt68,1);
TextDrawColor(txt68,0xDFDFDFFF);
TimeTextForPlayer(a,txt68,6000);
GangZoneFlashForPlayer(a, gGangZone[34], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[34], COLOR_FLASH2); }
}
SetTimer("Turf34TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[34]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills34[b] =0; Turf34Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf35Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t35]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf35Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t35]) {
GangInWar35[turfOwner[T_t35]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t35]);
new Text:txt69 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt69, 0);
TextDrawSetShadow(txt69,0);
TextDrawSetOutline(txt69,1);
TextDrawColor(txt69,COLOR_RED);
TimeTextForPlayer(a,txt69,6000);
GangZoneFlashForPlayer(a, gGangZone[35], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar35[TEAM_EFC] =1; Attackers35= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar35[TEAM_GOLFERS] =1; Attackers35= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar35[TEAM_GUARDS] =1; Attackers35= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar35[TEAM_TRIADS] =1; Attackers35= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar35[TEAM_COPS] =1; Attackers35= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar35[TEAM_MOBSTERS] =1; Attackers35= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar35[TEAM_WORKERS] =1; Attackers35= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar35[TEAM_MECHANICS] =1; Attackers35= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t35],teamName[turfOwner[T_t35]]);
new Text:txt70 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt70, 0);
TextDrawSetShadow(txt70,0);
TextDrawSetOutline(txt70,1);
TextDrawColor(txt70,0xDFDFDFFF);
TimeTextForPlayer(a,txt70,6000);
GangZoneFlashForPlayer(a, gGangZone[35], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[35], COLOR_FLASH2); }
}
SetTimer("Turf35TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[35]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills35[b] =0; Turf35Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf36Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t36]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf36Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t36]) {
GangInWar36[turfOwner[T_t36]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t36]);
new Text:txt71 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt71, 0);
TextDrawSetShadow(txt71,0);
TextDrawSetOutline(txt71,1);
TextDrawColor(txt71,COLOR_RED);
TimeTextForPlayer(a,txt71,6000);
GangZoneFlashForPlayer(a, gGangZone[36], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar36[TEAM_EFC] =1; Attackers36= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar36[TEAM_GOLFERS] =1; Attackers36= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar36[TEAM_GUARDS] =1; Attackers36= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar36[TEAM_TRIADS] =1; Attackers36= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar36[TEAM_COPS] =1; Attackers36= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar36[TEAM_MOBSTERS] =1; Attackers36= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar36[TEAM_WORKERS] =1; Attackers36= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar36[TEAM_MECHANICS] =1; Attackers36= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t36],teamName[turfOwner[T_t36]]);
new Text:txt72 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt72, 0);
TextDrawSetShadow(txt72,0);
TextDrawSetOutline(txt72,1);
TextDrawColor(txt72,0xDFDFDFFF);
TimeTextForPlayer(a,txt72,6000);
GangZoneFlashForPlayer(a, gGangZone[36], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[36], COLOR_FLASH2); }
}
SetTimer("Turf36TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[36]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills36[b] =0; Turf36Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf37Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t37]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf37Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t37]) {
GangInWar37[turfOwner[T_t37]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t37]);
new Text:txt73 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt73, 0);
TextDrawSetShadow(txt73,0);
TextDrawSetOutline(txt73,1);
TextDrawColor(txt73,COLOR_RED);
TimeTextForPlayer(a,txt73,6000);
GangZoneFlashForPlayer(a, gGangZone[37], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar37[TEAM_EFC] =1; Attackers37= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar37[TEAM_GOLFERS] =1; Attackers37= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar37[TEAM_GUARDS] =1; Attackers37= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar37[TEAM_TRIADS] =1; Attackers37= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar37[TEAM_COPS] =1; Attackers37= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar37[TEAM_MOBSTERS] =1; Attackers37= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar37[TEAM_WORKERS] =1; Attackers37= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar37[TEAM_MECHANICS] =1; Attackers37= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t37],teamName[turfOwner[T_t37]]);
new Text:txt74 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt74, 0);
TextDrawSetShadow(txt74,0);
TextDrawSetOutline(txt74,1);
TextDrawColor(txt74,0xDFDFDFFF);
TimeTextForPlayer(a,txt74,6000);
GangZoneFlashForPlayer(a, gGangZone[37], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[37], COLOR_FLASH2); }
}
SetTimer("Turf37TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[37]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills37[b] =0; Turf37Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf38Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t38]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf38Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t38]) {
GangInWar38[turfOwner[T_t38]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t38]);
new Text:txt75 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt75, 0);
TextDrawSetShadow(txt75,0);
TextDrawSetOutline(txt75,1);
TextDrawColor(txt75,COLOR_RED);
TimeTextForPlayer(a,txt75,6000);
GangZoneFlashForPlayer(a, gGangZone[38], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar38[TEAM_EFC] =1; Attackers38= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar38[TEAM_GOLFERS] =1; Attackers38= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar38[TEAM_GUARDS] =1; Attackers38= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar38[TEAM_TRIADS] =1; Attackers38= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar38[TEAM_COPS] =1; Attackers38= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar38[TEAM_MOBSTERS] =1; Attackers38= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar38[TEAM_WORKERS] =1; Attackers38= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar38[TEAM_MECHANICS] =1; Attackers38= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t38],teamName[turfOwner[T_t38]]);
new Text:txt76 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt76, 0);
TextDrawSetShadow(txt76,0);
TextDrawSetOutline(txt76,1);
TextDrawColor(txt76,0xDFDFDFFF);
TimeTextForPlayer(a,txt76,6000);
GangZoneFlashForPlayer(a, gGangZone[38], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[38], COLOR_FLASH2); }
}
SetTimer("Turf38TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[38]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills38[b] =0; Turf38Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf39Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t39]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf39Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t39]) {
GangInWar39[turfOwner[T_t39]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t39]);
new Text:txt77 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt77, 0);
TextDrawSetShadow(txt77,0);
TextDrawSetOutline(txt77,1);
TextDrawColor(txt77,COLOR_RED);
TimeTextForPlayer(a,txt77,6000);
GangZoneFlashForPlayer(a, gGangZone[39], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar39[TEAM_EFC] =1; Attackers39= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar39[TEAM_GOLFERS] =1; Attackers39= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar39[TEAM_GUARDS] =1; Attackers39= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar39[TEAM_TRIADS] =1; Attackers39= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar39[TEAM_COPS] =1; Attackers39= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar39[TEAM_MOBSTERS] =1; Attackers39= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar39[TEAM_WORKERS] =1; Attackers39= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar39[TEAM_MECHANICS] =1; Attackers39= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t39],teamName[turfOwner[T_t39]]);
new Text:txt78 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt78, 0);
TextDrawSetShadow(txt78,0);
TextDrawSetOutline(txt78,1);
TextDrawColor(txt78,0xDFDFDFFF);
TimeTextForPlayer(a,txt78,6000);
GangZoneFlashForPlayer(a, gGangZone[39], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[39], COLOR_FLASH2); }
}
SetTimer("Turf39TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[39]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills39[b] =0; Turf39Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf40Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t40]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf40Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t40]) {
GangInWar40[turfOwner[T_t40]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t40]);
new Text:txt79 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt79, 0);
TextDrawSetShadow(txt79,0);
TextDrawSetOutline(txt79,1);
TextDrawColor(txt79,COLOR_RED);
TimeTextForPlayer(a,txt79,6000);
GangZoneFlashForPlayer(a, gGangZone[40], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar40[TEAM_EFC] =1; Attackers40= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar40[TEAM_GOLFERS] =1; Attackers40= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar40[TEAM_GUARDS] =1; Attackers40= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar40[TEAM_TRIADS] =1; Attackers40= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar40[TEAM_COPS] =1; Attackers40= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar40[TEAM_MOBSTERS] =1; Attackers40= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar40[TEAM_WORKERS] =1; Attackers40= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar40[TEAM_MECHANICS] =1; Attackers40= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t40],teamName[turfOwner[T_t40]]);
new Text:txt80 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt80, 0);
TextDrawSetShadow(txt80,0);
TextDrawSetOutline(txt80,1);
TextDrawColor(txt80,0xDFDFDFFF);
TimeTextForPlayer(a,txt80,6000);
GangZoneFlashForPlayer(a, gGangZone[40], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[40], COLOR_FLASH2); }
}
SetTimer("Turf40TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[40]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills40[b] =0; Turf40Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf41Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t41]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf41Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t41]) {
GangInWar41[turfOwner[T_t41]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t41]);
new Text:txt81 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt81, 0);
TextDrawSetShadow(txt81,0);
TextDrawSetOutline(txt81,1);
TextDrawColor(txt81,COLOR_RED);
TimeTextForPlayer(a,txt81,6000);
GangZoneFlashForPlayer(a, gGangZone[41], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar41[TEAM_EFC] =1; Attackers41= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar41[TEAM_GOLFERS] =1; Attackers41= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar41[TEAM_GUARDS] =1; Attackers41= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar41[TEAM_TRIADS] =1; Attackers41= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar41[TEAM_COPS] =1; Attackers41= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar41[TEAM_MOBSTERS] =1; Attackers41= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar41[TEAM_WORKERS] =1; Attackers41= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar41[TEAM_MECHANICS] =1; Attackers41= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t41],teamName[turfOwner[T_t41]]);
new Text:txt82 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt82, 0);
TextDrawSetShadow(txt82,0);
TextDrawSetOutline(txt82,1);
TextDrawColor(txt82,0xDFDFDFFF);
TimeTextForPlayer(a,txt82,6000);
GangZoneFlashForPlayer(a, gGangZone[41], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[41], COLOR_FLASH2); }
}
SetTimer("Turf41TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[41]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills41[b] =0; Turf41Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf42Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t42]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf42Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t42]) {
GangInWar42[turfOwner[T_t42]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t42]);
new Text:txt83 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt83, 0);
TextDrawSetShadow(txt83,0);
TextDrawSetOutline(txt83,1);
TextDrawColor(txt83,COLOR_RED);
TimeTextForPlayer(a,txt83,6000);
GangZoneFlashForPlayer(a, gGangZone[42], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar42[TEAM_EFC] =1; Attackers42= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar42[TEAM_GOLFERS] =1; Attackers42= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar42[TEAM_GUARDS] =1; Attackers42= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar42[TEAM_TRIADS] =1; Attackers42= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar42[TEAM_COPS] =1; Attackers42= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar42[TEAM_MOBSTERS] =1; Attackers42= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar42[TEAM_WORKERS] =1; Attackers42= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar42[TEAM_MECHANICS] =1; Attackers42= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t42],teamName[turfOwner[T_t42]]);
new Text:txt84 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt84, 0);
TextDrawSetShadow(txt84,0);
TextDrawSetOutline(txt84,1);
TextDrawColor(txt84,0xDFDFDFFF);
TimeTextForPlayer(a,txt84,6000);
GangZoneFlashForPlayer(a, gGangZone[42], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[42], COLOR_FLASH2); }
}
SetTimer("Turf42TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[42]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills42[b] =0; Turf42Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf43Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t43]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf43Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t43]) {
GangInWar43[turfOwner[T_t43]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t43]);
new Text:txt85 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt85, 0);
TextDrawSetShadow(txt85,0);
TextDrawSetOutline(txt85,1);
TextDrawColor(txt85,COLOR_RED);
TimeTextForPlayer(a,txt85,6000);
GangZoneFlashForPlayer(a, gGangZone[43], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar43[TEAM_EFC] =1; Attackers43= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar43[TEAM_GOLFERS] =1; Attackers43= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar43[TEAM_GUARDS] =1; Attackers43= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar43[TEAM_TRIADS] =1; Attackers43= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar43[TEAM_COPS] =1; Attackers43= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar43[TEAM_MOBSTERS] =1; Attackers43= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar43[TEAM_WORKERS] =1; Attackers43= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar43[TEAM_MECHANICS] =1; Attackers43= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t43],teamName[turfOwner[T_t43]]);
new Text:txt86 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt86, 0);
TextDrawSetShadow(txt86,0);
TextDrawSetOutline(txt86,1);
TextDrawColor(txt86,0xDFDFDFFF);
TimeTextForPlayer(a,txt86,6000);
GangZoneFlashForPlayer(a, gGangZone[43], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[43], COLOR_FLASH2); }
}
SetTimer("Turf43TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[43]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills43[b] =0; Turf43Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf44Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t44]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf44Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t44]) {
GangInWar44[turfOwner[T_t44]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",TurfAreaNames[T_t44],teamName[gTeam[killerid]]);
new Text:txt87 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt87, 0);
TextDrawSetShadow(txt87,0);
TextDrawSetOutline(txt87,1);
TextDrawColor(txt87,COLOR_RED);
TimeTextForPlayer(a,txt87,6000);
GangZoneFlashForPlayer(a, gGangZone[44], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar44[TEAM_EFC] =1; Attackers44= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar44[TEAM_GOLFERS] =1; Attackers44= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar44[TEAM_GUARDS] =1; Attackers44= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar44[TEAM_TRIADS] =1; Attackers44= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar44[TEAM_COPS] =1; Attackers44= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar44[TEAM_MOBSTERS] =1; Attackers44= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar44[TEAM_WORKERS] =1; Attackers44= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar44[TEAM_MECHANICS] =1; Attackers44= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t44],teamName[turfOwner[T_t44]]);
new Text:txt88 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt88, 0);
TextDrawSetShadow(txt88,0);
TextDrawSetOutline(txt88,1);
TextDrawColor(txt88,0xDFDFDFFF);
TimeTextForPlayer(a,txt88,6000);
GangZoneFlashForPlayer(a, gGangZone[44], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[44], COLOR_FLASH2); }
}
SetTimer("Turf44TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[44]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills44[b] =0; Turf44Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf45Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t45]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf45Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t45]) {
GangInWar45[turfOwner[T_t45]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t45]);
new Text:txt89 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt89, 0);
TextDrawSetShadow(txt89,0);
TextDrawSetOutline(txt89,1);
TextDrawColor(txt89,COLOR_RED);
TimeTextForPlayer(a,txt89,6000);
GangZoneFlashForPlayer(a, gGangZone[45], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar45[TEAM_EFC] =1; Attackers45= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar45[TEAM_GOLFERS] =1; Attackers45= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar45[TEAM_GUARDS] =1; Attackers45= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar45[TEAM_TRIADS] =1; Attackers45= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar45[TEAM_COPS] =1; Attackers45= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar45[TEAM_MOBSTERS] =1; Attackers45= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar45[TEAM_WORKERS] =1; Attackers45= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar45[TEAM_MECHANICS] =1; Attackers45= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t45],teamName[turfOwner[T_t45]]);
new Text:txt90 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt90, 0);
TextDrawSetShadow(txt90,0);
TextDrawSetOutline(txt90,1);
TextDrawColor(txt90,0xDFDFDFFF);
TimeTextForPlayer(a,txt90,6000);
GangZoneFlashForPlayer(a, gGangZone[45], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[45], COLOR_FLASH2); }
}
SetTimer("Turf45TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[45]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills45[b] =0; Turf45Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf46Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t46]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf46Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t46]) {
GangInWar46[turfOwner[T_t46]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t46]);
new Text:txt91 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt91, 0);
TextDrawSetShadow(txt91,0);
TextDrawSetOutline(txt91,1);
TextDrawColor(txt91,COLOR_RED);
TimeTextForPlayer(a,txt91,6000);
GangZoneFlashForPlayer(a, gGangZone[46], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar46[TEAM_EFC] =1; Attackers46= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar46[TEAM_GOLFERS] =1; Attackers46= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar46[TEAM_GUARDS] =1; Attackers46= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar46[TEAM_TRIADS] =1; Attackers46= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar46[TEAM_COPS] =1; Attackers46= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar46[TEAM_MOBSTERS] =1; Attackers46= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar46[TEAM_WORKERS] =1; Attackers46= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar46[TEAM_MECHANICS] =1; Attackers46= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t46],teamName[turfOwner[T_t46]]);
new Text:txt92 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt92, 0);
TextDrawSetShadow(txt92,0);
TextDrawSetOutline(txt92,1);
TextDrawColor(txt92,0xDFDFDFFF);
TimeTextForPlayer(a,txt92,6000);
GangZoneFlashForPlayer(a, gGangZone[46], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[46], COLOR_FLASH2); }
}
SetTimer("Turf46TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[46]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills46[b] =0; Turf46Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf47Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t47]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf47Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t47]) {
GangInWar47[turfOwner[T_t47]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t47]);
new Text:txt93 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt93, 0);
TextDrawSetShadow(txt93,0);
TextDrawSetOutline(txt93,1);
TextDrawColor(txt93,COLOR_RED);
TimeTextForPlayer(a,txt93,6000);
GangZoneFlashForPlayer(a, gGangZone[47], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar47[TEAM_EFC] =1; Attackers47= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar47[TEAM_GOLFERS] =1; Attackers47= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar47[TEAM_GUARDS] =1; Attackers47= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar47[TEAM_TRIADS] =1; Attackers47= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar47[TEAM_COPS] =1; Attackers47= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar47[TEAM_MOBSTERS] =1; Attackers47= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar47[TEAM_WORKERS] =1; Attackers47= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar47[TEAM_MECHANICS] =1; Attackers47= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t47],teamName[turfOwner[T_t47]]);
new Text:txt94 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt94, 0);
TextDrawSetShadow(txt94,0);
TextDrawSetOutline(txt94,1);
TextDrawColor(txt94,0xDFDFDFFF);
TimeTextForPlayer(a,txt94,6000);
GangZoneFlashForPlayer(a, gGangZone[47], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[47], COLOR_FLASH2); }
}
SetTimer("Turf47TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[47]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills47[b] =0; Turf47Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf48Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t48]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf48Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t48]) {
GangInWar48[turfOwner[T_t48]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t48]);
new Text:txt95 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt95, 0);
TextDrawSetShadow(txt95,0);
TextDrawSetOutline(txt95,1);
TextDrawColor(txt95,COLOR_RED);
TimeTextForPlayer(a,txt95,6000);
GangZoneFlashForPlayer(a, gGangZone[48], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar48[TEAM_EFC] =1; Attackers48= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar48[TEAM_GOLFERS] =1; Attackers48= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar48[TEAM_GUARDS] =1; Attackers48= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar48[TEAM_TRIADS] =1; Attackers48= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar48[TEAM_COPS] =1; Attackers48= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar48[TEAM_MOBSTERS] =1; Attackers48= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar48[TEAM_WORKERS] =1; Attackers48= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar48[TEAM_MECHANICS] =1; Attackers48= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t48],teamName[turfOwner[T_t48]]);
new Text:txt96 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt96, 0);
TextDrawSetShadow(txt96,0);
TextDrawSetOutline(txt96,1);
TextDrawColor(txt96,0xDFDFDFFF);
TimeTextForPlayer(a,txt96,6000);
GangZoneFlashForPlayer(a, gGangZone[48], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[48], COLOR_FLASH2); }
}
SetTimer("Turf48TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[48]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills48[b] =0; Turf48Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf49Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t49]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf49Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t49]) {
GangInWar49[turfOwner[T_t49]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t49]);
new Text:txt97 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt97, 0);
TextDrawSetShadow(txt97,0);
TextDrawSetOutline(txt97,1);
TextDrawColor(txt97,COLOR_RED);
TimeTextForPlayer(a,txt97,6000);
GangZoneFlashForPlayer(a, gGangZone[49], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar49[TEAM_EFC] =1; Attackers49= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar49[TEAM_GOLFERS] =1; Attackers49= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar49[TEAM_GUARDS] =1; Attackers49= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar49[TEAM_TRIADS] =1; Attackers49= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar49[TEAM_COPS] =1; Attackers49= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar49[TEAM_MOBSTERS] =1; Attackers49= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar49[TEAM_WORKERS] =1; Attackers49= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar49[TEAM_MECHANICS] =1; Attackers49= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t49],teamName[turfOwner[T_t49]]);
new Text:txt98 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt98, 0);
TextDrawSetShadow(txt98,0);
TextDrawSetOutline(txt98,1);
TextDrawColor(txt98,0xDFDFDFFF);
TimeTextForPlayer(a,txt98,6000);
GangZoneFlashForPlayer(a, gGangZone[49], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[49], COLOR_FLASH2); }
}
SetTimer("Turf49TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[49]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills49[b] =0; Turf49Kills[b] =0; }
return 1;
}
//-------------------------------
stock Turf50Attack(killerid)
{
if(gTeam[killerid] == turfOwner[T_t50]) {
for (new b=0; b<MAX_TEAMS; b++) { Turf50Kills[b] =0; }
return 1;
}
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t50]) {
GangInWar50[turfOwner[T_t50]] =1;
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have attacked the ~y~%s turf!",teamName[gTeam[killerid]],TurfAreaNames[T_t50]);
new Text:txt99 = TextDrawCreate(200.0, 370.0, msg1);
TextDrawFont(txt99, 0);
TextDrawSetShadow(txt99,0);
TextDrawSetOutline(txt99,1);
TextDrawColor(txt99,COLOR_RED);
TimeTextForPlayer(a,txt99,6000);
GangZoneFlashForPlayer(a, gGangZone[50], COLOR_FLASH);
}
else if(gTeam[a] == gTeam[killerid]) {
if(gTeam[killerid] == TEAM_EFC) { GangInWar50[TEAM_EFC] =1; Attackers50= TEAM_EFC; }
if(gTeam[killerid] == TEAM_GOLFERS) { GangInWar50[TEAM_GOLFERS] =1; Attackers50= TEAM_GOLFERS; }
if(gTeam[killerid] == TEAM_GUARDS) { GangInWar50[TEAM_GUARDS] =1; Attackers50= TEAM_GUARDS; }
if(gTeam[killerid] == TEAM_TRIADS) { GangInWar50[TEAM_TRIADS] =1; Attackers50= TEAM_TRIADS; }
if(gTeam[killerid] == TEAM_COPS) { GangInWar50[TEAM_COPS] =1; Attackers50= TEAM_COPS; }
if(gTeam[killerid] == TEAM_MOBSTERS) { GangInWar50[TEAM_MOBSTERS] =1; Attackers50= TEAM_MOBSTERS; }
if(gTeam[killerid] == TEAM_WORKERS) { GangInWar50[TEAM_WORKERS] =1; Attackers50= TEAM_WORKERS; }
if(gTeam[killerid] == TEAM_MECHANICS) { GangInWar50[TEAM_MECHANICS] =1; Attackers50= TEAM_MECHANICS; }
new msg2[256];
format(msg2,sizeof(msg2), "~w~We have attacked the ~y~%s ~w~turf owned by the ~r~%s",TurfAreaNames[T_t50],teamName[turfOwner[T_t50]]);
new Text:txt100 = TextDrawCreate(200.0, 385.0, msg2);
TextDrawFont(txt100, 0);
TextDrawSetShadow(txt100,0);
TextDrawSetOutline(txt100,1);
TextDrawColor(txt100,0xDFDFDFFF);
TimeTextForPlayer(a,txt100,6000);
GangZoneFlashForPlayer(a, gGangZone[50], COLOR_FLASH);
} else { GangZoneFlashForPlayer(a, gGangZone[50], COLOR_FLASH2); }
}
SetTimer("Turf50TakeOver", ATTACK_TIME, 0);
Attack[gGangZone[50]] = 1;
for(new b=0; b<MAX_TEAMS; b++) { AttackKills50[b] =0; Turf50Kills[b] =0; }
return 1;
}
//==============================================================================
public Turf1TakeOver()
{
GangZoneStopFlashForAll(gGangZone[1]), Attack[gGangZone[1]] = 0;
if(AttackKills1[Attackers1] > AttackKills1[turfOwner[T_t1]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t1]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers1],TurfAreaNames[T_t1]);
new Text:txt111 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt111, 0);
TextDrawSetShadow(txt111,0);
TextDrawSetOutline(txt111,1);
TextDrawColor(txt111,COLOR_RED);
TimeTextForPlayer(a,txt111,6000);
}
if(gTeam[a] == Attackers1) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t1]],TurfAreaNames[T_t1]);
new Text:txt112 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt112, 0);
TextDrawSetShadow(txt112,0);
TextDrawSetOutline(txt112,1);
TextDrawColor(txt112,COLOR_GREEN);
TimeTextForPlayer(a,txt112,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t1]= Attackers1;
GangZoneShowForAll(gGangZone[1], teamColors[Attackers1]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills1[a] =0, GangInWar1[a] =0, Turf1Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t1]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t1]);
new Text:txt113 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt113, 0);
TextDrawSetShadow(txt113,0);
TextDrawSetOutline(txt113,1);
TextDrawColor(txt113,COLOR_GREEN);
TimeTextForPlayer(a,txt113,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers1) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t1]],TurfAreaNames[T_t1]);
new Text:txt114 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt114, 0);
TextDrawSetShadow(txt114,0);
TextDrawSetOutline(txt114,1);
TextDrawColor(txt114,COLOR_RED);
TimeTextForPlayer(a,txt114,6000);
}
}
GangZoneShowForAll(gGangZone[1], teamColors[turfOwner[T_t1]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills1[a] =0, GangInWar1[a] =0, Turf1Kills[a] =0;}
}
}
//--------------------------
public Turf2TakeOver()
{
GangZoneStopFlashForAll(gGangZone[2]), Attack[gGangZone[2]] = 0;
if(AttackKills2[Attackers2] > AttackKills2[turfOwner[T_t2]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t2]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers2],TurfAreaNames[T_t2]);
new Text:txt115 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt115, 0);
TextDrawSetShadow(txt115,0);
TextDrawSetOutline(txt115,1);
TextDrawColor(txt115,COLOR_RED);
TimeTextForPlayer(a,txt115,6000);
}
if(gTeam[a] == Attackers2) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t2]],TurfAreaNames[T_t2]);
new Text:txt116 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt116, 0);
TextDrawSetShadow(txt116,0);
TextDrawSetOutline(txt116,1);
TextDrawColor(txt116,COLOR_GREEN);
TimeTextForPlayer(a,txt116,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t2]= Attackers2;
GangZoneShowForAll(gGangZone[2], teamColors[Attackers2]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills2[a] =0, GangInWar2[a] =0, Turf2Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t2]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t2]);
new Text:txt117 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt117, 0);
TextDrawSetShadow(txt117,0);
TextDrawSetOutline(txt117,1);
TextDrawColor(txt117,COLOR_GREEN);
TimeTextForPlayer(a,txt117,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers2) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t2]],TurfAreaNames[T_t2]);
new Text:txt118 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt118, 0);
TextDrawSetShadow(txt118,0);
TextDrawSetOutline(txt118,1);
TextDrawColor(txt118,COLOR_RED);
TimeTextForPlayer(a,txt118,6000);
}
}
GangZoneShowForAll(gGangZone[2], teamColors[turfOwner[T_t2]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills2[a] =0, GangInWar2[a] =0, Turf2Kills[a] =0;}
}
}
//--------------------------
public Turf3TakeOver()
{
GangZoneStopFlashForAll(gGangZone[3]), Attack[gGangZone[3]] = 0;
if(AttackKills3[Attackers3] > AttackKills3[turfOwner[T_t3]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t3]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers3],TurfAreaNames[T_t3]);
new Text:txt119 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt119, 0);
TextDrawSetShadow(txt119,0);
TextDrawSetOutline(txt119,1);
TextDrawColor(txt119,COLOR_RED);
TimeTextForPlayer(a,txt119,6000);
}
if(gTeam[a] == Attackers3) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t3]],TurfAreaNames[T_t3]);
new Text:txt120 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt120, 0);
TextDrawSetShadow(txt120,0);
TextDrawSetOutline(txt120,1);
TextDrawColor(txt120,COLOR_GREEN);
TimeTextForPlayer(a,txt120,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t3]= Attackers3;
GangZoneShowForAll(gGangZone[3], teamColors[Attackers3]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills3[a] =0, GangInWar3[a] =0, Turf3Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t3]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t3]);
new Text:txt121 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt121, 0);
TextDrawSetShadow(txt121,0);
TextDrawSetOutline(txt121,1);
TextDrawColor(txt121,COLOR_GREEN);
TimeTextForPlayer(a,txt121,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers3) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t3]],TurfAreaNames[T_t3]);
new Text:txt122 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt122, 0);
TextDrawSetShadow(txt122,0);
TextDrawSetOutline(txt122,1);
TextDrawColor(txt122,COLOR_RED);
TimeTextForPlayer(a,txt122,6000);
}
}
GangZoneShowForAll(gGangZone[3], teamColors[turfOwner[T_t3]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills3[a] =0, GangInWar3[a] =0, Turf3Kills[a] =0;}
}
}
//--------------------------
public Turf4TakeOver()
{
GangZoneStopFlashForAll(gGangZone[4]), Attack[gGangZone[4]] = 0;
if(AttackKills4[Attackers4] > AttackKills4[turfOwner[T_t4]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t4]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers4],TurfAreaNames[T_t4]);
new Text:txt123 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt123, 0);
TextDrawSetShadow(txt123,0);
TextDrawSetOutline(txt123,1);
TextDrawColor(txt123,COLOR_RED);
TimeTextForPlayer(a,txt123,6000);
}
if(gTeam[a] == Attackers4) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t4]],TurfAreaNames[T_t4]);
new Text:txt124 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt124, 0);
TextDrawSetShadow(txt124,0);
TextDrawSetOutline(txt124,1);
TextDrawColor(txt124,COLOR_GREEN);
TimeTextForPlayer(a,txt124,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t4]= Attackers4;
GangZoneShowForAll(gGangZone[4], teamColors[Attackers4]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills4[a] =0, GangInWar4[a] =0, Turf4Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t4]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t4]);
new Text:txt125 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt125, 0);
TextDrawSetShadow(txt125,0);
TextDrawSetOutline(txt125,1);
TextDrawColor(txt125,COLOR_GREEN);
TimeTextForPlayer(a,txt125,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers4) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t4]],TurfAreaNames[T_t4]);
new Text:txt126 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt126, 0);
TextDrawSetShadow(txt126,0);
TextDrawSetOutline(txt126,1);
TextDrawColor(txt126,COLOR_RED);
TimeTextForPlayer(a,txt126,6000);
}
}
GangZoneShowForAll(gGangZone[4], teamColors[turfOwner[T_t4]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills4[a] =0, GangInWar4[a] =0, Turf4Kills[a] =0;}
}
}
//--------------------------
public Turf5TakeOver()
{
GangZoneStopFlashForAll(gGangZone[5]), Attack[gGangZone[5]] = 0;
if(AttackKills5[Attackers5] > AttackKills5[turfOwner[T_t5]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t5]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers5],TurfAreaNames[T_t5]);
new Text:txt127 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt127, 0);
TextDrawSetShadow(txt127,0);
TextDrawSetOutline(txt127,1);
TextDrawColor(txt127,COLOR_RED);
TimeTextForPlayer(a,txt127,6000);
}
if(gTeam[a] == Attackers5) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t5]],TurfAreaNames[T_t5]);
new Text:txt128 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt128, 0);
TextDrawSetShadow(txt128,0);
TextDrawSetOutline(txt128,1);
TextDrawColor(txt128,COLOR_GREEN);
TimeTextForPlayer(a,txt128,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t5]= Attackers5;
GangZoneShowForAll(gGangZone[5], teamColors[Attackers5]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills5[a] =0, GangInWar5[a] =0, Turf5Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t5]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t5]);
new Text:txt129 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt129, 0);
TextDrawSetShadow(txt129,0);
TextDrawSetOutline(txt129,1);
TextDrawColor(txt129,COLOR_GREEN);
TimeTextForPlayer(a,txt129,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers5) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t5]],TurfAreaNames[T_t5]);
new Text:txt130 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt130, 0);
TextDrawSetShadow(txt130,0);
TextDrawSetOutline(txt130,1);
TextDrawColor(txt130,COLOR_RED);
TimeTextForPlayer(a,txt130,6000);
}
}
GangZoneShowForAll(gGangZone[5], teamColors[turfOwner[T_t5]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills5[a] =0, GangInWar5[a] =0, Turf5Kills[a] =0;}
}
}
//--------------------------
public Turf6TakeOver()
{
GangZoneStopFlashForAll(gGangZone[6]), Attack[gGangZone[6]] = 0;
if(AttackKills6[Attackers6] > AttackKills6[turfOwner[T_t6]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t6]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers6],TurfAreaNames[T_t6]);
new Text:txt131 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt131, 0);
TextDrawSetShadow(txt131,0);
TextDrawSetOutline(txt131,1);
TextDrawColor(txt131,COLOR_RED);
TimeTextForPlayer(a,txt131,6000);
}
if(gTeam[a] == Attackers6) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t6]],TurfAreaNames[T_t6]);
new Text:txt132 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt132, 0);
TextDrawSetShadow(txt132,0);
TextDrawSetOutline(txt132,1);
TextDrawColor(txt132,COLOR_GREEN);
TimeTextForPlayer(a,txt132,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t6]= Attackers6;
GangZoneShowForAll(gGangZone[6], teamColors[Attackers6]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills6[a] =0, GangInWar6[a] =0, Turf6Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t6]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t6]);
new Text:txt133 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt133, 0);
TextDrawSetShadow(txt133,0);
TextDrawSetOutline(txt133,1);
TextDrawColor(txt133,COLOR_GREEN);
TimeTextForPlayer(a,txt133,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers6) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t6]],TurfAreaNames[T_t6]);
new Text:txt134 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt134, 0);
TextDrawSetShadow(txt134,0);
TextDrawSetOutline(txt134,1);
TextDrawColor(txt134,COLOR_RED);
TimeTextForPlayer(a,txt134,6000);
}
}
GangZoneShowForAll(gGangZone[6], teamColors[turfOwner[T_t6]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills6[a] =0, GangInWar6[a] =0, Turf6Kills[a] =0;}
}
}
//--------------------------
public Turf7TakeOver()
{
GangZoneStopFlashForAll(gGangZone[7]), Attack[gGangZone[7]] = 0;
if(AttackKills7[Attackers7] > AttackKills7[turfOwner[T_t7]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t7]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers7],TurfAreaNames[T_t7]);
new Text:txt135 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt135, 0);
TextDrawSetShadow(txt135,0);
TextDrawSetOutline(txt135,1);
TextDrawColor(txt135,COLOR_RED);
TimeTextForPlayer(a,txt135,6000);
}
if(gTeam[a] == Attackers7) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t7]],TurfAreaNames[T_t7]);
new Text:txt136 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt136, 0);
TextDrawSetShadow(txt136,0);
TextDrawSetOutline(txt136,1);
TextDrawColor(txt136,COLOR_GREEN);
TimeTextForPlayer(a,txt136,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t7]= Attackers7;
GangZoneShowForAll(gGangZone[7], teamColors[Attackers7]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills7[a] =0, GangInWar7[a] =0, Turf7Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t7]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t7]);
new Text:txt137 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt137, 0);
TextDrawSetShadow(txt137,0);
TextDrawSetOutline(txt137,1);
TextDrawColor(txt137,COLOR_GREEN);
TimeTextForPlayer(a,txt137,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers7) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t7]],TurfAreaNames[T_t7]);
new Text:txt138 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt138, 0);
TextDrawSetShadow(txt138,0);
TextDrawSetOutline(txt138,1);
TextDrawColor(txt138,COLOR_RED);
TimeTextForPlayer(a,txt138,6000);
}
}
GangZoneShowForAll(gGangZone[7], teamColors[turfOwner[T_t7]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills7[a] =0, GangInWar7[a] =0, Turf7Kills[a] =0;}
}
}
//--------------------------
public Turf8TakeOver()
{
GangZoneStopFlashForAll(gGangZone[8]), Attack[gGangZone[8]] = 0;
if(AttackKills8[Attackers8] > AttackKills8[turfOwner[T_t8]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t8]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers8],TurfAreaNames[T_t8]);
new Text:txt139 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt139, 0);
TextDrawSetShadow(txt139,0);
TextDrawSetOutline(txt139,1);
TextDrawColor(txt139,COLOR_RED);
TimeTextForPlayer(a,txt139,6000);
}
if(gTeam[a] == Attackers8) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t8]],TurfAreaNames[T_t8]);
new Text:txt140 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt140, 0);
TextDrawSetShadow(txt140,0);
TextDrawSetOutline(txt140,1);
TextDrawColor(txt140,COLOR_GREEN);
TimeTextForPlayer(a,txt140,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t8]= Attackers8;
GangZoneShowForAll(gGangZone[8], teamColors[Attackers8]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills8[a] =0, GangInWar8[a] =0, Turf8Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t8]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t8]);
new Text:txt141 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt141, 0);
TextDrawSetShadow(txt141,0);
TextDrawSetOutline(txt141,1);
TextDrawColor(txt141,COLOR_GREEN);
TimeTextForPlayer(a,txt141,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers8) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t8]],TurfAreaNames[T_t8]);
new Text:txt142 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt142, 0);
TextDrawSetShadow(txt142,0);
TextDrawSetOutline(txt142,1);
TextDrawColor(txt142,COLOR_RED);
TimeTextForPlayer(a,txt142,6000);
}
}
GangZoneShowForAll(gGangZone[8], teamColors[turfOwner[T_t8]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills8[a] =0, GangInWar8[a] =0, Turf8Kills[a] =0;}
}
}
//--------------------------
public Turf9TakeOver()
{
GangZoneStopFlashForAll(gGangZone[9]), Attack[gGangZone[9]] = 0;
if(AttackKills9[Attackers9] > AttackKills9[turfOwner[T_t9]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t9]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers9],TurfAreaNames[T_t9]);
new Text:txt143 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt143, 0);
TextDrawSetShadow(txt143,0);
TextDrawSetOutline(txt143,1);
TextDrawColor(txt143,COLOR_RED);
TimeTextForPlayer(a,txt143,6000);
}
if(gTeam[a] == Attackers9) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t9]],TurfAreaNames[T_t9]);
new Text:txt144 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt144, 0);
TextDrawSetShadow(txt144,0);
TextDrawSetOutline(txt144,1);
TextDrawColor(txt144,COLOR_GREEN);
TimeTextForPlayer(a,txt144,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t9]= Attackers9;
GangZoneShowForAll(gGangZone[9], teamColors[Attackers9]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills9[a] =0, GangInWar9[a] =0, Turf9Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t9]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t9]);
new Text:txt145 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt145, 0);
TextDrawSetShadow(txt145,0);
TextDrawSetOutline(txt145,1);
TextDrawColor(txt145,COLOR_GREEN);
TimeTextForPlayer(a,txt145,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers9) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t9]],TurfAreaNames[T_t9]);
new Text:txt146 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt146, 0);
TextDrawSetShadow(txt146,0);
TextDrawSetOutline(txt146,1);
TextDrawColor(txt146,COLOR_RED);
TimeTextForPlayer(a,txt146,6000);
}
}
GangZoneShowForAll(gGangZone[9], teamColors[turfOwner[T_t9]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills9[a] =0, GangInWar9[a] =0, Turf9Kills[a] =0;}
}
}
//--------------------------
public Turf10TakeOver()
{
GangZoneStopFlashForAll(gGangZone[10]), Attack[gGangZone[10]] = 0;
if(AttackKills10[Attackers10] > AttackKills10[turfOwner[T_t10]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t10]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers10],TurfAreaNames[T_t10]);
new Text:txt147 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt147, 0);
TextDrawSetShadow(txt147,0);
TextDrawSetOutline(txt147,1);
TextDrawColor(txt147,COLOR_RED);
TimeTextForPlayer(a,txt147,6000);
}
if(gTeam[a] == Attackers10) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t10]],TurfAreaNames[T_t10]);
new Text:txt148 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt148, 0);
TextDrawSetShadow(txt148,0);
TextDrawSetOutline(txt148,1);
TextDrawColor(txt148,COLOR_GREEN);
TimeTextForPlayer(a,txt148,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t10]= Attackers10;
GangZoneShowForAll(gGangZone[10], teamColors[Attackers10]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills10[a] =0, GangInWar10[a] =0, Turf10Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t10]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t10]);
new Text:txt149 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt149, 0);
TextDrawSetShadow(txt149,0);
TextDrawSetOutline(txt149,1);
TextDrawColor(txt149,COLOR_GREEN);
TimeTextForPlayer(a,txt149,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers10) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t10]],TurfAreaNames[T_t10]);
new Text:txt150 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt150, 0);
TextDrawSetShadow(txt150,0);
TextDrawSetOutline(txt150,1);
TextDrawColor(txt150,COLOR_RED);
TimeTextForPlayer(a,txt150,6000);
}
}
GangZoneShowForAll(gGangZone[10], teamColors[turfOwner[T_t10]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills10[a] =0, GangInWar10[a] =0, Turf10Kills[a] =0;}
}
}
//--------------------------
public Turf11TakeOver()
{
GangZoneStopFlashForAll(gGangZone[11]), Attack[gGangZone[11]] = 0;
if(AttackKills11[Attackers11] > AttackKills11[turfOwner[T_t11]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t11]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers11],TurfAreaNames[T_t11]);
new Text:txt151 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt151, 0);
TextDrawSetShadow(txt151,0);
TextDrawSetOutline(txt151,1);
TextDrawColor(txt151,COLOR_RED);
TimeTextForPlayer(a,txt151,6000);
}
if(gTeam[a] == Attackers11) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t11]],TurfAreaNames[T_t11]);
new Text:txt152 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt152, 0);
TextDrawSetShadow(txt152,0);
TextDrawSetOutline(txt152,1);
TextDrawColor(txt152,COLOR_GREEN);
TimeTextForPlayer(a,txt152,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t11]= Attackers11;
GangZoneShowForAll(gGangZone[11], teamColors[Attackers11]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills11[a] =0, GangInWar11[a] =0, Turf11Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t11]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t11]);
new Text:txt153 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt153, 0);
TextDrawSetShadow(txt153,0);
TextDrawSetOutline(txt153,1);
TextDrawColor(txt153,COLOR_GREEN);
TimeTextForPlayer(a,txt153,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers11) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t11]],TurfAreaNames[T_t11]);
new Text:txt154 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt154, 0);
TextDrawSetShadow(txt154,0);
TextDrawSetOutline(txt154,1);
TextDrawColor(txt154,COLOR_RED);
TimeTextForPlayer(a,txt154,6000);
}
}
GangZoneShowForAll(gGangZone[11], teamColors[turfOwner[T_t11]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills11[a] =0, GangInWar11[a] =0, Turf11Kills[a] =0;}
}
}
//--------------------------
public Turf12TakeOver()
{
GangZoneStopFlashForAll(gGangZone[12]), Attack[gGangZone[12]] = 0;
if(AttackKills12[Attackers12] > AttackKills12[turfOwner[T_t12]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t12]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers12],TurfAreaNames[T_t12]);
new Text:txt155 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt155, 0);
TextDrawSetShadow(txt155,0);
TextDrawSetOutline(txt155,1);
TextDrawColor(txt155,COLOR_RED);
TimeTextForPlayer(a,txt155,6000);
}
if(gTeam[a] == Attackers12) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t12]],TurfAreaNames[T_t12]);
new Text:txt156 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt156, 0);
TextDrawSetShadow(txt156,0);
TextDrawSetOutline(txt156,1);
TextDrawColor(txt156,COLOR_GREEN);
TimeTextForPlayer(a,txt156,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t12]= Attackers12;
GangZoneShowForAll(gGangZone[12], teamColors[Attackers12]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills12[a] =0, GangInWar12[a] =0, Turf12Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t12]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t12]);
new Text:txt157 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt157, 0);
TextDrawSetShadow(txt157,0);
TextDrawSetOutline(txt157,1);
TextDrawColor(txt157,COLOR_GREEN);
TimeTextForPlayer(a,txt157,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers12) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t12]],TurfAreaNames[T_t12]);
new Text:txt158 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt158, 0);
TextDrawSetShadow(txt158,0);
TextDrawSetOutline(txt158,1);
TextDrawColor(txt158,COLOR_RED);
TimeTextForPlayer(a,txt158,6000);
}
}
GangZoneShowForAll(gGangZone[12], teamColors[turfOwner[T_t12]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills12[a] =0, GangInWar12[a] =0, Turf12Kills[a] =0;}
}
}
//--------------------------
public Turf13TakeOver()
{
GangZoneStopFlashForAll(gGangZone[13]), Attack[gGangZone[13]] = 0;
if(AttackKills13[Attackers13] > AttackKills13[turfOwner[T_t13]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t13]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers13],TurfAreaNames[T_t13]);
new Text:txt159 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt159, 0);
TextDrawSetShadow(txt159,0);
TextDrawSetOutline(txt159,1);
TextDrawColor(txt159,COLOR_RED);
TimeTextForPlayer(a,txt159,6000);
}
if(gTeam[a] == Attackers13) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t13]],TurfAreaNames[T_t13]);
new Text:txt160 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt160, 0);
TextDrawSetShadow(txt160,0);
TextDrawSetOutline(txt160,1);
TextDrawColor(txt160,COLOR_GREEN);
TimeTextForPlayer(a,txt160,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t13]= Attackers13;
GangZoneShowForAll(gGangZone[13], teamColors[Attackers13]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills13[a] =0, GangInWar13[a] =0, Turf13Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t13]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t13]);
new Text:txt161 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt161, 0);
TextDrawSetShadow(txt161,0);
TextDrawSetOutline(txt161,1);
TextDrawColor(txt161,COLOR_GREEN);
TimeTextForPlayer(a,txt161,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers13) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t13]],TurfAreaNames[T_t13]);
new Text:txt162 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt162, 0);
TextDrawSetShadow(txt162,0);
TextDrawSetOutline(txt162,1);
TextDrawColor(txt162,COLOR_RED);
TimeTextForPlayer(a,txt162,6000);
}
}
GangZoneShowForAll(gGangZone[13], teamColors[turfOwner[T_t13]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills13[a] =0, GangInWar13[a] =0, Turf13Kills[a] =0;}
}
}
//--------------------------
public Turf14TakeOver()
{
GangZoneStopFlashForAll(gGangZone[14]), Attack[gGangZone[14]] = 0;
if(AttackKills14[Attackers14] > AttackKills14[turfOwner[T_t14]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t14]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers14],TurfAreaNames[T_t14]);
new Text:txt163 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt163, 0);
TextDrawSetShadow(txt163,0);
TextDrawSetOutline(txt163,1);
TextDrawColor(txt163,COLOR_RED);
TimeTextForPlayer(a,txt163,6000);
}
if(gTeam[a] == Attackers14) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t14]],TurfAreaNames[T_t14]);
new Text:txt164 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt164, 0);
TextDrawSetShadow(txt164,0);
TextDrawSetOutline(txt164,1);
TextDrawColor(txt164,COLOR_GREEN);
TimeTextForPlayer(a,txt164,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t14]= Attackers14;
GangZoneShowForAll(gGangZone[14], teamColors[Attackers14]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills14[a] =0, GangInWar14[a] =0, Turf14Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t14]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t14]);
new Text:txt165 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt165, 0);
TextDrawSetShadow(txt165,0);
TextDrawSetOutline(txt165,1);
TextDrawColor(txt165,COLOR_GREEN);
TimeTextForPlayer(a,txt165,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers14) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t14]],TurfAreaNames[T_t14]);
new Text:txt166 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt166, 0);
TextDrawSetShadow(txt166,0);
TextDrawSetOutline(txt166,1);
TextDrawColor(txt166,COLOR_RED);
TimeTextForPlayer(a,txt166,6000);
}
}
GangZoneShowForAll(gGangZone[14], teamColors[turfOwner[T_t14]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills14[a] =0, GangInWar14[a] =0, Turf14Kills[a] =0;}
}
}
//--------------------------
public Turf15TakeOver()
{
GangZoneStopFlashForAll(gGangZone[15]), Attack[gGangZone[15]] = 0;
if(AttackKills15[Attackers15] > AttackKills15[turfOwner[T_t15]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t15]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers15],TurfAreaNames[T_t15]);
new Text:txt167 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt167, 0);
TextDrawSetShadow(txt167,0);
TextDrawSetOutline(txt167,1);
TextDrawColor(txt167,COLOR_RED);
TimeTextForPlayer(a,txt167,6000);
}
if(gTeam[a] == Attackers15) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t15]],TurfAreaNames[T_t15]);
new Text:txt168 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt168, 0);
TextDrawSetShadow(txt168,0);
TextDrawSetOutline(txt168,1);
TextDrawColor(txt168,COLOR_GREEN);
TimeTextForPlayer(a,txt168,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t15]= Attackers15;
GangZoneShowForAll(gGangZone[15], teamColors[Attackers15]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills15[a] =0, GangInWar15[a] =0, Turf15Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t15]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t15]);
new Text:txt169 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt169, 0);
TextDrawSetShadow(txt169,0);
TextDrawSetOutline(txt169,1);
TextDrawColor(txt169,COLOR_GREEN);
TimeTextForPlayer(a,txt169,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers15) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t15]],TurfAreaNames[T_t15]);
new Text:txt170 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt170, 0);
TextDrawSetShadow(txt170,0);
TextDrawSetOutline(txt170,1);
TextDrawColor(txt170,COLOR_RED);
TimeTextForPlayer(a,txt170,6000);
}
}
GangZoneShowForAll(gGangZone[15], teamColors[turfOwner[T_t15]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills15[a] =0, GangInWar15[a] =0, Turf15Kills[a] =0;}
}
}
//--------------------------
public Turf16TakeOver()
{
GangZoneStopFlashForAll(gGangZone[16]), Attack[gGangZone[16]] = 0;
if(AttackKills16[Attackers16] > AttackKills16[turfOwner[T_t16]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t16]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers16],TurfAreaNames[T_t16]);
new Text:txt171 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt171, 0);
TextDrawSetShadow(txt171,0);
TextDrawSetOutline(txt171,1);
TextDrawColor(txt171,COLOR_RED);
TimeTextForPlayer(a,txt171,6000);
}
if(gTeam[a] == Attackers16) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t16]],TurfAreaNames[T_t16]);
new Text:txt172 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt172, 0);
TextDrawSetShadow(txt172,0);
TextDrawSetOutline(txt172,1);
TextDrawColor(txt172,COLOR_GREEN);
TimeTextForPlayer(a,txt172,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t16]= Attackers16;
GangZoneShowForAll(gGangZone[16], teamColors[Attackers16]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills16[a] =0, GangInWar16[a] =0, Turf16Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t16]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t16]);
new Text:txt173 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt173, 0);
TextDrawSetShadow(txt173,0);
TextDrawSetOutline(txt173,1);
TextDrawColor(txt173,COLOR_GREEN);
TimeTextForPlayer(a,txt173,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers16) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t16]],TurfAreaNames[T_t16]);
new Text:txt174 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt174, 0);
TextDrawSetShadow(txt174,0);
TextDrawSetOutline(txt174,1);
TextDrawColor(txt174,COLOR_RED);
TimeTextForPlayer(a,txt174,6000);
}
}
GangZoneShowForAll(gGangZone[16], teamColors[turfOwner[T_t16]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills16[a] =0, GangInWar16[a] =0, Turf16Kills[a] =0;}
}
}
//--------------------------
public Turf17TakeOver()
{
GangZoneStopFlashForAll(gGangZone[17]), Attack[gGangZone[17]] = 0;
if(AttackKills17[Attackers17] > AttackKills17[turfOwner[T_t17]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t17]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers17],TurfAreaNames[T_t17]);
new Text:txt175 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt175, 0);
TextDrawSetShadow(txt175,0);
TextDrawSetOutline(txt175,1);
TextDrawColor(txt175,COLOR_RED);
TimeTextForPlayer(a,txt175,6000);
}
if(gTeam[a] == Attackers17) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t17]],TurfAreaNames[T_t17]);
new Text:txt176 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt176, 0);
TextDrawSetShadow(txt176,0);
TextDrawSetOutline(txt176,1);
TextDrawColor(txt176,COLOR_GREEN);
TimeTextForPlayer(a,txt176,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t17]= Attackers17;
GangZoneShowForAll(gGangZone[17], teamColors[Attackers17]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills17[a] =0, GangInWar17[a] =0, Turf17Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t17]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t17]);
new Text:txt177 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt177, 0);
TextDrawSetShadow(txt177,0);
TextDrawSetOutline(txt177,1);
TextDrawColor(txt177,COLOR_GREEN);
TimeTextForPlayer(a,txt177,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers17) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t17]],TurfAreaNames[T_t17]);
new Text:txt178 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt178, 0);
TextDrawSetShadow(txt178,0);
TextDrawSetOutline(txt178,1);
TextDrawColor(txt178,COLOR_RED);
TimeTextForPlayer(a,txt178,6000);
}
}
GangZoneShowForAll(gGangZone[17], teamColors[turfOwner[T_t17]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills17[a] =0, GangInWar17[a] =0, Turf17Kills[a] =0;}
}
}
//--------------------------
public Turf18TakeOver()
{
GangZoneStopFlashForAll(gGangZone[18]), Attack[gGangZone[18]] = 0;
if(AttackKills18[Attackers18] > AttackKills18[turfOwner[T_t18]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t18]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers18],TurfAreaNames[T_t18]);
new Text:txt179 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt179, 0);
TextDrawSetShadow(txt179,0);
TextDrawSetOutline(txt179,1);
TextDrawColor(txt179,COLOR_RED);
TimeTextForPlayer(a,txt179,6000);
}
if(gTeam[a] == Attackers18) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t18]],TurfAreaNames[T_t18]);
new Text:txt180 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt180, 0);
TextDrawSetShadow(txt180,0);
TextDrawSetOutline(txt180,1);
TextDrawColor(txt180,COLOR_GREEN);
TimeTextForPlayer(a,txt180,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t18]= Attackers18;
GangZoneShowForAll(gGangZone[18], teamColors[Attackers18]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills18[a] =0, GangInWar18[a] =0, Turf18Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t18]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t18]);
new Text:txt181 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt181, 0);
TextDrawSetShadow(txt181,0);
TextDrawSetOutline(txt181,1);
TextDrawColor(txt181,COLOR_GREEN);
TimeTextForPlayer(a,txt181,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers18) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t18]],TurfAreaNames[T_t18]);
new Text:txt182 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt182, 0);
TextDrawSetShadow(txt182,0);
TextDrawSetOutline(txt182,1);
TextDrawColor(txt182,COLOR_RED);
TimeTextForPlayer(a,txt182,6000);
}
}
GangZoneShowForAll(gGangZone[18], teamColors[turfOwner[T_t18]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills18[a] =0, GangInWar18[a] =0, Turf18Kills[a] =0;}
}
}
//--------------------------
public Turf19TakeOver()
{
GangZoneStopFlashForAll(gGangZone[19]), Attack[gGangZone[19]] = 0;
if(AttackKills19[Attackers19] > AttackKills19[turfOwner[T_t19]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t19]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers19],TurfAreaNames[T_t19]);
new Text:txt183 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt183, 0);
TextDrawSetShadow(txt183,0);
TextDrawSetOutline(txt183,1);
TextDrawColor(txt183,COLOR_RED);
TimeTextForPlayer(a,txt183,6000);
}
if(gTeam[a] == Attackers19) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t19]],TurfAreaNames[T_t19]);
new Text:txt184 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt184, 0);
TextDrawSetShadow(txt184,0);
TextDrawSetOutline(txt184,1);
TextDrawColor(txt184,COLOR_GREEN);
TimeTextForPlayer(a,txt184,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t19]= Attackers19;
GangZoneShowForAll(gGangZone[19], teamColors[Attackers19]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills19[a] =0, GangInWar19[a] =0, Turf19Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t19]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t19]);
new Text:txt185 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt185, 0);
TextDrawSetShadow(txt185,0);
TextDrawSetOutline(txt185,1);
TextDrawColor(txt185,COLOR_GREEN);
TimeTextForPlayer(a,txt185,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers19) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t19]],TurfAreaNames[T_t19]);
new Text:txt186 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt186, 0);
TextDrawSetShadow(txt186,0);
TextDrawSetOutline(txt186,1);
TextDrawColor(txt186,COLOR_RED);
TimeTextForPlayer(a,txt186,6000);
}
}
GangZoneShowForAll(gGangZone[19], teamColors[turfOwner[T_t19]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills19[a] =0, GangInWar19[a] =0, Turf19Kills[a] =0;}
}
}
//--------------------------
public Turf20TakeOver()
{
GangZoneStopFlashForAll(gGangZone[20]), Attack[gGangZone[20]] = 0;
if(AttackKills20[Attackers20] > AttackKills20[turfOwner[T_t20]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t20]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers20],TurfAreaNames[T_t20]);
new Text:txt187 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt187, 0);
TextDrawSetShadow(txt187,0);
TextDrawSetOutline(txt187,1);
TextDrawColor(txt187,COLOR_RED);
TimeTextForPlayer(a,txt187,6000);
}
if(gTeam[a] == Attackers20) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t20]],TurfAreaNames[T_t20]);
new Text:txt188 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt188, 0);
TextDrawSetShadow(txt188,0);
TextDrawSetOutline(txt188,1);
TextDrawColor(txt188,COLOR_GREEN);
TimeTextForPlayer(a,txt188,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t20]= Attackers20;
GangZoneShowForAll(gGangZone[20], teamColors[Attackers20]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills20[a] =0, GangInWar20[a] =0, Turf20Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t20]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t20]);
new Text:txt189 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt189, 0);
TextDrawSetShadow(txt189,0);
TextDrawSetOutline(txt189,1);
TextDrawColor(txt189,COLOR_GREEN);
TimeTextForPlayer(a,txt189,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers20) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t20]],TurfAreaNames[T_t20]);
new Text:txt190 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt190, 0);
TextDrawSetShadow(txt190,0);
TextDrawSetOutline(txt190,1);
TextDrawColor(txt190,COLOR_RED);
TimeTextForPlayer(a,txt190,6000);
}
}
GangZoneShowForAll(gGangZone[20], teamColors[turfOwner[T_t20]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills20[a] =0, GangInWar20[a] =0, Turf20Kills[a] =0;}
}
}
//--------------------------
public Turf21TakeOver()
{
GangZoneStopFlashForAll(gGangZone[21]), Attack[gGangZone[21]] = 0;
if(AttackKills21[Attackers21] > AttackKills21[turfOwner[T_t21]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t21]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers21],TurfAreaNames[T_t21]);
new Text:txt191 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt191, 0);
TextDrawSetShadow(txt191,0);
TextDrawSetOutline(txt191,1);
TextDrawColor(txt191,COLOR_RED);
TimeTextForPlayer(a,txt191,6000);
}
if(gTeam[a] == Attackers21) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t21]],TurfAreaNames[T_t21]);
new Text:txt192 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt192, 0);
TextDrawSetShadow(txt192,0);
TextDrawSetOutline(txt192,1);
TextDrawColor(txt192,COLOR_GREEN);
TimeTextForPlayer(a,txt192,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t21]= Attackers21;
GangZoneShowForAll(gGangZone[21], teamColors[Attackers21]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills21[a] =0, GangInWar21[a] =0, Turf21Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t21]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t21]);
new Text:txt193 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt193, 0);
TextDrawSetShadow(txt193,0);
TextDrawSetOutline(txt193,1);
TextDrawColor(txt193,COLOR_GREEN);
TimeTextForPlayer(a,txt193,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers21) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t21]],TurfAreaNames[T_t21]);
new Text:txt194 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt194, 0);
TextDrawSetShadow(txt194,0);
TextDrawSetOutline(txt194,1);
TextDrawColor(txt194,COLOR_RED);
TimeTextForPlayer(a,txt194,6000);
}
}
GangZoneShowForAll(gGangZone[21], teamColors[turfOwner[T_t21]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills21[a] =0, GangInWar21[a] =0, Turf21Kills[a] =0;}
}
}
//--------------------------
public Turf22TakeOver()
{
GangZoneStopFlashForAll(gGangZone[22]), Attack[gGangZone[22]] = 0;
if(AttackKills22[Attackers22] > AttackKills22[turfOwner[T_t22]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t22]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers22],TurfAreaNames[T_t22]);
new Text:txt195 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt195, 0);
TextDrawSetShadow(txt195,0);
TextDrawSetOutline(txt195,1);
TextDrawColor(txt195,COLOR_RED);
TimeTextForPlayer(a,txt195,6000);
}
if(gTeam[a] == Attackers22) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t22]],TurfAreaNames[T_t22]);
new Text:txt196 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt196, 0);
TextDrawSetShadow(txt196,0);
TextDrawSetOutline(txt196,1);
TextDrawColor(txt196,COLOR_GREEN);
TimeTextForPlayer(a,txt196,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t22]= Attackers22;
GangZoneShowForAll(gGangZone[22], teamColors[Attackers22]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills22[a] =0, GangInWar22[a] =0, Turf22Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t22]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t22]);
new Text:txt197 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt197, 0);
TextDrawSetShadow(txt197,0);
TextDrawSetOutline(txt197,1);
TextDrawColor(txt197,COLOR_GREEN);
TimeTextForPlayer(a,txt197,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers22) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t22]],TurfAreaNames[T_t22]);
new Text:txt198 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt198, 0);
TextDrawSetShadow(txt198,0);
TextDrawSetOutline(txt198,1);
TextDrawColor(txt198,COLOR_RED);
TimeTextForPlayer(a,txt198,6000);
}
}
GangZoneShowForAll(gGangZone[22], teamColors[turfOwner[T_t22]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills22[a] =0, GangInWar22[a] =0, Turf22Kills[a] =0;}
}
}
//--------------------------
public Turf23TakeOver()
{
GangZoneStopFlashForAll(gGangZone[23]), Attack[gGangZone[23]] = 0;
if(AttackKills23[Attackers23] > AttackKills23[turfOwner[T_t23]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t23]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers23],TurfAreaNames[T_t23]);
new Text:txt199 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt199, 0);
TextDrawSetShadow(txt199,0);
TextDrawSetOutline(txt199,1);
TextDrawColor(txt199,COLOR_RED);
TimeTextForPlayer(a,txt199,6000);
}
if(gTeam[a] == Attackers23) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t23]],TurfAreaNames[T_t23]);
new Text:txt200 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt200, 0);
TextDrawSetShadow(txt200,0);
TextDrawSetOutline(txt200,1);
TextDrawColor(txt200,COLOR_GREEN);
TimeTextForPlayer(a,txt200,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t23]= Attackers23;
GangZoneShowForAll(gGangZone[23], teamColors[Attackers23]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills23[a] =0, GangInWar23[a] =0, Turf23Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t23]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t23]);
new Text:txt201 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt201, 0);
TextDrawSetShadow(txt201,0);
TextDrawSetOutline(txt201,1);
TextDrawColor(txt201,COLOR_GREEN);
TimeTextForPlayer(a,txt201,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers23) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t23]],TurfAreaNames[T_t23]);
new Text:txt202 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt202, 0);
TextDrawSetShadow(txt202,0);
TextDrawSetOutline(txt202,1);
TextDrawColor(txt202,COLOR_RED);
TimeTextForPlayer(a,txt202,6000);
}
}
GangZoneShowForAll(gGangZone[23], teamColors[turfOwner[T_t23]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills23[a] =0, GangInWar23[a] =0, Turf23Kills[a] =0;}
}
}
//--------------------------
public Turf24TakeOver()
{
GangZoneStopFlashForAll(gGangZone[24]), Attack[gGangZone[24]] = 0;
if(AttackKills24[Attackers24] > AttackKills24[turfOwner[T_t24]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t24]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers24],TurfAreaNames[T_t24]);
new Text:txt203 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt203, 0);
TextDrawSetShadow(txt203,0);
TextDrawSetOutline(txt203,1);
TextDrawColor(txt203,COLOR_RED);
TimeTextForPlayer(a,txt203,6000);
}
if(gTeam[a] == Attackers24) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t24]],TurfAreaNames[T_t24]);
new Text:txt204 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt204, 0);
TextDrawSetShadow(txt204,0);
TextDrawSetOutline(txt204,1);
TextDrawColor(txt204,COLOR_GREEN);
TimeTextForPlayer(a,txt204,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t24]= Attackers24;
GangZoneShowForAll(gGangZone[24], teamColors[Attackers24]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills24[a] =0, GangInWar24[a] =0, Turf24Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t24]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t24]);
new Text:txt205 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt205, 0);
TextDrawSetShadow(txt205,0);
TextDrawSetOutline(txt205,1);
TextDrawColor(txt205,COLOR_GREEN);
TimeTextForPlayer(a,txt205,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers24) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t24]],TurfAreaNames[T_t24]);
new Text:txt206 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt206, 0);
TextDrawSetShadow(txt206,0);
TextDrawSetOutline(txt206,1);
TextDrawColor(txt206,COLOR_RED);
TimeTextForPlayer(a,txt206,6000);
}
}
GangZoneShowForAll(gGangZone[24], teamColors[turfOwner[T_t24]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills24[a] =0, GangInWar24[a] =0, Turf24Kills[a] =0;}
}
}
//--------------------------
public Turf25TakeOver()
{
GangZoneStopFlashForAll(gGangZone[25]), Attack[gGangZone[25]] = 0;
if(AttackKills25[Attackers25] > AttackKills25[turfOwner[T_t25]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t25]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers25],TurfAreaNames[T_t25]);
new Text:txt207 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt207, 0);
TextDrawSetShadow(txt207,0);
TextDrawSetOutline(txt207,1);
TextDrawColor(txt207,COLOR_RED);
TimeTextForPlayer(a,txt207,6000);
}
if(gTeam[a] == Attackers25) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t25]],TurfAreaNames[T_t25]);
new Text:txt208 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt208, 0);
TextDrawSetShadow(txt208,0);
TextDrawSetOutline(txt208,1);
TextDrawColor(txt208,COLOR_GREEN);
TimeTextForPlayer(a,txt208,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t25]= Attackers25;
GangZoneShowForAll(gGangZone[25], teamColors[Attackers25]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills25[a] =0, GangInWar25[a] =0, Turf25Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t25]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t25]);
new Text:txt209 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt209, 0);
TextDrawSetShadow(txt209,0);
TextDrawSetOutline(txt209,1);
TextDrawColor(txt209,COLOR_GREEN);
TimeTextForPlayer(a,txt209,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers25) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t25]],TurfAreaNames[T_t25]);
new Text:txt210 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt210, 0);
TextDrawSetShadow(txt210,0);
TextDrawSetOutline(txt210,1);
TextDrawColor(txt210,COLOR_RED);
TimeTextForPlayer(a,txt210,6000);
}
}
GangZoneShowForAll(gGangZone[25], teamColors[turfOwner[T_t25]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills25[a] =0, GangInWar25[a] =0, Turf25Kills[a] =0;}
}
}
//--------------------------
public Turf26TakeOver()
{
GangZoneStopFlashForAll(gGangZone[26]), Attack[gGangZone[26]] = 0;
if(AttackKills26[Attackers26] > AttackKills26[turfOwner[T_t26]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t26]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers26],TurfAreaNames[T_t26]);
new Text:txt211 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt211, 0);
TextDrawSetShadow(txt211,0);
TextDrawSetOutline(txt211,1);
TextDrawColor(txt211,COLOR_RED);
TimeTextForPlayer(a,txt211,6000);
}
if(gTeam[a] == Attackers26) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t26]],TurfAreaNames[T_t26]);
new Text:txt212 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt212, 0);
TextDrawSetShadow(txt212,0);
TextDrawSetOutline(txt212,1);
TextDrawColor(txt212,COLOR_GREEN);
TimeTextForPlayer(a,txt212,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t26]= Attackers26;
GangZoneShowForAll(gGangZone[26], teamColors[Attackers26]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills26[a] =0, GangInWar26[a] =0, Turf26Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t26]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t26]);
new Text:txt213 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt213, 0);
TextDrawSetShadow(txt213,0);
TextDrawSetOutline(txt213,1);
TextDrawColor(txt213,COLOR_GREEN);
TimeTextForPlayer(a,txt213,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers26) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t26]],TurfAreaNames[T_t2]);
new Text:txt214 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt214, 0);
TextDrawSetShadow(txt214,0);
TextDrawSetOutline(txt214,1);
TextDrawColor(txt214,COLOR_RED);
TimeTextForPlayer(a,txt214,6000);
}
}
GangZoneShowForAll(gGangZone[26], teamColors[turfOwner[T_t26]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills26[a] =0, GangInWar26[a] =0, Turf26Kills[a] =0;}
}
}
//--------------------------
public Turf27TakeOver()
{
GangZoneStopFlashForAll(gGangZone[27]), Attack[gGangZone[27]] = 0;
if(AttackKills27[Attackers27] > AttackKills27[turfOwner[T_t27]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t27]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers27],TurfAreaNames[T_t27]);
new Text:txt215 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt215, 0);
TextDrawSetShadow(txt215,0);
TextDrawSetOutline(txt215,1);
TextDrawColor(txt215,COLOR_RED);
TimeTextForPlayer(a,txt215,6000);
}
if(gTeam[a] == Attackers27) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t27]],TurfAreaNames[T_t27]);
new Text:txt216 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt216, 0);
TextDrawSetShadow(txt216,0);
TextDrawSetOutline(txt216,1);
TextDrawColor(txt216,COLOR_GREEN);
TimeTextForPlayer(a,txt216,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t27]= Attackers27;
GangZoneShowForAll(gGangZone[27], teamColors[Attackers27]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills27[a] =0, GangInWar27[a] =0, Turf27Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t27]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t27]);
new Text:txt217 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt217, 0);
TextDrawSetShadow(txt217,0);
TextDrawSetOutline(txt217,1);
TextDrawColor(txt217,COLOR_GREEN);
TimeTextForPlayer(a,txt217,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers27) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t27]],TurfAreaNames[T_t27]);
new Text:txt218 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt218, 0);
TextDrawSetShadow(txt218,0);
TextDrawSetOutline(txt218,1);
TextDrawColor(txt218,COLOR_RED);
TimeTextForPlayer(a,txt218,6000);
}
}
GangZoneShowForAll(gGangZone[27], teamColors[turfOwner[T_t27]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills27[a] =0, GangInWar27[a] =0, Turf27Kills[a] =0;}
}
}
//--------------------------
public Turf28TakeOver()
{
GangZoneStopFlashForAll(gGangZone[28]), Attack[gGangZone[28]] = 0;
if(AttackKills28[Attackers28] > AttackKills28[turfOwner[T_t28]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t28]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers28],TurfAreaNames[T_t28]);
new Text:txt219 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt219, 0);
TextDrawSetShadow(txt219,0);
TextDrawSetOutline(txt219,1);
TextDrawColor(txt219,COLOR_RED);
TimeTextForPlayer(a,txt219,6000);
}
if(gTeam[a] == Attackers28) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t28]],TurfAreaNames[T_t28]);
new Text:txt220 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt220, 0);
TextDrawSetShadow(txt220,0);
TextDrawSetOutline(txt220,1);
TextDrawColor(txt220,COLOR_GREEN);
TimeTextForPlayer(a,txt220,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t28]= Attackers28;
GangZoneShowForAll(gGangZone[28], teamColors[Attackers28]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills28[a] =0, GangInWar28[a] =0, Turf28Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t28]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t28]);
new Text:txt221 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt221, 0);
TextDrawSetShadow(txt221,0);
TextDrawSetOutline(txt221,1);
TextDrawColor(txt221,COLOR_GREEN);
TimeTextForPlayer(a,txt221,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers28) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t28]],TurfAreaNames[T_t28]);
new Text:txt222 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt222, 0);
TextDrawSetShadow(txt222,0);
TextDrawSetOutline(txt222,1);
TextDrawColor(txt222,COLOR_RED);
TimeTextForPlayer(a,txt222,6000);
}
}
GangZoneShowForAll(gGangZone[28], teamColors[turfOwner[T_t28]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills28[a] =0, GangInWar28[a] =0, Turf28Kills[a] =0;}
}
}
//--------------------------
public Turf29TakeOver()
{
GangZoneStopFlashForAll(gGangZone[29]), Attack[gGangZone[29]] = 0;
if(AttackKills29[Attackers29] > AttackKills29[turfOwner[T_t29]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t29]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers29],TurfAreaNames[T_t29]);
new Text:txt223 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt223, 0);
TextDrawSetShadow(txt223,0);
TextDrawSetOutline(txt223,1);
TextDrawColor(txt223,COLOR_RED);
TimeTextForPlayer(a,txt223,6000);
}
if(gTeam[a] == Attackers29) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t29]],TurfAreaNames[T_t29]);
new Text:txt224 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt224, 0);
TextDrawSetShadow(txt224,0);
TextDrawSetOutline(txt224,1);
TextDrawColor(txt224,COLOR_GREEN);
TimeTextForPlayer(a,txt224,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t29]= Attackers29;
GangZoneShowForAll(gGangZone[29], teamColors[Attackers29]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills29[a] =0, GangInWar29[a] =0, Turf29Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t29]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t29]);
new Text:txt225 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt225, 0);
TextDrawSetShadow(txt225,0);
TextDrawSetOutline(txt225,1);
TextDrawColor(txt225,COLOR_GREEN);
TimeTextForPlayer(a,txt225,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers29) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t29]],TurfAreaNames[T_t29]);
new Text:txt226 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt226, 0);
TextDrawSetShadow(txt226,0);
TextDrawSetOutline(txt226,1);
TextDrawColor(txt226,COLOR_RED);
TimeTextForPlayer(a,txt226,6000);
}
}
GangZoneShowForAll(gGangZone[29], teamColors[turfOwner[T_t29]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills29[a] =0, GangInWar29[a] =0, Turf29Kills[a] =0;}
}
}
//--------------------------
public Turf30TakeOver()
{
GangZoneStopFlashForAll(gGangZone[30]), Attack[gGangZone[30]] = 0;
if(AttackKills30[Attackers30] > AttackKills30[turfOwner[T_t30]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t30]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers30],TurfAreaNames[T_t30]);
new Text:txt227 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt227, 0);
TextDrawSetShadow(txt227,0);
TextDrawSetOutline(txt227,1);
TextDrawColor(txt227,COLOR_RED);
TimeTextForPlayer(a,txt227,6000);
}
if(gTeam[a] == Attackers30) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t30]],TurfAreaNames[T_t30]);
new Text:txt228 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt228, 0);
TextDrawSetShadow(txt228,0);
TextDrawSetOutline(txt228,1);
TextDrawColor(txt228,COLOR_GREEN);
TimeTextForPlayer(a,txt228,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t30]= Attackers30;
GangZoneShowForAll(gGangZone[30], teamColors[Attackers30]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills30[a] =0, GangInWar30[a] =0, Turf30Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t30]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t30]);
new Text:txt229 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt229, 0);
TextDrawSetShadow(txt229,0);
TextDrawSetOutline(txt229,1);
TextDrawColor(txt229,COLOR_GREEN);
TimeTextForPlayer(a,txt229,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers30) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t30]],TurfAreaNames[T_t30]);
new Text:txt230 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt230, 0);
TextDrawSetShadow(txt230,0);
TextDrawSetOutline(txt230,1);
TextDrawColor(txt230,COLOR_RED);
TimeTextForPlayer(a,txt230,6000);
}
}
GangZoneShowForAll(gGangZone[30], teamColors[turfOwner[T_t30]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills30[a] =0, GangInWar30[a] =0, Turf30Kills[a] =0;}
}
}
//--------------------------
public Turf31TakeOver()
{
GangZoneStopFlashForAll(gGangZone[31]), Attack[gGangZone[31]] = 0;
if(AttackKills31[Attackers31] > AttackKills31[turfOwner[T_t31]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t31]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers31],TurfAreaNames[T_t31]);
new Text:txt231 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt231, 0);
TextDrawSetShadow(txt231,0);
TextDrawSetOutline(txt231,1);
TextDrawColor(txt231,COLOR_RED);
TimeTextForPlayer(a,txt231,6000);
}
if(gTeam[a] == Attackers31) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t31]],TurfAreaNames[T_t31]);
new Text:txt232 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt232, 0);
TextDrawSetShadow(txt232,0);
TextDrawSetOutline(txt232,1);
TextDrawColor(txt232,COLOR_GREEN);
TimeTextForPlayer(a,txt232,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t31]= Attackers31;
GangZoneShowForAll(gGangZone[31], teamColors[Attackers31]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills31[a] =0, GangInWar31[a] =0, Turf31Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t31]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t31]);
new Text:txt233 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt233, 0);
TextDrawSetShadow(txt233,0);
TextDrawSetOutline(txt233,1);
TextDrawColor(txt233,COLOR_GREEN);
TimeTextForPlayer(a,txt233,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers31) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t31]],TurfAreaNames[T_t31]);
new Text:txt234 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt234, 0);
TextDrawSetShadow(txt234,0);
TextDrawSetOutline(txt234,1);
TextDrawColor(txt234,COLOR_RED);
TimeTextForPlayer(a,txt234,6000);
}
}
GangZoneShowForAll(gGangZone[31], teamColors[turfOwner[T_t31]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills31[a] =0, GangInWar31[a] =0, Turf31Kills[a] =0;}
}
}
//--------------------------
public Turf32TakeOver()
{
GangZoneStopFlashForAll(gGangZone[32]), Attack[gGangZone[32]] = 0;
if(AttackKills32[Attackers32] > AttackKills32[turfOwner[T_t32]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t32]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers32],TurfAreaNames[T_t32]);
new Text:txt235 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt235, 0);
TextDrawSetShadow(txt235,0);
TextDrawSetOutline(txt235,1);
TextDrawColor(txt235,COLOR_RED);
TimeTextForPlayer(a,txt235,6000);
}
if(gTeam[a] == Attackers32) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t32]],TurfAreaNames[T_t32]);
new Text:txt236 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt236, 0);
TextDrawSetShadow(txt236,0);
TextDrawSetOutline(txt236,1);
TextDrawColor(txt236,COLOR_GREEN);
TimeTextForPlayer(a,txt236,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t32]= Attackers32;
GangZoneShowForAll(gGangZone[32], teamColors[Attackers32]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills32[a] =0, GangInWar32[a] =0, Turf32Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t32]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t32]);
new Text:txt237 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt237, 0);
TextDrawSetShadow(txt237,0);
TextDrawSetOutline(txt237,1);
TextDrawColor(txt237,COLOR_GREEN);
TimeTextForPlayer(a,txt237,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers32) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t32]],TurfAreaNames[T_t32]);
new Text:txt238 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt238, 0);
TextDrawSetShadow(txt238,0);
TextDrawSetOutline(txt238,1);
TextDrawColor(txt238,COLOR_RED);
TimeTextForPlayer(a,txt238,6000);
}
}
GangZoneShowForAll(gGangZone[32], teamColors[turfOwner[T_t32]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills32[a] =0, GangInWar32[a] =0, Turf32Kills[a] =0;}
}
}
//--------------------------
public Turf33TakeOver()
{
GangZoneStopFlashForAll(gGangZone[33]), Attack[gGangZone[33]] = 0;
if(AttackKills33[Attackers33] > AttackKills33[turfOwner[T_t33]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t33]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers33],TurfAreaNames[T_t33]);
new Text:txt239 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt239, 0);
TextDrawSetShadow(txt239,0);
TextDrawSetOutline(txt239,1);
TextDrawColor(txt239,COLOR_RED);
TimeTextForPlayer(a,txt239,6000);
}
if(gTeam[a] == Attackers33) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t33]],TurfAreaNames[T_t33]);
new Text:txt240 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt240, 0);
TextDrawSetShadow(txt240,0);
TextDrawSetOutline(txt240,1);
TextDrawColor(txt240,COLOR_GREEN);
TimeTextForPlayer(a,txt240,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t33]= Attackers33;
GangZoneShowForAll(gGangZone[33], teamColors[Attackers33]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills33[a] =0, GangInWar33[a] =0, Turf33Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t33]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t33]);
new Text:txt241 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt241, 0);
TextDrawSetShadow(txt241,0);
TextDrawSetOutline(txt241,1);
TextDrawColor(txt241,COLOR_GREEN);
TimeTextForPlayer(a,txt241,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers33) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t33]],TurfAreaNames[T_t33]);
new Text:txt242 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt242, 0);
TextDrawSetShadow(txt242,0);
TextDrawSetOutline(txt242,1);
TextDrawColor(txt242,COLOR_RED);
TimeTextForPlayer(a,txt242,6000);
}
}
GangZoneShowForAll(gGangZone[33], teamColors[turfOwner[T_t33]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills33[a] =0, GangInWar33[a] =0, Turf33Kills[a] =0;}
}
}
//--------------------------
public Turf34TakeOver()
{
GangZoneStopFlashForAll(gGangZone[34]), Attack[gGangZone[34]] = 0;
if(AttackKills34[Attackers34] > AttackKills34[turfOwner[T_t34]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t34]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers34],TurfAreaNames[T_t34]);
new Text:txt243 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt243, 0);
TextDrawSetShadow(txt243,0);
TextDrawSetOutline(txt243,1);
TextDrawColor(txt243,COLOR_RED);
TimeTextForPlayer(a,txt243,6000);
}
if(gTeam[a] == Attackers34) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t34]],TurfAreaNames[T_t34]);
new Text:txt244 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt244, 0);
TextDrawSetShadow(txt244,0);
TextDrawSetOutline(txt244,1);
TextDrawColor(txt244,COLOR_GREEN);
TimeTextForPlayer(a,txt244,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t34]= Attackers34;
GangZoneShowForAll(gGangZone[34], teamColors[Attackers34]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills34[a] =0, GangInWar34[a] =0, Turf34Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t34]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t34]);
new Text:txt245 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt245, 0);
TextDrawSetShadow(txt245,0);
TextDrawSetOutline(txt245,1);
TextDrawColor(txt245,COLOR_GREEN);
TimeTextForPlayer(a,txt245,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers34) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t34]],TurfAreaNames[T_t34]);
new Text:txt246 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt246, 0);
TextDrawSetShadow(txt246,0);
TextDrawSetOutline(txt246,1);
TextDrawColor(txt246,COLOR_RED);
TimeTextForPlayer(a,txt246,6000);
}
}
GangZoneShowForAll(gGangZone[34], teamColors[turfOwner[T_t34]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills34[a] =0, GangInWar34[a] =0, Turf34Kills[a] =0;}
}
}
//--------------------------
public Turf35TakeOver()
{
GangZoneStopFlashForAll(gGangZone[35]), Attack[gGangZone[35]] = 0;
if(AttackKills35[Attackers35] > AttackKills35[turfOwner[T_t35]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t35]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers35],TurfAreaNames[T_t35]);
new Text:txt247 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt247, 0);
TextDrawSetShadow(txt247,0);
TextDrawSetOutline(txt247,1);
TextDrawColor(txt247,COLOR_RED);
TimeTextForPlayer(a,txt247,6000);
}
if(gTeam[a] == Attackers35) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t35]],TurfAreaNames[T_t35]);
new Text:txt248 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt248, 0);
TextDrawSetShadow(txt248,0);
TextDrawSetOutline(txt248,1);
TextDrawColor(txt248,COLOR_GREEN);
TimeTextForPlayer(a,txt248,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t35]= Attackers35;
GangZoneShowForAll(gGangZone[35], teamColors[Attackers35]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills35[a] =0, GangInWar35[a] =0, Turf35Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t35]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t35]);
new Text:txt249 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt249, 0);
TextDrawSetShadow(txt249,0);
TextDrawSetOutline(txt249,1);
TextDrawColor(txt249,COLOR_GREEN);
TimeTextForPlayer(a,txt249,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers35) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t35]],TurfAreaNames[T_t35]);
new Text:txt250 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt250, 0);
TextDrawSetShadow(txt250,0);
TextDrawSetOutline(txt250,1);
TextDrawColor(txt250,COLOR_RED);
TimeTextForPlayer(a,txt250,6000);
}
}
GangZoneShowForAll(gGangZone[35], teamColors[turfOwner[T_t35]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills35[a] =0, GangInWar35[a] =0, Turf35Kills[a] =0;}
}
}
//--------------------------
public Turf36TakeOver()
{
GangZoneStopFlashForAll(gGangZone[36]), Attack[gGangZone[36]] = 0;
if(AttackKills36[Attackers36] > AttackKills36[turfOwner[T_t36]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t36]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers36],TurfAreaNames[T_t36]);
new Text:txt251 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt251, 0);
TextDrawSetShadow(txt251,0);
TextDrawSetOutline(txt251,1);
TextDrawColor(txt251,COLOR_RED);
TimeTextForPlayer(a,txt251,6000);
}
if(gTeam[a] == Attackers36) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t36]],TurfAreaNames[T_t36]);
new Text:txt252 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt252, 0);
TextDrawSetShadow(txt252,0);
TextDrawSetOutline(txt252,1);
TextDrawColor(txt252,COLOR_GREEN);
TimeTextForPlayer(a,txt252,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t36]= Attackers36;
GangZoneShowForAll(gGangZone[36], teamColors[Attackers36]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills36[a] =0, GangInWar36[a] =0, Turf36Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t36]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t36]);
new Text:txt253 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt253, 0);
TextDrawSetShadow(txt253,0);
TextDrawSetOutline(txt253,1);
TextDrawColor(txt253,COLOR_GREEN);
TimeTextForPlayer(a,txt253,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers36) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t36]],TurfAreaNames[T_t36]);
new Text:txt254 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt254, 0);
TextDrawSetShadow(txt254,0);
TextDrawSetOutline(txt254,1);
TextDrawColor(txt254,COLOR_RED);
TimeTextForPlayer(a,txt254,6000);
}
}
GangZoneShowForAll(gGangZone[36], teamColors[turfOwner[T_t36]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills36[a] =0, GangInWar36[a] =0, Turf36Kills[a] =0;}
}
}
//--------------------------
public Turf37TakeOver()
{
GangZoneStopFlashForAll(gGangZone[37]), Attack[gGangZone[37]] = 0;
if(AttackKills37[Attackers37] > AttackKills37[turfOwner[T_t37]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t37]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers37],TurfAreaNames[T_t37]);
new Text:txt255 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt255, 0);
TextDrawSetShadow(txt255,0);
TextDrawSetOutline(txt255,1);
TextDrawColor(txt255,COLOR_RED);
TimeTextForPlayer(a,txt255,6000);
}
if(gTeam[a] == Attackers37) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t37]],TurfAreaNames[T_t37]);
new Text:txt256 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt256, 0);
TextDrawSetShadow(txt256,0);
TextDrawSetOutline(txt256,1);
TextDrawColor(txt256,COLOR_GREEN);
TimeTextForPlayer(a,txt256,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t37]= Attackers37;
GangZoneShowForAll(gGangZone[37], teamColors[Attackers37]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills37[a] =0, GangInWar37[a] =0, Turf37Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t37]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t37]);
new Text:txt257 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt257, 0);
TextDrawSetShadow(txt257,0);
TextDrawSetOutline(txt257,1);
TextDrawColor(txt257,COLOR_GREEN);
TimeTextForPlayer(a,txt257,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers37) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t37]],TurfAreaNames[T_t37]);
new Text:txt258 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt258, 0);
TextDrawSetShadow(txt258,0);
TextDrawSetOutline(txt258,1);
TextDrawColor(txt258,COLOR_RED);
TimeTextForPlayer(a,txt258,6000);
}
}
GangZoneShowForAll(gGangZone[37], teamColors[turfOwner[T_t37]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills37[a] =0, GangInWar37[a] =0, Turf37Kills[a] =0;}
}
}
//--------------------------
public Turf38TakeOver()
{
GangZoneStopFlashForAll(gGangZone[38]), Attack[gGangZone[38]] = 0;
if(AttackKills38[Attackers38] > AttackKills38[turfOwner[T_t38]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t38]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers38],TurfAreaNames[T_t38]);
new Text:txt259 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt259, 0);
TextDrawSetShadow(txt259,0);
TextDrawSetOutline(txt259,1);
TextDrawColor(txt259,COLOR_RED);
TimeTextForPlayer(a,txt259,6000);
}
if(gTeam[a] == Attackers38) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t38]],TurfAreaNames[T_t38]);
new Text:txt260 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt260, 0);
TextDrawSetShadow(txt260,0);
TextDrawSetOutline(txt260,1);
TextDrawColor(txt260,COLOR_GREEN);
TimeTextForPlayer(a,txt260,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t38]= Attackers38;
GangZoneShowForAll(gGangZone[38], teamColors[Attackers38]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills38[a] =0, GangInWar38[a] =0, Turf38Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t38]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t38]);
new Text:txt261 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt261, 0);
TextDrawSetShadow(txt261,0);
TextDrawSetOutline(txt261,1);
TextDrawColor(txt261,COLOR_GREEN);
TimeTextForPlayer(a,txt261,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers38) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t38]],TurfAreaNames[T_t38]);
new Text:txt262 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt262, 0);
TextDrawSetShadow(txt262,0);
TextDrawSetOutline(txt262,1);
TextDrawColor(txt262,COLOR_RED);
TimeTextForPlayer(a,txt262,6000);
}
}
GangZoneShowForAll(gGangZone[38], teamColors[turfOwner[T_t38]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills38[a] =0, GangInWar38[a] =0, Turf38Kills[a] =0;}
}
}
//--------------------------
public Turf39TakeOver()
{
GangZoneStopFlashForAll(gGangZone[39]), Attack[gGangZone[39]] = 0;
if(AttackKills39[Attackers39] > AttackKills39[turfOwner[T_t39]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t39]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers39],TurfAreaNames[T_t39]);
new Text:txt263 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt263, 0);
TextDrawSetShadow(txt263,0);
TextDrawSetOutline(txt263,1);
TextDrawColor(txt263,COLOR_RED);
TimeTextForPlayer(a,txt263,6000);
}
if(gTeam[a] == Attackers39) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t39]],TurfAreaNames[T_t39]);
new Text:txt264 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt264, 0);
TextDrawSetShadow(txt264,0);
TextDrawSetOutline(txt264,1);
TextDrawColor(txt264,COLOR_GREEN);
TimeTextForPlayer(a,txt264,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t39]= Attackers39;
GangZoneShowForAll(gGangZone[39], teamColors[Attackers39]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills39[a] =0, GangInWar39[a] =0, Turf39Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t39]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t39]);
new Text:txt265 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt265, 0);
TextDrawSetShadow(txt265,0);
TextDrawSetOutline(txt265,1);
TextDrawColor(txt265,COLOR_GREEN);
TimeTextForPlayer(a,txt265,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers39) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t39]],TurfAreaNames[T_t39]);
new Text:txt266 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt266, 0);
TextDrawSetShadow(txt266,0);
TextDrawSetOutline(txt266,1);
TextDrawColor(txt266,COLOR_RED);
TimeTextForPlayer(a,txt266,6000);
}
}
GangZoneShowForAll(gGangZone[39], teamColors[turfOwner[T_t39]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills39[a] =0, GangInWar39[a] =0, Turf39Kills[a] =0;}
}
}
//--------------------------
public Turf40TakeOver()
{
GangZoneStopFlashForAll(gGangZone[40]), Attack[gGangZone[40]] = 0;
if(AttackKills40[Attackers40] > AttackKills40[turfOwner[T_t40]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t40]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers40],TurfAreaNames[T_t40]);
new Text:txt267 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt267, 0);
TextDrawSetShadow(txt267,0);
TextDrawSetOutline(txt267,1);
TextDrawColor(txt267,COLOR_RED);
TimeTextForPlayer(a,txt267,6000);
}
if(gTeam[a] == Attackers40) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t40]],TurfAreaNames[T_t40]);
new Text:txt268 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt268, 0);
TextDrawSetShadow(txt268,0);
TextDrawSetOutline(txt268,1);
TextDrawColor(txt268,COLOR_GREEN);
TimeTextForPlayer(a,txt268,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t40]= Attackers40;
GangZoneShowForAll(gGangZone[40], teamColors[Attackers40]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills40[a] =0, GangInWar40[a] =0, Turf40Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t40]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t40]);
new Text:txt269 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt269, 0);
TextDrawSetShadow(txt269,0);
TextDrawSetOutline(txt269,1);
TextDrawColor(txt269,COLOR_GREEN);
TimeTextForPlayer(a,txt269,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers40) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t40]],TurfAreaNames[T_t40]);
new Text:txt270 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt270, 0);
TextDrawSetShadow(txt270,0);
TextDrawSetOutline(txt270,1);
TextDrawColor(txt270,COLOR_RED);
TimeTextForPlayer(a,txt270,6000);
}
}
GangZoneShowForAll(gGangZone[40], teamColors[turfOwner[T_t40]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills40[a] =0, GangInWar40[a] =0, Turf40Kills[a] =0;}
}
}
//--------------------------
public Turf41TakeOver()
{
GangZoneStopFlashForAll(gGangZone[41]), Attack[gGangZone[41]] = 0;
if(AttackKills41[Attackers41] > AttackKills41[turfOwner[T_t41]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t41]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers41],TurfAreaNames[T_t41]);
new Text:txt271 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt271, 0);
TextDrawSetShadow(txt271,0);
TextDrawSetOutline(txt271,1);
TextDrawColor(txt271,COLOR_RED);
TimeTextForPlayer(a,txt271,6000);
}
if(gTeam[a] == Attackers41) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t41]],TurfAreaNames[T_t41]);
new Text:txt272 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt272, 0);
TextDrawSetShadow(txt272,0);
TextDrawSetOutline(txt272,1);
TextDrawColor(txt272,COLOR_GREEN);
TimeTextForPlayer(a,txt272,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t41]= Attackers41;
GangZoneShowForAll(gGangZone[41], teamColors[Attackers41]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills41[a] =0, GangInWar41[a] =0, Turf41Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t41]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t41]);
new Text:txt273 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt273, 0);
TextDrawSetShadow(txt273,0);
TextDrawSetOutline(txt273,1);
TextDrawColor(txt273,COLOR_GREEN);
TimeTextForPlayer(a,txt273,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers41) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t41]],TurfAreaNames[T_t41]);
new Text:txt274 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt274, 0);
TextDrawSetShadow(txt274,0);
TextDrawSetOutline(txt274,1);
TextDrawColor(txt274,COLOR_RED);
TimeTextForPlayer(a,txt274,6000);
}
}
GangZoneShowForAll(gGangZone[41], teamColors[turfOwner[T_t41]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills41[a] =0, GangInWar41[a] =0, Turf41Kills[a] =0;}
}
}
//--------------------------
public Turf42TakeOver()
{
GangZoneStopFlashForAll(gGangZone[42]), Attack[gGangZone[42]] = 0;
if(AttackKills42[Attackers42] > AttackKills42[turfOwner[T_t42]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t42]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers42],TurfAreaNames[T_t42]);
new Text:txt275 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt275, 0);
TextDrawSetShadow(txt275,0);
TextDrawSetOutline(txt275,1);
TextDrawColor(txt275,COLOR_RED);
TimeTextForPlayer(a,txt275,6000);
}
if(gTeam[a] == Attackers42) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t42]],TurfAreaNames[T_t42]);
new Text:txt276 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt276, 0);
TextDrawSetShadow(txt276,0);
TextDrawSetOutline(txt276,1);
TextDrawColor(txt276,COLOR_GREEN);
TimeTextForPlayer(a,txt276,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t42]= Attackers42;
GangZoneShowForAll(gGangZone[42], teamColors[Attackers42]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills42[a] =0, GangInWar42[a] =0, Turf42Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t42]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t42]);
new Text:txt277 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt277, 0);
TextDrawSetShadow(txt277,0);
TextDrawSetOutline(txt277,1);
TextDrawColor(txt277,COLOR_GREEN);
TimeTextForPlayer(a,txt277,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers42) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t42]],TurfAreaNames[T_t42]);
new Text:txt278 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt278, 0);
TextDrawSetShadow(txt278,0);
TextDrawSetOutline(txt278,1);
TextDrawColor(txt278,COLOR_RED);
TimeTextForPlayer(a,txt278,6000);
}
}
GangZoneShowForAll(gGangZone[42], teamColors[turfOwner[T_t42]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills42[a] =0, GangInWar42[a] =0, Turf42Kills[a] =0;}
}
}
//--------------------------
public Turf43TakeOver()
{
GangZoneStopFlashForAll(gGangZone[43]), Attack[gGangZone[43]] = 0;
if(AttackKills43[Attackers43] > AttackKills43[turfOwner[T_t43]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t43]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers43],TurfAreaNames[T_t43]);
new Text:txt279 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt279, 0);
TextDrawSetShadow(txt279,0);
TextDrawSetOutline(txt279,1);
TextDrawColor(txt279,COLOR_RED);
TimeTextForPlayer(a,txt279,6000);
}
if(gTeam[a] == Attackers43) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t43]],TurfAreaNames[T_t43]);
new Text:txt280 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt280, 0);
TextDrawSetShadow(txt280,0);
TextDrawSetOutline(txt280,1);
TextDrawColor(txt280,COLOR_GREEN);
TimeTextForPlayer(a,txt280,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t43]= Attackers43;
GangZoneShowForAll(gGangZone[43], teamColors[Attackers43]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills43[a] =0, GangInWar43[a] =0, Turf43Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t43]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t43]);
new Text:txt281 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt281, 0);
TextDrawSetShadow(txt281,0);
TextDrawSetOutline(txt281,1);
TextDrawColor(txt281,COLOR_GREEN);
TimeTextForPlayer(a,txt281,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers43) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t43]],TurfAreaNames[T_t43]);
new Text:txt282 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt282, 0);
TextDrawSetShadow(txt282,0);
TextDrawSetOutline(txt282,1);
TextDrawColor(txt282,COLOR_RED);
TimeTextForPlayer(a,txt282,6000);
}
}
GangZoneShowForAll(gGangZone[43], teamColors[turfOwner[T_t43]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills43[a] =0, GangInWar43[a] =0, Turf43Kills[a] =0;}
}
}
//--------------------------
public Turf44TakeOver()
{
GangZoneStopFlashForAll(gGangZone[44]), Attack[gGangZone[44]] = 0;
if(AttackKills44[Attackers44] > AttackKills44[turfOwner[T_t44]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t44]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers44],TurfAreaNames[T_t44]);
new Text:txt283 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt283, 0);
TextDrawSetShadow(txt283,0);
TextDrawSetOutline(txt283,1);
TextDrawColor(txt283,COLOR_RED);
TimeTextForPlayer(a,txt283,6000);
}
if(gTeam[a] == Attackers44) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t44]],TurfAreaNames[T_t44]);
new Text:txt284 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt284, 0);
TextDrawSetShadow(txt284,0);
TextDrawSetOutline(txt284,1);
TextDrawColor(txt284,COLOR_GREEN);
TimeTextForPlayer(a,txt284,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t44]= Attackers44;
GangZoneShowForAll(gGangZone[44], teamColors[Attackers44]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills44[a] =0, GangInWar44[a] =0, Turf44Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t44]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t44]);
new Text:txt285 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt285, 0);
TextDrawSetShadow(txt285,0);
TextDrawSetOutline(txt285,1);
TextDrawColor(txt285,COLOR_GREEN);
TimeTextForPlayer(a,txt285,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers44) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t44]],TurfAreaNames[T_t44]);
new Text:txt286 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt286, 0);
TextDrawSetShadow(txt286,0);
TextDrawSetOutline(txt286,1);
TextDrawColor(txt286,COLOR_RED);
TimeTextForPlayer(a,txt286,6000);
}
}
GangZoneShowForAll(gGangZone[44], teamColors[turfOwner[T_t44]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills44[a] =0, GangInWar44[a] =0, Turf44Kills[a] =0;}
}
}
//--------------------------
public Turf45TakeOver()
{
GangZoneStopFlashForAll(gGangZone[45]), Attack[gGangZone[45]] = 0;
if(AttackKills45[Attackers45] > AttackKills45[turfOwner[T_t45]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t45]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers45],TurfAreaNames[T_t45]);
new Text:txt287 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt287, 0);
TextDrawSetShadow(txt287,0);
TextDrawSetOutline(txt287,1);
TextDrawColor(txt287,COLOR_RED);
TimeTextForPlayer(a,txt287,6000);
}
if(gTeam[a] == Attackers45) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t45]],TurfAreaNames[T_t45]);
new Text:txt288 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt288, 0);
TextDrawSetShadow(txt288,0);
TextDrawSetOutline(txt288,1);
TextDrawColor(txt288,COLOR_GREEN);
TimeTextForPlayer(a,txt288,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t45]= Attackers45;
GangZoneShowForAll(gGangZone[45], teamColors[Attackers45]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills45[a] =0, GangInWar45[a] =0, Turf45Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t45]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t45]);
new Text:txt289 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt289, 0);
TextDrawSetShadow(txt289,0);
TextDrawSetOutline(txt289,1);
TextDrawColor(txt289,COLOR_GREEN);
TimeTextForPlayer(a,txt289,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers45) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t45]],TurfAreaNames[T_t45]);
new Text:txt290 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt290, 0);
TextDrawSetShadow(txt290,0);
TextDrawSetOutline(txt290,1);
TextDrawColor(txt290,COLOR_RED);
TimeTextForPlayer(a,txt290,6000);
}
}
GangZoneShowForAll(gGangZone[45], teamColors[turfOwner[T_t45]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills45[a] =0, GangInWar45[a] =0, Turf45Kills[a] =0;}
}
}
//--------------------------
public Turf46TakeOver()
{
GangZoneStopFlashForAll(gGangZone[46]), Attack[gGangZone[46]] = 0;
if(AttackKills46[Attackers46] > AttackKills46[turfOwner[T_t46]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t46]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers46],TurfAreaNames[T_t46]);
new Text:txt291 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt291, 0);
TextDrawSetShadow(txt291,0);
TextDrawSetOutline(txt291,1);
TextDrawColor(txt291,COLOR_RED);
TimeTextForPlayer(a,txt291,6000);
}
if(gTeam[a] == Attackers46) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t46]],TurfAreaNames[T_t46]);
new Text:txt292 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt292, 0);
TextDrawSetShadow(txt292,0);
TextDrawSetOutline(txt292,1);
TextDrawColor(txt292,COLOR_GREEN);
TimeTextForPlayer(a,txt292,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t46]= Attackers46;
GangZoneShowForAll(gGangZone[46], teamColors[Attackers46]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills46[a] =0, GangInWar46[a] =0, Turf46Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t46]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t46]);
new Text:txt293 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt293, 0);
TextDrawSetShadow(txt293,0);
TextDrawSetOutline(txt293,1);
TextDrawColor(txt293,COLOR_GREEN);
TimeTextForPlayer(a,txt293,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers46) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t46]],TurfAreaNames[T_t46]);
new Text:txt294 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt294, 0);
TextDrawSetShadow(txt294,0);
TextDrawSetOutline(txt294,1);
TextDrawColor(txt294,COLOR_RED);
TimeTextForPlayer(a,txt294,6000);
}
}
GangZoneShowForAll(gGangZone[46], teamColors[turfOwner[T_t46]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills46[a] =0, GangInWar46[a] =0, Turf46Kills[a] =0;}
}
}
//--------------------------
public Turf47TakeOver()
{
GangZoneStopFlashForAll(gGangZone[47]), Attack[gGangZone[47]] = 0;
if(AttackKills47[Attackers47] > AttackKills47[turfOwner[T_t47]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t47]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers47],TurfAreaNames[T_t47]);
new Text:txt295 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt295, 0);
TextDrawSetShadow(txt295,0);
TextDrawSetOutline(txt295,1);
TextDrawColor(txt295,COLOR_RED);
TimeTextForPlayer(a,txt295,6000);
}
if(gTeam[a] == Attackers47) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t47]],TurfAreaNames[T_t47]);
new Text:txt296 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt296, 0);
TextDrawSetShadow(txt296,0);
TextDrawSetOutline(txt296,1);
TextDrawColor(txt296,COLOR_GREEN);
TimeTextForPlayer(a,txt296,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t47]= Attackers47;
GangZoneShowForAll(gGangZone[47], teamColors[Attackers47]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills47[a] =0, GangInWar47[a] =0, Turf47Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t47]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t47]);
new Text:txt297 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt297, 0);
TextDrawSetShadow(txt297,0);
TextDrawSetOutline(txt297,1);
TextDrawColor(txt297,COLOR_GREEN);
TimeTextForPlayer(a,txt297,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers47) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t47]],TurfAreaNames[T_t47]);
new Text:txt298 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt298, 0);
TextDrawSetShadow(txt298,0);
TextDrawSetOutline(txt298,1);
TextDrawColor(txt298,COLOR_RED);
TimeTextForPlayer(a,txt298,6000);
}
}
GangZoneShowForAll(gGangZone[47], teamColors[turfOwner[T_t47]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills47[a] =0, GangInWar47[a] =0, Turf47Kills[a] =0;}
}
}
//--------------------------
public Turf48TakeOver()
{
GangZoneStopFlashForAll(gGangZone[48]), Attack[gGangZone[48]] = 0;
if(AttackKills48[Attackers48] > AttackKills48[turfOwner[T_t48]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t48]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers48],TurfAreaNames[T_t48]);
new Text:txt299 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt299, 0);
TextDrawSetShadow(txt299,0);
TextDrawSetOutline(txt299,1);
TextDrawColor(txt299,COLOR_RED);
TimeTextForPlayer(a,txt299,6000);
}
if(gTeam[a] == Attackers48) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t48]],TurfAreaNames[T_t48]);
new Text:txt300 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt300, 0);
TextDrawSetShadow(txt300,0);
TextDrawSetOutline(txt300,1);
TextDrawColor(txt300,COLOR_GREEN);
TimeTextForPlayer(a,txt300,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t48]= Attackers48;
GangZoneShowForAll(gGangZone[48], teamColors[Attackers48]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills48[a] =0, GangInWar48[a] =0, Turf48Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t48]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t48]);
new Text:txt301 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt301, 0);
TextDrawSetShadow(txt301,0);
TextDrawSetOutline(txt301,1);
TextDrawColor(txt301,COLOR_GREEN);
TimeTextForPlayer(a,txt301,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers48) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t48]],TurfAreaNames[T_t48]);
new Text:txt302 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt302, 0);
TextDrawSetShadow(txt302,0);
TextDrawSetOutline(txt302,1);
TextDrawColor(txt302,COLOR_RED);
TimeTextForPlayer(a,txt302,6000);
}
}
GangZoneShowForAll(gGangZone[48], teamColors[turfOwner[T_t48]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills48[a] =0, GangInWar48[a] =0, Turf48Kills[a] =0;}
}
}
//--------------------------
public Turf49TakeOver()
{
GangZoneStopFlashForAll(gGangZone[49]), Attack[gGangZone[49]] = 0;
if(AttackKills49[Attackers49] > AttackKills49[turfOwner[T_t49]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t49]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers49],TurfAreaNames[T_t49]);
new Text:txt303 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt303, 0);
TextDrawSetShadow(txt303,0);
TextDrawSetOutline(txt303,1);
TextDrawColor(txt303,COLOR_RED);
TimeTextForPlayer(a,txt303,6000);
}
if(gTeam[a] == Attackers49) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t49]],TurfAreaNames[T_t49]);
new Text:txt304 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt304, 0);
TextDrawSetShadow(txt304,0);
TextDrawSetOutline(txt304,1);
TextDrawColor(txt304,COLOR_GREEN);
TimeTextForPlayer(a,txt304,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t49]= Attackers49;
GangZoneShowForAll(gGangZone[49], teamColors[Attackers49]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills49[a] =0, GangInWar49[a] =0, Turf49Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t49]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t49]);
new Text:txt305 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt305, 0);
TextDrawSetShadow(txt305,0);
TextDrawSetOutline(txt305,1);
TextDrawColor(txt305,COLOR_GREEN);
TimeTextForPlayer(a,txt305,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers49) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t49]],TurfAreaNames[T_t49]);
new Text:txt306 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt306, 0);
TextDrawSetShadow(txt306,0);
TextDrawSetOutline(txt306,1);
TextDrawColor(txt306,COLOR_RED);
TimeTextForPlayer(a,txt306,6000);
}
}
GangZoneShowForAll(gGangZone[49], teamColors[turfOwner[T_t49]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills49[a] =0, GangInWar49[a] =0, Turf49Kills[a] =0;}
}
}
//--------------------------
public Turf50TakeOver()
{
GangZoneStopFlashForAll(gGangZone[50]), Attack[gGangZone[50]] = 0;
if(AttackKills50[Attackers50] > AttackKills50[turfOwner[T_t50]])
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t50]) {
new msg1[256];
format(msg1,sizeof(msg1), "~r~The ~y~%s ~r~have taken over the ~y~%s turf!",teamName[Attackers50],TurfAreaNames[T_t50]);
new Text:txt307 = TextDrawCreate(200.0, 400.0, msg1);
TextDrawFont(txt307, 0);
TextDrawSetShadow(txt307,0);
TextDrawSetOutline(txt307,1);
TextDrawColor(txt307,COLOR_RED);
TimeTextForPlayer(a,txt307,6000);
}
if(gTeam[a] == Attackers50) {
new msg2[256];
format(msg2,sizeof(msg2), "~g~We won the gangwar against the ~y~%s ~g~and took over the ~y~%s turf!",teamName[turfOwner[T_t50]],TurfAreaNames[T_t50]);
new Text:txt308 = TextDrawCreate(200.0, 415.0, msg2);
TextDrawFont(txt308, 0);
TextDrawSetShadow(txt308,0);
TextDrawSetOutline(txt308,1);
TextDrawColor(txt308,COLOR_GREEN);
TimeTextForPlayer(a,txt308,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
}
turfOwner[T_t50]= Attackers50;
GangZoneShowForAll(gGangZone[50], teamColors[Attackers50]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills50[a] =0, GangInWar50[a] =0, Turf50Kills[a] =0;}
}
else
{
for(new a=0; a<SLOTS; a++)
{
if(gTeam[a] == turfOwner[T_t50]) {
new msg4[256];
format(msg4,sizeof(msg4), "~g~That showed them. The ~y~%s ~g~turf remain ours.",TurfAreaNames[T_t50]);
new Text:txt309 = TextDrawCreate(200.0, 355.0, msg4);
TextDrawFont(txt309, 0);
TextDrawSetShadow(txt309,0);
TextDrawSetOutline(txt309,1);
TextDrawColor(txt309,COLOR_GREEN);
TimeTextForPlayer(a,txt309,6000);
SendClientMessage(a, COLOR_GREEN, "Congratz. You received $1000 + 1 point.");
GivePlayerMoney(a, 1000);
SetPlayerScore(a,GetPlayerScore(a)+1);
}
if(gTeam[a] == Attackers50) {
new msg3[256];
format(msg3,sizeof(msg3), "~r~We lost the gangwar against the ~y~%s ~r~and the ~y~%s ~r~turf",teamName[turfOwner[T_t50]],TurfAreaNames[T_t50]);
new Text:txt310 = TextDrawCreate(200.0, 430.0, msg3);
TextDrawFont(txt310, 0);
TextDrawSetShadow(txt310,0);
TextDrawSetOutline(txt310,1);
TextDrawColor(txt310,COLOR_RED);
TimeTextForPlayer(a,txt310,6000);
}
}
GangZoneShowForAll(gGangZone[50], teamColors[turfOwner[T_t50]]);
for(new a = 0; a < MAX_TEAMS; a++){AttackKills50[a] =0, GangInWar50[a] =0, Turf50Kills[a] =0;}
}
}
//==============================================================================
public TimeTextForPlayer(playerid, Text:text, time)
{
TextDrawShowForPlayer(playerid,text);
SetTimerEx("DestroyTextTimer",time,0,"i",_:text); // _: from Simon
}
public DestroyTextTimer(Text:text) { TextDrawDestroy(text);}
//==============================================================================
stock AC_ResetPlayerMoney( playerid )
{
lTMoney[ playerid ] = 0;
lSMoney[ playerid ] = 0;
ResetPlayerMoney( playerid );
return 1;
}
stock AC_GivePlayerMoney( playerid, money )
{
lTMoney[ playerid ] += money;
lSMoney[ playerid ] = 0;
GivePlayerMoney( playerid, money );
return 1;
}
stock AC_GetPlayerMoney( playerid )
return lTMoney[ playerid ];
//==============================================================================
public OnPlayerText(playerid, text[])
{
if (muted[ playerid ] == 1) { return 0; }
if (!IsPlayerConnected(playerid)) return 0; // Check for undisconnected bug.
new
i,
c;
while ((c = text[i++])) if (c < 0x20 || c > 0x7E) return 0; // Check for illegal characters.
MiniAntiSpamCount[ playerid ]++;
SetTimer( "MiniAntiSpamMute", CHECK_MINI_SPAM_TIME, 0 );
return 1;
}
//==============================================================================
public OnPlayerPrivmsg(playerid, recieverid, text[] )
{
if (!IsPlayerConnected(playerid)) return 0; // Check for undisconnected bug.
new
i,
c;
while ((c = text[i++])) if (c < 0x20 || c > 0x7E) return 0; // Check for illegal characters.
new string[256], name[24], name2[24];
GetPlayerName(recieverid, name, 24);
GetPlayerName(playerid, name2, 24);
format(string, sizeof(string),"*** [PM] %s(%d) to %s(%d): %s", name2, playerid, name, recieverid, text);
for (new k = 0; k < SLOTS; k ++) {
if (IsPlayerConnected( k )) {
if (IsPlayerAdmin( k )) {
if (ShowPM[ k ] != 0) {
if (k != playerid && k != recieverid) {
SendClientMessage( k, COLOR_GREY, string );
}
}
}
}
}
return 1;
}
//==============================================================================
public OnPlayerTeamPrivmsg(playerid, msg[])
{
new string[256], name[24];
GetPlayerName(playerid, name, 24);
format(string, sizeof(string),"*** [TPM] %s(%d): %s", name, playerid, msg);
for (new k = 0; k < SLOTS; k ++) {
if (IsPlayerConnected(k)) {
if (IsPlayerAdmin( k )) {
if (ShowTPM[ k ] != 0) {
if (k != playerid && gTeam[ playerid ] != gTeam[ k ]) {
SendClientMessage( k, COLOR_TPM, string );
}
}
}
}
}
return 1;
}
//==============================================================================
public MiniAntiSpamMute( ) // Created by Simon Campbell.
{
for (new i=0; i<SLOTS; i++) {
new MiniAntiSpamName[ MAX_PLAYER_NAME ];
new string[ 256 ];
GetPlayerName(i, MiniAntiSpamName, sizeof(MiniAntiSpamName));
if (MiniAntiSpamCount[ i ] >= MIN_MINI_SPAM) {
format(string, sizeof(string),"*** %s has been Muted for spamming.", MiniAntiSpamName);
SendClientMessageToAll(COLOR_ORANGE, string);
muted[ i ] =1;
MiniAntiSpamCount[ i ] =0;
SetTimerEx( "Unmute", UNMUTE_TIME, 0, "d", i );
}
else { MiniAntiSpamCount[ i ] =0; }
}
}
//==============================================================================
public Unmute( playerid ) {
SendClientMessage( playerid, COLOR_GREEN, "*** You've been unmuted.");
muted[ playerid ] =0;
MiniAntiSpamCount[ playerid ] =0;
return 1;
}
//==============================================================================
public GameModeInitExitFunc()
{
for (new i = 0; i < SLOTS; i++) {
if (IsPlayerConnected( i )) {
PlayerPlaySound( i, 1069, 0.0, 0.0, 0.0);
}
}
SetTimer( "GameModeExitFunc", 4000, 0 );
return 1;
}
//==============================================================================
public GameModeExitFunc( ) {
GameModeExit( );
return 1;
}
//==============================================================================
public SendAdminMessage(color, string[])
{
for (new i = 0; i < SLOTS; i++) {
if (IsPlayerConnected( i )) {
if (IsPlayerAdmin( i )) {
SendClientMessage( i, color, string );
}
}
}
}
//==============================================================================
strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
//------------------------------------------------------------------------------
isStringSame(const string1[], const string2[], len) {
for(new i = 0; i < len; i++) {
if(string1[i]!=string2[i])
return 0;
if(string1[i] == 0 || string1[i] == '\n')
return 1;
}
return 1;
}