Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- --------------------------------------------------------------------------------
- | Balkan Express | TDM |
- |------------------------------------------------------------------------------|
- | - Zasluge - |
- | = Krajna17 = |
- | = ZDE5 = |
- |------------------------------------------------------------------------------|
- | - Vezija - |
- | = v.2.5 = |
- |------------------------------------------------------------------------------|
- | - Sljedece - |
- | = Dodati Admin System = |
- | = Dodati nove timove = |
- --------------------------------------------------------------------------------
- | - Copyright - |
- | = Balkan Express = |
- | = Owner: Krajna17 = |
- | * BE:TD * |
- --------------------------------------------------------------------------------
- */
- //-- ( Includes ) --
- #include <a_samp>
- #include <streamer>
- #include <YSI\y_ini>
- #include <zcmd>
- //-- ( Timovi ) --
- #define TEAM_SWAT 0
- #define TEAM_BALLAS 1
- #define TEAM_GROOVE 2
- //-- ( O Serveru ) --
- #define VLASNIK_SERVER "Krajna17"
- #define SERVER_WEB "www.samp.com"
- #define MAP_NAME "BE | TDM"
- //-- ( Dialozi ) --
- #define DIALOG_REGISTRACIJA 1
- #define DIALOG_PRIJAVA 2
- #define DIALOG_ORUZIJE 3
- #define DIALOG_PROMJENILOZINKU 4
- #define DIALOG_USPIJEH 5
- //-- ( Boje zona ) --
- #define SWAT_ZONE_COLOR 0x0065E196
- #define BALLAS_ZONE_COLOR 0xC90E5496
- #define GROOVE_ZONE_COLOR 0x33AA33AA
- //-- ( Boje timova ) --
- #define TEAM_SWAT_COLOR 0x0065E196
- #define TEAM_BALLAS_COLOR 0xC90E5496
- #define TEAM_GROOVE_COLOR 0x33AA33AA
- //-- ( Sve boje ) --
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_MALERT 0xDB4D33FF
- #define COLOR_LEAVE 0xC86D46FF
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_MOST_WANTED 0x9A0000E7
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_CALERT 0x78B6A8FF
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_FADE1 0xE6E6E6E6
- #define COLOR_FADE2 0xC8C8C8C8
- #define COLOR_FADE3 0xAAAAAAAA
- #define COLOR_FADE4 0x8C8C8C8C
- #define COLOR_FADE5 0x6E6E6E6E
- #define COLOR_PURPLE 0xC2A2DAAA
- #define COLOR_LIME 0x10F441AA
- #define COLOR_MAGENTA 0xFF00FFFF
- #define COLOR_SEAGREEN 0x10F441AA
- #define COLOR_NAVY 0x000080AA
- #define COLOR_AQUA 0xF0F8FFAA
- #define COLOR_CRIMSON 0xDC143CAA
- #define COLOR_FLBLUE 0x6495EDAA
- #define COLOR_BISQUE 0xFFE4C4AA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_REALRED 0xFF0606FF
- #define COLOR_LIGHTRED 0xFF6347AA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_LIRED 0xAF0000B4
- #define COLOR_LIGHTGREEN 0x9ACD32AA
- #define COLOR_CHARTREUSE 0x7FFF00AA
- #define COLOR_BROWN 0XA52A2AAA
- #define COLOR_CORAL 0xFF7F50AA
- #define COLOR_GOLD 0xB8860BAA
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GRAD2 0xBFC0C2FF
- #define COLOR_GRAD3 0xCBCCCEFF
- #define COLOR_GRAD4 0xD8D8D8FF
- #define COLOR_GRAD5 0xE3E3E3FF
- #define COLOR_GRAD6 0xF0F0F0FF
- #define COL_WHITE "{FFFFFF}"
- #define COL_RED "{F81414}"
- #define COL_GREEN "{00FF22}"
- #define COL_LIGHTBLUE "{00CED1}"
- #define purple "{D526D9}"
- #define lightgreen "{00FF00}"
- #define pink "{FF80FF}"
- #define green "{33AA33}"
- #define red "{FF0000}"
- #define yellow "{FFFF00}"
- #define white "{FFFFFF}"
- #define grey "{AFAFAF}"
- #define newb "{7DAEFF}"
- #define orange "{FF8000}"
- #define lightred "{FF6347}"
- #define lightblue "{33CCFF}"
- //-- ( Random Poruke ) --
- new RandomMessages[][] =
- {
- "{F81414}[BE]: {FFFFFF}Dobrodosao na nas server, ugodnu igru zeli ti BE Staff Community!",
- "{F81414}[BE]: {FFFFFF}Pomozite nasoj zajednici i pozovite vase prijatelje i reklamirajte nas!",
- "{F81414}[BE]: {FFFFFF}Mozete promijeniti tim komadnom[/tim]!!",
- "{F81414}[BE]: {FFFFFF}Mozete kupiti oruzija s komandom[/oruzije]!!",
- "{F81414}[BE]: {FFFFFF}Server Verzija: Balkan Express v2.5 !!",
- "{F81414}[BE]: {FFFFFF}Ukoliko primjetite neku gresku javite se na Facebook: Krayna NW!",
- "{F81414}[BE]: {FFFFFF}Posjetite nas forum www.balkan-express-tdm.com!"
- };
- //-- ( Spawn ) --
- new Float:SwatSpawn[][] =
- {
- {1215.7853,-1814.2609,16.5938},
- {1275.4395,-1803.1868,13.3885}
- };
- new Float:BallasSpawn[][] =
- {
- {2153.9648,-1812.1898,13.5498},
- {2176.9434,-1788.8566,13.5156}
- };
- new Float:GrooveSpawn[][] =
- {
- {2508.6692,-1686.1097,13.5636},
- {2473.2097,-1690.3546,13.5141}
- };
- #define PATH "/Igraci/%s.ini"
- new gTeam[MAX_PLAYERS];
- new GZ_ZONE1; //Swat
- new GZ_ZONE2; //Ballas
- new GZ_ZONE3; //Groove
- new Text:SWAT;
- new Text:BALLAS;
- new Text:GROOVE;
- new telep;
- new SW; //Trgovina(Swat)
- new BA; //Trgovina(Ballas)
- new GR; //Trgovina(Groove)
- //-- ( Zone za zauzimanje ) --
- #define SO 0
- #define SA 1
- //-- ( Variable za zone ) --
- new CP[30];
- new Zone[30];
- new tCheck[30];
- new zDefine[MAX_PLAYERS];
- new UnderAttack[30];
- new timer[MAX_PLAYERS][30];
- //-- ( TextDraw ) --
- //------TDovi
- enum pInfo
- {
- pPass,
- pCash,
- pAdmin,
- pKills,
- pScore,
- pDeaths
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- //----------------------------------------------------------------------------//
- main()
- {
- print("====================================");
- print(" Balkan Express | TDM ");
- print(" Uspjesno ucitana ");
- print(" BE by Krajna17 ");
- print("====================================");
- }
- public OnGameModeInit()
- {
- SetGameModeText("BE | TDM");
- SendRconCommand( "mapname "MAP_NAME"" );
- DisableInteriorEnterExits( );
- UsePlayerPedAnims();
- SetTimer("RandomMessagess",110000,true);
- AddPlayerClass(285,1216.7590,-1814.5166,16.5938,250.5854,0,0,0,0,0,0); //Swat
- AddPlayerClass(104,2153.5920,-1812.5614,13.5498,306.7557,0,0,0,0,0,0); //Ballas
- AddPlayerClass(107,2494.6377,-1695.3959,23.5592,205.7720,0,0,0,0,0,0); //Groove
- GZ_ZONE1 = GangZoneCreate(1200.85, -1855.563, 1311.132, -1721.339); // Swat
- GZ_ZONE2 = GangZoneCreate(2079.305, -1898.988, 2193.39, -1760.817); //Ballas
- GZ_ZONE3 = GangZoneCreate(2457.724,-1629.878,2541.415,-1726.302); //Groove
- //-- ( Zone za zauzimanje ) --
- Zone[SO] = GangZoneCreate(2406.349, -2052.949, 2512.828, -1883.197);
- Zone[SA] = GangZoneCreate(2626.913, -1895.04, 2836.069, -1673.966);
- //-- ( Checkpointi ) --
- CP[SO] = CreateDynamicCP(2451.3579,-1976.1241,13.5539,3, -1,-1,-1,100.0);
- CP[SA] = CreateDynamicCP(2702.9163,-1697.4459,11.5086,3, -1,-1,-1,100.0);
- telep = CreatePickup(1318, 19, 2152.0903,-1789.1897,13.5108);
- SW = CreatePickup(1314, 19, 1255.4547,-1804.9713,13.4197);
- BA = CreatePickup(1314, 19, 2168.4553,-1788.4194,13.5204);
- GR = CreatePickup(1314, 19, 2514.3193,-1691.6177,14.0460);
- Create3DTextLabel("*Krov*", 0xFFAF02FF, 2152.0903,-1789.1897,13.5108, 30.0,0);
- Create3DTextLabel("*Trgovina*", 0xFFAF02FF, 1255.4547,-1804.9713,13.4197, 40.0,0); //Swat
- Create3DTextLabel("*Trgovina*", 0xFFAF02FF, 2168.4553,-1788.4194,13.5204, 40.0,0); //Ballas
- Create3DTextLabel("*Trgovina*", 0xFFAF02FF, 2514.3193,-1691.6177,14.0460, 40.0,0); //Groove
- //-- ( SWAT Baza ) --
- CreateObject(987, 1195.38245, -1820.17358, 12.48669, 0.00000, 0.00000, 269.74701);
- CreateObject(987, 1195.32190, -1830.17163, 12.48669, 0.00000, 0.00000, 269.74701);
- CreateObject(987, 1195.18335, -1842.05725, 12.48669, 0.00000, 0.00000, 359.70959);
- CreateObject(3749, 1214.04004, -1842.35474, 18.17841, 0.00000, 0.00000, 359.86862);
- CreateObject(987, 1221.69373, -1842.04395, 12.48669, 0.00000, 0.00000, 359.70959);
- CreateObject(987, 1233.67407, -1842.11987, 12.48669, 0.00000, 0.00000, 359.70959);
- CreateObject(987, 1245.65527, -1842.21289, 12.48669, 0.00000, 0.00000, 359.70959);
- CreateObject(987, 1249.60681, -1842.31689, 12.48669, 0.00000, 0.00000, 359.70959);
- CreateObject(3749, 1269.20520, -1842.74231, 18.38751, 0.00000, 0.00000, 359.86862);
- CreateObject(987, 1287.37524, -1830.21191, 12.48669, 0.00000, 0.00000, 90.03559);
- CreateObject(987, 1275.64404, -1842.07874, 12.48669, 0.00000, 0.00000, 359.70959);
- CreateObject(987, 1287.35449, -1842.21643, 12.48669, 0.00000, 0.00000, 90.03559);
- CreateObject(987, 1287.35938, -1818.20593, 12.48669, 0.00000, 0.00000, 90.03559);
- CreateObject(987, 1287.32690, -1806.22742, 12.48669, 0.00000, 0.00000, 90.03559);
- CreateObject(987, 1287.26782, -1797.24548, 12.48669, 0.00000, 0.00000, 90.03559);
- CreateObject(987, 1287.39343, -1785.54675, 12.16636, 0.00000, 0.00000, 179.17168);
- CreateObject(16599, 1199.17261, -1822.96228, 17.07084, 0.00000, 0.00000, 359.38477);
- CreateObject(3881, 1277.17200, -1837.43213, 14.23146, 0.00000, 0.00000, 359.92636);
- CreateObject(1684, 1250.65967, -1804.32056, 13.77478, 0.00000, 0.00000, 36.75390);
- CreateObject(939, 1262.36035, -1790.91028, 15.00116, 0.00000, 0.00000, 358.83173);
- CreateObject(2036, 1224.99622, -1811.92578, 15.66597, 0.00000, 0.00000, 352.81271);
- CreateObject(2035, 1225.48157, -1812.16174, 15.61054, 0.00000, 0.00000, 0.00000);
- //-- ( SWAT vozila ) --
- CreateVehicle(427, 1270.7599, -1796.1221, 13.3485, 178.9794, -1, -1, -1);
- CreateVehicle(427, 1275.1378, -1796.2709, 13.3485, 178.9794, -1, -1, -1);
- CreateVehicle(427, 1279.9856, -1796.2302, 13.3485, 178.9794, -1, -1, -1);
- CreateVehicle(490, 1254.0857, -1833.9554, 13.4270, 0.0585, -1, -1, -1);
- CreateVehicle(490, 1248.5536, -1833.8389, 13.4270, 359.8564, -1, -1, -1);
- CreateVehicle(523, 1244.3732, -1834.9708, 12.7828, 0.0000, -1, -1, -1);
- CreateVehicle(523, 1241.7274, -1834.9020, 12.7828, 0.0000, -1, -1, -1);
- CreateVehicle(523, 1239.3851, -1834.8463, 12.7828, 0.0000, -1, -1, -1);
- CreateVehicle(528, 1280.1508, -1813.8910, 13.1808, 89.2648, -1, -1, -1);
- CreateVehicle(528, 1279.9313, -1819.0088, 13.1808, 89.2648, -1, -1, -1);
- CreateVehicle(601, 1199.8546, -1834.6018, 13.0058, 270.4161, -1, -1, -1);
- CreateVehicle(601, 1199.7339, -1827.6613, 13.0058, 270.4161, -1, -1, -1);
- CreateVehicle(596, 1234.8986, -1834.0291, 13.0015, 359.1868, -1, -1, -1);
- CreateVehicle(596, 1230.5980, -1833.8588, 13.0015, 359.1868, -1, -1, -1);
- //-- ( BALLAS Baza ) --
- CreateObject(3749, 2185.28662, -1764.43384, 17.98042, 0.00000, 0.00000, 0.00000);
- CreateObject(987, 2195.06543, -1777.24792, 15.03420, 0.00000, 0.00000, 89.74636);
- CreateObject(987, 2195.13696, -1789.20520, 15.03420, 0.00000, 0.00000, 89.74636);
- CreateObject(987, 2195.11011, -1801.19739, 15.03420, 0.00000, 0.00000, 89.74636);
- CreateObject(987, 2195.06787, -1813.13782, 15.03420, 0.00000, 0.00000, 89.74636);
- CreateObject(987, 2195.00952, -1814.99780, 15.03420, 0.00000, 0.00000, 89.74636);
- CreateObject(3593, 2190.72412, -1810.46155, 12.73489, 0.00000, 0.00000, 353.17432);
- CreateObject(3593, 2187.78442, -1809.19458, 12.73489, 0.00000, 0.00000, 353.17432);
- CreateObject(1230, 2178.44727, -1769.35889, 12.89274, 0.00000, 0.00000, 0.00000);
- CreateObject(1230, 2177.73706, -1770.03406, 12.89274, 0.00000, 0.00000, 0.00000);
- CreateObject(1230, 2178.93628, -1770.71484, 12.89374, 0.00000, 0.00000, 0.00000);
- CreateObject(16096, 2168.54443, -1784.59583, 13.52810, 0.00000, 0.00000, 88.95236);
- //-- ( BALLAS Vozila ) --
- CreateVehicle(463, 2172.0120, -1792.8088, 12.8607, 178.0000, 211, 0, -1);
- CreateVehicle(566, 2182.5864, -1807.2084, 13.0604, 0.0000, 211, 0, -1);
- CreateVehicle(566, 2178.2295, -1807.3373, 13.0604, 0.0000, 211, 0, -1);
- CreateVehicle(581, 2173.8892, -1808.7372, 12.8611, 0.0000, 211, 0, -1);
- CreateVehicle(463, 2169.5820, -1792.7960, 12.8607, 178.0000, 211, 0, -1);
- CreateVehicle(463, 2167.0925, -1792.7181, 12.8607, 178.0000, 211, 0, -1);
- CreateVehicle(581, 2171.4058, -1808.6403, 12.8611, 0.0000, 211, 0, -1);
- CreateVehicle(475, 2158.0933, -1793.6899, 12.9726, 180.2626, 211, 0, -1);
- CreateVehicle(475, 2161.9470, -1793.6361, 12.9726, 180.2626, 211, 0, -1);
- CreateVehicle(459, 2188.1936, -1800.1414, 13.2603, 0.0000, 211, 0, -1);
- CreateVehicle(459, 2188.1338, -1792.9691, 13.2603, 0.0000, 211, 0, -1);
- CreateVehicle(548, 2160.7998, -1773.5038, 20.2283, 0.3314, 211, 0, -1);
- CreateVehicle(548, 2140.7144, -1773.6785, 20.2283, 0.3314, 211, 0, -1);
- CreateVehicle(469, 2141.4348, -1812.6525, 18.8620, 359.4868, 211, 0, -1);
- //-- ( GROOVE Baza ) --
- CreateObject(1411,2485.0000000,-1722.1000000,14.2000000,0.0000000,0.0000000,358.0000000);
- CreateObject(1411,2479.8999000,-1721.9000000,14.2000000,0.0000000,0.0000000,0.0000000);
- CreateObject(2991,2482.5000000,-1719.8000000,13.2000000,0.0000000,0.0000000,270.0000000);
- CreateObject(2991,2478.7000000,-1719.7000000,13.2000000,0.0000000,0.0000000,270.0000000);
- CreateObject(2991,2480.6001000,-1720.3000000,14.5000000,0.0000000,0.0000000,160.0000000);
- CreateObject(2991,2480.3999000,-1716.7000000,13.2000000,0.0000000,0.0000000,180.0000000);
- CreateObject(2991,2480.5000000,-1717.3000000,14.5000000,0.0000000,0.0000000,187.9990000);
- CreateObject(3749,2463.0000000,-1658.8000000,18.0000000,0.0000000,0.0000000,272.0000000);
- CreateObject(1411,2521.1001000,-1722.1000000,14.2000000,0.0000000,0.0000000,0.0000000);
- CreateObject(1411,2540.5000000,-1717.9000000,14.1000000,0.0000000,0.0000000,88.0000000);
- CreateObject(1411,2540.5000000,-1712.5000000,14.1000000,0.0000000,0.0000000,87.9950000);
- CreateObject(1411,2526.3000000,-1722.0000000,14.2000000,0.0000000,0.0000000,359.9950000);
- CreateObject(1411,2531.5000000,-1722.0000000,14.3000000,0.0000000,0.0000000,359.9950000);
- CreateObject(1411,2535.0000000,-1722.0000000,14.2000000,0.0000000,0.0000000,359.9950000);
- CreateObject(997,2537.8000000,-1722.3000000,14.9000000,0.0000000,0.0000000,28.0000000);
- //-- ( GROOVE Vozila ) --
- CreateVehicle(567,2468.1001000,-1669.7000000,13.3000000,10.0000000,137,132,-1);
- CreateVehicle(567,2471.7000000,-1678.3000000,13.5000000,43.9980000,137,132,-1);
- CreateVehicle(492,2510.0000000,-1666.1000000,13.5000000,10.0000000,137,157,-1);
- CreateVehicle(492,2507.6001000,-1677.9000000,13.4000000,325.9960000,137,157,-1);
- CreateVehicle(411,2505.8999000,-1695.3000000,13.4000000,0.0000000,137,110,-1);
- CreateVehicle(482,2478.3000000,-1653.4000000,13.7000000,90.0000000,137,28,-1);
- CreateVehicle(482,2486.5000000,-1653.6000000,13.7000000,90.0000000,137,28,-1);
- CreateVehicle(468,2532.3000000,-1669.8000000,14.9000000,0.0000000,137,34,-1);
- CreateVehicle(468,2530.3999000,-1669.8000000,14.9000000,0.0000000,137,34,-1);
- CreateVehicle(468,2528.6001000,-1669.9000000,14.9000000,0.0000000,137,34,-1);
- CreateVehicle(468,2526.8999000,-1669.8000000,14.9000000,0.0000000,137,34,-1);
- CreateVehicle(487,2528.3000000,-1677.3000000,20.2000000,86.0000000,137,169,-1);
- CreateVehicle(487,2494.2000000,-1703.0000000,23.6000000,359.9950000,137,169,-1);
- CreateVehicle(481,2497.2000000,-1653.4000000,13.1000000,128.0000000,137,152,-1);
- CreateVehicle(481,2499.6001000,-1653.9000000,13.1000000,127.9960000,137,152,-1);
- //-- ( TextDraw - Create ) --
- SWAT = TextDrawCreate(205.000000, 250.000000, "~b~Swat");
- TextDrawBackgroundColor(SWAT, 51);
- TextDrawFont(SWAT, 2);
- TextDrawLetterSize(SWAT, 0.538000, 2.271997);
- TextDrawColor(SWAT, 16711935);
- TextDrawSetOutline(SWAT, 1);
- TextDrawSetProportional(SWAT, 1);
- TextDrawSetShadow(SWAT,1);
- BALLAS = TextDrawCreate(205.000000, 250.000000, "~r~Ballas");
- TextDrawBackgroundColor(BALLAS, 51);
- TextDrawFont(BALLAS, 2);
- TextDrawLetterSize(BALLAS, 0.538000, 2.271997);
- TextDrawColor(BALLAS, 0xFF0000AA);
- TextDrawSetOutline(BALLAS, 1);
- TextDrawSetProportional(BALLAS, 1);
- TextDrawSetShadow(BALLAS,1);
- GROOVE = TextDrawCreate(205.000000, 250.000000, "Groove");
- TextDrawBackgroundColor(GROOVE, 51);
- TextDrawFont(GROOVE, 2);
- TextDrawLetterSize(GROOVE, 0.538000, 2.271997);
- TextDrawColor(GROOVE, 0x33AA33AA);
- TextDrawSetOutline(GROOVE, 1);
- TextDrawSetProportional(GROOVE, 1);
- TextDrawSetShadow(GROOVE,1);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- //-- ( Poruka na ulasku ) --
- SendClientMessage(playerid, COLOR_GREY,"Dobrodosao na Balkan Express | TDM server!");
- //-- ( CP Zone ) --
- GangZoneShowForPlayer(playerid, Zone[SO], 0xFFFFFF96);
- GangZoneShowForPlayer(playerid, Zone[SA], 0xFFFFFF96);
- TextDrawHideForPlayer(playerid, SWAT);
- TextDrawHideForPlayer(playerid, BALLAS);
- TextDrawHideForPlayer(playerid, GROOVE);
- //TextDrawHideForPlayer(playerid, BE0);
- //TextDrawHideForPlayer(playerid, BE1);
- if(fexist(UserPath(playerid)))
- {
- INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- ShowPlayerDialog(playerid, DIALOG_PRIJAVA, DIALOG_STYLE_INPUT,"{F81414}Prijava","{FFFFFF}Dobrodosao!\n{FFFFFF}Tvoj account je {F81414}pronadjen!{FFFFFF}\nUpisite svoju lozinku ispod.","Prijava","Izlaz");
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_REGISTRACIJA, DIALOG_STYLE_INPUT,"{F81414}Registracija","{FFFFFF}Dobrodosao!\n{FFFFFF}Tvoj account nije pronadjen!\nUpisite svoju lozinku za registraciju.","Registracija","Izlaz");
- }
- return 1;
- }
- //-- ( Random Poruke ) --
- forward RandomMessagess();
- public RandomMessagess()
- {
- SendClientMessageToAll(-1, RandomMessages[random(sizeof(RandomMessages))]);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x,y,z);
- switch(classid)
- {
- case 0:
- {
- // SWAT //
- SetPlayerFacingAngle(playerid, 300.10);
- SetPlayerPos(playerid, 1216.7590,-1814.5166,16.5938);
- SetPlayerCameraPos(playerid,1221.9364,-1815.9675,16.5938);
- SetPlayerCameraLookAt(playerid, 1216.7590,-1814.5166,16.5938, CAMERA_MOVE);
- TextDrawShowForPlayer(playerid, SWAT);
- TextDrawHideForPlayer(playerid, BALLAS);
- TextDrawHideForPlayer(playerid, GROOVE);
- gTeam[playerid] = TEAM_SWAT;
- SetPlayerTeam(playerid, 0);
- SetPlayerSkin(playerid, 285);
- SetPlayerColor(playerid, TEAM_SWAT_COLOR);
- }
- case 1:
- {
- // BALLAS //
- SetPlayerFacingAngle(playerid, 300.10);
- SetPlayerPos(playerid, 2153.5920,-1812.5614,13.5498);
- SetPlayerCameraPos(playerid, 2157.4919,-1808.9727,13.3745);
- SetPlayerCameraLookAt(playerid, 2153.5920,-1812.5614,13.5498, CAMERA_MOVE);
- TextDrawHideForPlayer(playerid, SWAT);
- TextDrawShowForPlayer(playerid, BALLAS);
- TextDrawHideForPlayer(playerid, GROOVE);
- SetPlayerTeam(playerid, 1);
- SetPlayerSkin(playerid, 104);
- gTeam[playerid] = TEAM_BALLAS;
- SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
- }
- case 2:
- {
- // GROOVE //
- SetPlayerFacingAngle(playerid, 300.10);
- SetPlayerPos(playerid, 2494.1904,-1696.6300,23.6543);
- SetPlayerCameraPos(playerid, 2494.3242,-1692.5642,23.6843);
- SetPlayerCameraLookAt(playerid, 2494.1904,-1696.6300,23.6543, CAMERA_MOVE);
- TextDrawHideForPlayer(playerid, SWAT);
- TextDrawShowForPlayer(playerid, GROOVE);
- TextDrawHideForPlayer(playerid, BALLAS);
- SetPlayerTeam(playerid, 2);
- SetPlayerSkin(playerid, 105);
- gTeam[playerid] = TEAM_GROOVE;
- SetPlayerColor(playerid, TEAM_GROOVE_COLOR);
- }
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- SetPlayerVirtualWorld(playerid, 0);
- SetPlayerInterior(playerid, 0);
- if(gTeam[playerid] == TEAM_SWAT)
- {
- new rand = random(sizeof(SwatSpawn));
- SetPlayerPos(playerid, SwatSpawn[rand][0], SwatSpawn[rand][1], SwatSpawn[rand][2]);
- GivePlayerWeapon(playerid, 24, 100);
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerWeapon(playerid, 25, 150);
- GivePlayerWeapon(playerid, 31, 150);
- }
- else if(gTeam[playerid] == TEAM_BALLAS)
- {
- new rand = random(sizeof(BallasSpawn));
- SetPlayerPos(playerid, BallasSpawn[rand][0], BallasSpawn[rand][1], BallasSpawn[rand][2]);
- GivePlayerWeapon(playerid, 30, 200);
- GivePlayerWeapon(playerid, 29, 100);
- GivePlayerWeapon(playerid, 33, 50);
- }
- else if(gTeam[playerid] == TEAM_GROOVE)
- {
- new rand = random(sizeof(GrooveSpawn));
- SetPlayerPos(playerid, GrooveSpawn[rand][0], GrooveSpawn[rand][1], GrooveSpawn[rand][2]);
- GivePlayerWeapon(playerid, 30, 200);
- GivePlayerWeapon(playerid, 29, 100);
- GivePlayerWeapon(playerid, 33, 50);
- }
- if(gTeam[playerid] == TEAM_SWAT)
- {
- SetPlayerTeam(playerid, TEAM_SWAT);
- SetPlayerColor(playerid, TEAM_SWAT_COLOR);
- }
- if(gTeam[playerid] == TEAM_BALLAS)
- {
- SetPlayerTeam(playerid, TEAM_BALLAS);
- SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
- }
- if(gTeam[playerid] == TEAM_GROOVE)
- {
- SetPlayerTeam(playerid, TEAM_GROOVE);
- SetPlayerColor(playerid, TEAM_GROOVE_COLOR);
- }
- GangZoneShowForAll(GZ_ZONE1, SWAT_ZONE_COLOR); //Swat
- GangZoneShowForAll(GZ_ZONE2, BALLAS_ZONE_COLOR); // Ballas
- GangZoneShowForAll(GZ_ZONE3, GROOVE_ZONE_COLOR); //Groove
- TextDrawHideForPlayer(playerid, SWAT);
- TextDrawHideForPlayer(playerid, BALLAS);
- TextDrawHideForPlayer(playerid, GROOVE);
- //TextDrawShowForPlayer(playerid, BE0);
- //TextDrawShowForPlayer(playerid, BE1);
- SetPlayerMapIcon(playerid, 5, 1255.4547,-1804.9713,13.4197, 18,2,MAPICON_LOCAL); //Swat ikona(Oruzije)
- SetPlayerMapIcon(playerid, 6, 2168.4553,-1788.4194,13.52047, 18,2,MAPICON_LOCAL); //Ballas ikona(Oruzije)
- SetPlayerMapIcon(playerid, 6, 2487.4058,-1672.4552,13.3359, 18,2,MAPICON_LOCAL); //Groove ikona(Oruzije)
- SetPlayerMapIcon(playerid, 7, 2451.3579,-1976.1241,13.5539, 19,2,MAPICON_GLOBAL); //Skladiste oruzija(Zastava)
- SetPlayerMapIcon(playerid, 8, 2702.9163,-1697.4459,11.5086, 19,2,MAPICON_GLOBAL); //Stadion(Zastava)
- return 1;
- }
- forward LoadUser_data(playerid,name[],value[]);
- public LoadUser_data(playerid,name[],value[])
- {
- INI_Int("Password",PlayerInfo[playerid][pPass]);
- INI_Int("Cash",PlayerInfo[playerid][pCash]);
- INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
- INI_Int("Kills",PlayerInfo[playerid][pKills]);
- INI_Int("Score",PlayerInfo[playerid][pScore]);
- INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
- return 1;
- }
- forward CountingDown(playerid, time);
- public CountingDown(playerid, time)
- {
- if(time != 0)
- {
- new string[5];
- format(string, sizeof(string), "%d", time);
- GameTextForPlayer(playerid, string, 1200, 4);
- SetTimerEx("CountingDown", 1000, true, "ii", playerid, time-1);
- }
- else
- {
- GameTextForPlayer(playerid, "~g~ZAUZETO!", 2500, 3);
- TogglePlayerControllable(playerid, 1);
- }
- return true;
- }
- forward SetZone(playerid);
- public SetZone(playerid)
- {
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 10); //Nagrade - Zone
- GivePlayerMoney(playerid, 20000);
- SendClientMessage(playerid,COLOR_GREEN,"Cestitke! Zauzeo si zonu i zaradio 20000$ i 10 Skora! ");
- UnderAttack[SO] = 0; //Zaustavljamo zauzimanje zone!
- UnderAttack[SA] = 0;
- KillTimer(timer[playerid][SO]);//Iskljucujemo tajmer
- KillTimer(timer[playerid][SA]);
- SetGangZone(playerid);
- return 1;
- }
- forward SetGangZone(playerid);
- public SetGangZone(playerid)
- {
- if(zDefine[playerid] == SO)
- {
- GangZoneShowForAll(Zone[SO],GetPlayerColor(playerid));
- new string[126], pName5[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName5,sizeof(pName5));
- format(string,sizeof string,"%s je zauzeo Skladiste oruzija",pName5);
- GangZoneStopFlashForAll(Zone[SO]);
- SendClientMessageToAll(COLOR_GREEN, string);
- tCheck[SO] = gTeam[playerid];
- }
- if(zDefine[playerid] == SA)
- {
- GangZoneShowForAll(Zone[SA],GetPlayerColor(playerid));
- new string[126], pName5[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName5,sizeof(pName5));
- format(string,sizeof string,"%s je zauzeo Stadion ",pName5);
- GangZoneStopFlashForAll(Zone[SA]);
- SendClientMessageToAll(COLOR_GREEN, string);
- tCheck[SA] = gTeam[playerid];
- }
- return 1;
- }
- CMD:promjenilozinku(playerid)
- {
- ShowPlayerDialog(playerid,DIALOG_PROMJENILOZINKU, DIALOG_STYLE_INPUT,"Promjena Lozinke","Ukucaj novu lozinku :","U redu","Izlaz");
- return 1;
- }
- CMD:oruzije(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_ORUZIJE, DIALOG_STYLE_LIST, "*Oruzarnica*", "Noz - 5000$\nBombe - 20000$\nDeagle - 10000$\nShotgun - 20000$\nMP5 - 25000$", "Odaberi", "Izlaz");
- return 1;
- }
- CMD:tim(playerid, params[])
- {
- SetPlayerHealth(playerid, 0.0);
- ForceClassSelection(playerid);
- return 1;
- }
- CMD:ubijse(playerid, params[])
- {
- SetPlayerHealth(playerid, 0);
- SendClientMessage(playerid,COLOR_RED,"Ubio si se");
- return 1;
- }
- CMD:pomoc(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_YELLOW,"----------------( Server Pomoc )-------------------");
- SendClientMessage(playerid, COLOR_YELLOW,"Dobrodosao na Balkan Express server");
- SendClientMessage(playerid, COLOR_YELLOW,"Vas zadatak je da osvajate zone!");
- SendClientMessage(playerid, COLOR_YELLOW,"Koristite tim chat upisom ! i vasim tekstom!");
- SendClientMessage(playerid, COLOR_YELLOW,"Posjetite nas forum: www.balkan-express-tdm.com!");
- SendClientMessage(playerid, COLOR_YELLOW,"Nadam se da ce vam se svidjeti nas server!");
- SendClientMessage(playerid, COLOR_YELLOW,"---------------------------------------------------");
- return 1;
- }
- CMD:komande(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"----------------( Server Komande )-------------------");
- SendClientMessage(playerid, COLOR_YELLOW,"/pomoc, /oruzije, /ubijse, /tim, /promjenilozinku");
- SendClientMessage(playerid, COLOR_GREEN,"-----------------------------------------------------");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(response)
- {
- switch(dialogid)
- {
- case 2:
- {
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFF0000AA, "Greska: Nemas dovoljno novaca.");
- GivePlayerMoney(playerid, -10000);
- SetPlayerHealth(playerid, 100.0);
- SendClientMessage(playerid, 0xF8D873FF, "Kupio si Health za 10000$");
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid,0xFF0000AA, "Greska: Nemas dovoljno novaca.");
- GivePlayerMoney(playerid, -10000);
- SetPlayerArmour(playerid, 100.0);
- SendClientMessage(playerid, 0xF8D873FF, "Kupio si Armour za 10000$");
- }
- }
- }
- }
- return 1;
- }
- switch( dialogid )
- {
- case DIALOG_REGISTRACIJA:
- {
- if (!response) return Kick(playerid);
- if(response)
- {
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTRACIJA, DIALOG_STYLE_INPUT, "{F81414}Registracija","{FFFFFF}Upisao si netocnu lozinku!\n\nUpisite svoju lozinku ispod.","Registracija","Izlaz");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Password",udb_hash(inputtext));
- INI_WriteInt(File,"Cash",0);
- INI_WriteInt(File,"Admin",0);
- INI_WriteInt(File,"Kills",0);
- INI_WriteInt(File,"Deaths",0);
- INI_Close(File);
- SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
- SpawnPlayer(playerid);
- }
- }
- case DIALOG_PRIJAVA:
- {
- if ( !response ) return Kick ( playerid );
- if( response )
- {
- if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
- {
- INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
- }
- else
- {
- ShowPlayerDialog(playerid, DIALOG_PRIJAVA, DIALOG_STYLE_INPUT,"{F81414}Prijava","{FFFFFF}Upisao si netocnu lozinku!\nUpisite svoju lozinku ispod.","Prijava","Izlaz");
- }
- return 1;
- }
- }
- case DIALOG_PROMJENILOZINKU:
- {
- if(!response) return Kick(playerid);
- if(response)
- {
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_PROMJENILOZINKU, DIALOG_STYLE_INPUT,"Promjena lozinke","Ukucajte novu lozinku :","U redu","Izlaz");
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Password",udb_hash(inputtext));
- INI_Close(File);
- ShowPlayerDialog(playerid, DIALOG_USPIJEH, DIALOG_STYLE_MSGBOX,""COL_WHITE"Uspijeh!",""COL_GREEN"Lozinka promjenjena!","U redu","");
- }
- }
- case DIALOG_ORUZIJE:
- {
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "Upozorenje: Nemas dovoljno novaca.");
- else
- {
- GivePlayerWeapon(playerid, 4, 1);
- GivePlayerMoney(playerid, -5000);
- SendClientMessage(playerid, COLOR_YELLOW, "Kupio si Noz za 5000$.");
- }
- }
- case 1:
- {
- if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, COLOR_RED, "Upozorenje: Nemas dovoljno novaca.");
- else
- {
- GivePlayerWeapon(playerid, 16, 5);
- GivePlayerMoney(playerid, -20000);
- SendClientMessage(playerid, COLOR_YELLOW, "Kupio si Bombe za 20000$.");
- }
- }
- case 2:
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "Upozorenje: Nemas dovoljno novaca.");
- else
- {
- GivePlayerWeapon(playerid, 24, 1000);
- GivePlayerMoney(playerid, -10000);
- SendClientMessage(playerid, COLOR_YELLOW, "Kupio si Deagle za 10000$.");
- }
- }
- case 3:
- {
- if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid, COLOR_RED, "Upozorenje: Nemas dovoljno novaca.");
- else
- {
- GivePlayerWeapon(playerid, 25, 150);
- GivePlayerMoney(playerid, -20000);
- SendClientMessage(playerid, COLOR_YELLOW, "Kupio si Shotgun za 20000$.");
- }
- }
- case 4:
- {
- if(GetPlayerMoney(playerid) < 25000) return SendClientMessage(playerid, COLOR_RED, "Upozorenje: Nemas dovoljno novaca.");
- else
- {
- GivePlayerWeapon(playerid, 29, 750);
- GivePlayerMoney(playerid, -25000);
- SendClientMessage(playerid, COLOR_YELLOW, "Kupio si MP5 za 25000$.");
- }
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
- {
- if(gTeam[issuerid] == gTeam[playerid])
- {
- new Float:hps[MAX_PLAYERS];
- GetPlayerHealth(issuerid, hps[issuerid]);
- SetPlayerHealth(issuerid, hps[issuerid]-5);
- GameTextForPlayer(issuerid,"~r~TVOJ TIM", 3000, 3);
- }
- return 1;
- }
- stock UserPath(playerid)
- {
- new string[128],playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid,playername,sizeof(playername));
- format(string,sizeof(string),PATH,playername);
- return string;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == SW && GetPlayerTeam(playerid) != TEAM_SWAT) return SendClientMessage(playerid, 0xFF0000AA, "Nisi u mogucnosti da koristis ovu trgovinu.");
- {
- if(pickupid == SW) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "*Trgovina*", "Health - 10000$\nArmour - 10000$", "Kupi", "Odustani");
- }
- if(pickupid == BA && GetPlayerTeam(playerid) != TEAM_BALLAS) return SendClientMessage(playerid, 0xFF0000AA, "Nisi u mogucnosti da koristis ovu trgovinu.");
- {
- if(pickupid == BA) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "*Trgovina*", "Health - 10000$\nArmour - 10000$", "Kupi", "Odustani");
- }
- if(pickupid == GR && GetPlayerTeam(playerid) != TEAM_GROOVE) return SendClientMessage(playerid, 0xFF0000AA, "Nisi u mogucnosti da koristis ovu trgovinu.");
- {
- if(pickupid == GR) ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "*Trgovina*", "Health - 10000$\nArmour - 10000$", "Kupi", "Odustani");
- }
- if(pickupid == telep)
- {
- SetPlayerPos(playerid, 2148.5032,-1793.0162,18.8772);
- return 1;
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File,"data");
- INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
- INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
- INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
- INI_WriteInt(File,"Scores",PlayerInfo[playerid][pScore]);
- INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
- INI_Close(File);
- return 1;
- }
- public OnPlayerText(playerid,text[])
- {
- if(text[0] == '!')
- {
- new string[128]; GetPlayerName(playerid, string, sizeof(string));
- format(string, sizeof(string), "[*TEAM RADIO*] %s: %s", string, text[1]);
- printf("%s", string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string);
- }
- return 0;
- }
- return 1;
- }
- stock GivePlayerScore(playerid, score)
- {
- SetPlayerScore(playerid, GetPlayerScore(playerid)+score);
- return 1;
- }
- stock udb_hash(buf[]) {
- new length=strlen(buf);
- new s1 = 1;
- new s2 = 0;
- new n;
- for (n=0; n<length; n++)
- {
- s1 = (s1 + buf[n]) % 65521;
- s2 = (s2 + s1) % 65521;
- }
- return (s2 << 16) + s1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- //-- ( Razlog Smrti ) --
- SendDeathMessage(killerid, playerid, reason);
- GivePlayerMoney(killerid, 5000); //Nagrada za svakog ubijenog neprijatelja
- SendClientMessage(killerid, -1, "Ubio si neprijatelja. Dobio si {F81414}5000$ {FFFFFF}i {F81414}+1 {FFFFFF}Skor."); //Ovdje smo definiralu poruku nakon sto ubijete igraca
- new weaponid = GetPlayerWeapon(killerid);
- switch(weaponid)
- {
- case 2 .. 15: GivePlayerWeapon(killerid, GetPlayerWeapon(killerid), 1);
- case 16 .. 18: GivePlayerWeapon(killerid, GetPlayerWeapon(killerid), 1);
- case 22 .. 32: GivePlayerWeapon(killerid, GetPlayerWeapon(killerid), 60);
- case 35 .. 46: GivePlayerWeapon(killerid, GetPlayerWeapon(killerid), 1);
- }
- SetPlayerScore(killerid, GetPlayerScore(killerid) +1);
- PlayerInfo[killerid][pKills]++;
- PlayerInfo[playerid][pDeaths]++;
- return 1;
- }
- public OnPlayerEnterDynamicCP(playerid, checkpointid)
- {
- if(checkpointid == CP[SO])
- {
- if(tCheck[SO] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"Ova zone je zauzeta od vaseg tima");
- if(UnderAttack[SO] == 1) return SendClientMessage(playerid, COLOR_RED,"Ova zona je vec preuzeta!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"Greska: Nemoze zauzeti u vozilu!");
- UnderAttack[SO] = 1;
- timer[playerid][SO] = SetTimerEx("SetZone",25000,false,"i", playerid);
- if(gTeam[playerid] == TEAM_SWAT)
- {
- GangZoneFlashForAll(Zone[SO],0x0065E196);
- SendClientMessageToAll(COLOR_RED,"VIJESTI: Tim Swat je zapoceo zauzimati Skladiste oruzija");
- }
- else if(gTeam[playerid] == TEAM_BALLAS)
- {
- GangZoneFlashForAll(Zone[SO],0xC90E5496);
- SendClientMessageToAll(COLOR_RED,"VIJESTI: Tim Ballas je zapoceo zauzimati Skladiste oruzija");
- }
- SendClientMessage(playerid, COLOR_RED,"Ostani u Crvenom Markeru 25 Sekundi kako bi zauzeo zonu!");
- zDefine[playerid] = SO;
- }
- if(checkpointid == CP[SA])
- {
- if(tCheck[SA] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"Ova zone je zauzeta od vaseg tima");
- if(UnderAttack[SA] == 1) return SendClientMessage(playerid, COLOR_RED,"Ova zona je vec preuzeta!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"Greska: Nemoze zauzeti u vozilu!");
- UnderAttack[SA] = 1;
- timer[playerid][SA] = SetTimerEx("SetZone",25000,false,"i", playerid);
- if(gTeam[playerid] == TEAM_SWAT)
- {
- GangZoneFlashForAll(Zone[SA],0x0065E196);
- SendClientMessageToAll(COLOR_RED,"VIJESTI: Tim Swat je zapoceo zauzimati Stadion");
- }
- else if(gTeam[playerid] == TEAM_BALLAS)
- {
- GangZoneFlashForAll(Zone[SA],0xC90E5496);
- SendClientMessageToAll(COLOR_RED,"VIJESTI: Tim Ballas je zapoceo zauzimati Stadion");
- }
- SendClientMessage(playerid, COLOR_RED,"Ostani u Crvenom Markeru 25 Sekundi kako bi zauzeo zonu!");
- zDefine[playerid] = SA;
- }
- return 1;
- }
- public OnPlayerLeaveDynamicCP(playerid, checkpointid)
- {
- if(checkpointid == CP[SO])
- {
- UnderAttack[SO] = -1;
- GangZoneStopFlashForAll(Zone[SO]);
- KillTimer(timer[playerid][SO]);
- }
- if(checkpointid == CP[SA])
- {
- UnderAttack[SA] = -1;
- GangZoneStopFlashForAll(Zone[SA]);
- KillTimer(timer[playerid][SA]);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement