#include <a_samp>
#define TEAM_Groove 0
#define TEAM_Ballas 1
#define TEAM_Vagos 2
#define TEAM_Aztech 3
#define COLOR_GREEN 0x33AA33AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PURPLE 0x9900FFAA
#define COLOR_BLUE 0x0000FFAA
#if defined GameMod
new bandazona; //a bandazona helyett írhatsz mást is de a késobbiekben is azt használd
new pName[MAX_PLAYER_NAME];
new string[46];
public OnGameModeInit()
{ SetGameModeText(\"[HUN]GangWar\");
Vagos = GangZoneCreate(2151.4946, 2905.3301, 2875.4819, 2237.8970);
Groove = GangZoneCreate(2830.9036, 1819.4818, 1819.0748, 2824.2422);
Aztech = GangZoneCreate(1702.6885, 1695.5966, 2705.5020, 2822.7349);
Ballas = GangZoneCreate(2068.9600, 1181.8871, 1145.7611, 1688.2286);
AddPlayerClass(105,2495.7029,-1685.9937,13.5148,356.2239,0,0,0,0,0,0); // Groove !!
AddPlayerClass(106,2495.7029,-1685.9937,13.5148,356.2239,0,0,0,0,0,0); // Groove2 !!
AddPlayerClass(107,2495.7029,-1685.9937,13.5148,356.2239,0,0,0,0,0,0); // Groove3 !!
AddPlayerClass(102,1958.4689,-1451.9873,13.5492,178.4809,0,0,0,0,0,0); // Ballas
AddPlayerClass(103,1958.4689,-1451.9873,13.5492,178.4809,0,0,0,0,0,0); // Ballas2
AddPlayerClass(104,1958.4689,-1451.9873,13.5492,178.4809,0,0,0,0,0,0); // Ballas3
AddPlayerClass(108,2228.6716,-1160.4449,25.7893,90.1122,0,0,0,0,0,0); // Vagos
AddPlayerClass(109,2228.6716,-1160.4449,25.7893,90.1122,0,0,0,0,0,0); // Vagos2
AddPlayerClass(110,2228.6716,-1160.4449,25.7893,90.1122,0,0,0,0,0,0); // Vagos3
AddPlayerClass(114,1777.8782,-1933.1636,13.3861,357.2441,0,0,0,0,0,0); // Aztech
AddPlayerClass(115,1777.8782,-1933.1636,13.3861,357.2441,0,0,0,0,0,0); // Aztech2
AddPlayerClass(116,1777.8782,-1933.1636,13.3861,357.2441,0,0,0,0,0,0); // Aztech3
AddStaticVehicle(461,2528.9556,-1670.6360,14.7559,270.5225,37,1); // lspd car
AddStaticVehicle(445,2509.0703,-1670.7488,13.3004,356.4361,35,35); // lspd car
AddStaticVehicle(481,2491.0559,-1684.0575,13.0237,93.3644,6,6); // lspd car
AddStaticVehicle(502,2499.2769,-1656.4315,13.2883,68.2444,36,88); // lsprd car
AddStaticVehicle(475,2480.0864,-1654.7965,13.1548,267.9198,9,39); // lsprd car
AddStaticVehicle(507,1981.6599,-1434.5834,14.3156,0.3465,42,42); // lspd car
AddStaticVehicle(509,1964.6073,-1455.1844,13.0621,90.1255,74,1); // lspd car
AddStaticVehicle(510,1969.8901,-1455.4294,13.1453,87.0659,39,39); // lspd car
AddStaticVehicle(521,1981.2013,-1453.6289,12.9580,330.7261,75,13); // lspd car
AddStaticVehicle(526,1939.2688,-1456.0024,13.2293,90.6587,9,39); // lspd car
AddStaticVehicle(527,1929.4419,-1455.9291,13.1767,90.6104,66,1); // lspd car
AddStaticVehicle(466,2227.4805,-1177.5659,25.4684,88.9471,2,76); // lspd car
AddStaticVehicle(467,2227.6807,-1166.4425,25.4870,90.3008,2,1); // lspd car
AddStaticVehicle(468,2205.8176,-1165.1788,25.3957,87.9524,3,3); // lspd car
AddStaticVehicle(474,2206.1580,-1172.8428,25.4893,270.8489,105,1); // lspd car
AddStaticVehicle(534,1803.6152,-1918.3341,13.1152,0.4618,62,62); // lspd car
AddStaticVehicle(533,1796.4214,-1935.5226,13.1712,269.4492,75,1); // lspd car
AddStaticVehicle(535,1788.2743,-1935.9524,13.2466,270.1948,31,1); // lspd car
AddStaticVehicle(536,1803.7062,-1929.3168,13.1262,0.5924,26,96); // lspd car
AddStaticVehicle(468,1773.4362,-1943.5521,13.2272,5.8687,46,46); // lspd car
AddStaticVehicle(468,1771.8164,-1943.8228,13.2209,0.8483,53,53); // lspd car
AddStaticVehicle(451,1463.5503,-902.0644,54.5430,1.6430,125,125); // lspd car
AddStaticVehicle(462,1439.4587,-937.6409,35.8545,268.6787,13,13); // lspd car
AddStaticVehicle(475,1414.0465,-936.1802,35.4986,80.2208,9,39); // lspd car
AddStaticVehicle(477,1400.0565,-954.1740,34.7989,260.5081,94,1); // lspd car
AddStaticVehicle(479,1331.7573,-1059.7688,28.2465,270.6331,59,36); // lspd car
AddStaticVehicle(480,1363.9473,-1111.4132,23.6206,352.8510,12,12); // lspd car
AddStaticVehicle(481,1338.2379,-1125.4642,23.1935,356.5174,3,3); // lspd car
AddStaticVehicle(482,1337.7920,-1248.8030,13.6040,180.6340,48,48); // lspd car
AddStaticVehicle(492,1336.6924,-1315.1680,13.3248,360.0000,77,26); // lspd car
AddStaticVehicle(494,1333.8420,-1452.8525,13.3559,169.8707,36,13); // lspd car
AddStaticVehicle(500,1294.5846,-1547.7037,13.5631,170.7902,40,84); // lspd car
AddStaticVehicle(505,1291.0520,-1635.1823,13.6905,359.9999,14,123); // lspd car
AddStaticVehicle(506,1373.1125,-1737.5569,13.1660,268.5204,6,6); // lspd car
AddStaticVehicle(507,2749.0942,-2391.5942,13.4735,0.7662,42,42); // lspd car
AddStaticVehicle(508,2733.0571,-2392.1699,14.0068,358.9482,1,1); // lspd car
AddStaticVehicle(509,2724.7046,-2412.2507,13.1455,359.9988,74,1); // lspd car
AddStaticVehicle(510,2728.9167,-2412.9683,13.2242,5.7990,46,46); // lspd car
AddStaticVehicle(514,2739.0837,-2391.2710,14.2181,0.9197,25,1); // lspd car
AddStaticVehicle(515,2776.9219,-2401.6619,14.6569,270.9866,24,77); // lspd car
AddStaticVehicle(516,2755.8191,-2393.2073,13.4682,358.9124,119,1); // lspd car
AddStaticVehicle(517,2743.2786,-2420.6624,13.4958,269.8157,36,36); // lspd car
AddStaticVehicle(518,2744.7026,-2431.5566,13.3147,271.3810,9,39); // lspd car
AddStaticVehicle(521,2753.0449,-2444.2554,13.2062,0.3455,75,13); // lspd car
AddStaticVehicle(522,2770.5059,-2426.9260,13.2199,356.7404,3,8); // lspd car
AddStaticVehicle(523,2769.8201,-2411.2424,13.1942,0.3386,0,0); // lspd car
AddStaticVehicle(524,2764.7283,-2387.1294,14.5655,0.6789,61,27); // lspd car
AddStaticVehicle(518,2539.1753,-2344.0098,21.0786,44.4874,17,1); // lspd car
AddStaticVehicle(517,2433.6174,-2223.8918,24.9604,43.8146,43,41); // lspd car
AddStaticVehicle(458,2418.2361,-2455.5173,13.5222,224.8335,101,1); // miniraktár
AddStaticVehicle(459,2428.0454,-2466.4688,13.6790,225.3570,28,28); // miniraktár
AddStaticVehicle(461,2416.6990,-2456.7986,13.2284,218.3487,37,1); // miniraktár
AddStaticVehicle(462,2415.8259,-2457.4331,13.2497,226.1837,13,13); // miniraktár
AddStaticVehicle(463,2414.9871,-2458.6975,13.1826,229.2193,84,84); // miniraktár
AddStaticVehicle(467,2403.5249,-2472.1445,13.3686,223.3918,58,8); // miniraktár
AddStaticVehicle(468,2414.8452,-2459.7891,13.3127,228.0756,46,46); // miniraktár
AddStaticVehicle(475,2406.0005,-2469.7141,13.4316,223.3267,9,39); // miniraktár
AddStaticVehicle(477,2407.6033,-2466.6030,13.3905,222.9995,94,1); // miniraktár
AddStaticVehicle(478,2425.5876,-2468.6895,13.6200,224.3412,66,1); // miniraktár
AddStaticVehicle(479,2410.5955,-2464.2700,13.4317,223.9088,59,36); // miniraktár
AddStaticVehicle(460,2354.5994,-2507.1292,1.9982,2.8046,1,30); //
AddStaticVehicle(460,2355.1892,-2529.8806,1.4733,357.2726,17,23); //
AddStaticVehicle(457,2412.8330,-2461.5371,13.2696,222.6762,2,1); // lspdcar
AddStaticVehicle(455,2419.2163,-2474.0247,14.0701,225.3044,84,58); // miniraktár
AddStaticVehicle(455,1797.8458,-2161.2708,13.8983,269.8010,84,58); // kocsi
AddStaticVehicle(456,1940.8693,-2143.2056,13.7309,359.0027,91,63); // kocsi
AddStaticVehicle(457,1976.0350,-2185.5876,13.1735,355.6135,2,1); // kocsi
AddStaticVehicle(458,1980.7006,-2183.6216,13.4255,0.1106,101,1); // kocsi
AddStaticVehicle(512,1730.1464,-2415.3245,13.8359,182.8264,61,96); // repcsi
AddStaticVehicle(511,1647.5110,-2414.5295,14.9306,179.1137,8,66); // repcsi
AddStaticVehicle(512,1714.1879,-2415.9978,13.8371,178.0104,96,96); // repcsi
AddStaticVehicle(513,1552.3506,-2422.3252,14.0979,179.0751,21,36); // repcsi
AddStaticVehicle(520,1483.9044,-2470.2068,14.5465,170.2788,0,0); // repcsi
AddStaticVehicle(520,1459.9758,-2459.8147,14.7289,164.1001,0,0); // repcsi
AddStaticVehicle(513,1568.4565,-2421.3174,14.0972,181.0776,21,34); // repcsi
AddStaticVehicle(514,1945.1250,-1979.0955,14.1317,270.2786,25,1); // kocsi
AddStaticVehicle(521,1948.6060,-1855.5901,13.1173,89.9546,75,13); // moci
AddStaticVehicle(522,1939.7247,-1778.8848,12.9554,1.0003,3,8); // moci
AddStaticVehicle(525,1938.6605,-1770.0925,13.2588,358.6706,17,20); // kocsi
AddStaticVehicle(526,1709.0894,-1588.5109,13.2134,80.4860,9,39); // kocsi
AddStaticVehicle(527,1365.3795,-1737.9700,13.1762,91.6172,53,1); // kocsi
AddStaticVehicle(529,1042.2285,-1658.2676,13.0940,358.7329,42,42); // kocsi
AddStaticVehicle(531,943.3254,-1567.4064,13.4234,87.9723,36,2); // kocsi
AddStaticVehicle(534,912.4124,-1658.2744,13.1846,0.9209,42,42); // kocsi
AddStaticVehicle(536,782.9968,-1630.3124,13.1203,88.6388,12,1); // kocsi
AddStaticVehicle(539,728.8320,-1492.0352,0.2657,82.5806,79,74); // kocsi
AddStaticVehicle(539,719.3877,-1494.6228,0.5392,358.0799,61,98); // kocsi
AddStaticVehicle(540,622.4247,-1535.1670,15.0120,0.7363,42,42); // kocsi
AddStaticVehicle(541,622.3932,-1696.6661,14.9788,172.2561,58,8); // kocsi
AddStaticVehicle(542,643.1039,-1306.6476,13.7643,356.7025,24,118); // kocsi
AddStaticVehicle(543,483.6870,-1281.2083,15.3737,130.1431,32,8); // kocsi
AddStaticVehicle(544,901.2936,-994.1274,37.6508,287.2379,3,1); // kocsi
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
switch (classid)
{
case 0:
{
GameTextForPlayer(playerid, \"~g~Groove!\", 1000, 5);
SetPlayerColor(playerid, 0x2641FEAA);
}
case 1:
{
GameTextForPlayer(playerid, \"~p~Ballas!\", 1000, 5);
SetPlayerColor(playerid, 0xAA3333AA);
}
case 2:
{
GameTextForPlayer(playerid, \"~y~Vagos!\", 1000, 5);
SetPlayerColor(playerid, 0x2641FEAA);
}
case 3:
{
GameTextForPlayer(playerid, \"~b~Aztech!\", 1000, 5);
SetPlayerColor(playerid, 0x2641FEAA);
}
}
SetPlayerPos(playerid, 723.0118,-1496.7833,1.9343,179.6049);
SetPlayerCameraPos(playerid, 723.0118,-1496.7833,1.9343,179.6049);
SetPlayerCameraLookAt(playerid, 723.0118,-1496.7833,1.9343,179.6049);
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,\"~r~Csá all!Jo szorakozást!!\",5000,5);
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), \"%s jött gamelni!!.\", pName);//Csatlakozási szöveg
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
case 0: format(string, sizeof(string), \"%s Elhuzot. (Idotúllépés)\", pName);//Ezt átirhatod amire akarod,hogy kiírja kilépéskor
case 1: format(string, sizeof(string), \"%s Lelépet. (Kilépett)\", pName);//Ezt átirhatod amire akarod,hogy kiírja kilépéskor
case 2: format(string, sizeof(string), \"%s Ki lett dobva. (Kick)\", pName);//Ezt átirhatod amire akarod,hogy kiírja kilépéskor
SendClientMessageToAll(COLOR_RED, string);//Ilyen szinel fogja ki írni
return 1;
}
public OnPlayerSpawn(playerid)
{
if gTeam[playerid] == TEAM_GROOVE)
{
SetPlayerColor(playerid,COLOR_GREEN);
GivePlayerWeapon(playerid,22,1000);
GivePlayerWeapon(playerid,32,1000);
GivePlayerWeapon(playerid,31,1000);
}
else if gTeam[playerid] == TEAM_BALLAS)
{
SetPlayerColor(playerid,COLOR_PURPLE);
GivePlayerWeapon(playerid,22,1000);
GivePlayerWeapon(playerid,28,1000);
GivePlayerWeapon(playerid,30,1000);
}
else if gTeam[playerid] == TEAM_VAGOS)
{
SetPlayerColor(playerid,COLOR_YELLOW);
GivePlayerWeapon(playerid,22,1000);
GivePlayerWeapon(playerid,29,1000);
GivePlayerWeapon(playerid,30,1000);
}
else if gTeam[playerid] == TEAM_AZTECH)
{
SetPlayerColor(playerid,COLOR_BLUE);
GivePlayerWeapon(playerid,22,1000);
GivePlayerWeapon(playerid,27,1000);
GivePlayerWeapon(playerid,31,1000);
}
GangZoneShowForPlayer(playerid, Vagos,~y~);
GangZoneShowForPlayer(playerid, Groove,~g~);
GangZoneShowForPlayer(playerid, Aztech,~b~);
GangZoneShowForPlayer(playerid, Ballas,~p~);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/mycommand\", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
public OnPlayerInfoChange(playerid)
{
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
#endif