Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Game created by Nirzor this is the Version 1.0 of Grove Vs Balla Thew New GM
- it was made by Nirzor for his server but later on Nirzor thought of making his
- Server in Las Vegas so Nirzor which means me is releasing this GM for people to
- have fun and so they can learn manythings about scripting this is a really fun
- GM unique script much fun the all new GM created by Nirzor and this GM is a GM
- that can be enjoyed very much and with the unique capture zones nirzor made has
- made this GM more interesting this GM is about a fight against Grove and Balla
- so have the new 2 Team TDM experience i am sure everyone will like it thanks
- for downloading the GM hope you have fun playing it and don't forget to capture
- the zones! xD! Copy Right 2012
- By NirZor */
- //=============================Includes=======================================//
- #include <a_samp>
- #include <zcmd>
- #include <streamer>
- //============================================================================//
- #if defined FILTERSCRIPT
- #else
- //==================================Main======================================//
- main()
- {
- print("\n----------------------------------");
- print(" GVB V1.0 By Nirzor ");
- print("----------------------------------\n");
- }
- //============================================================================//
- //==============================Colors========================================//
- #define COLOR_GREEN 0x008000FF
- #define COLOR_BLUE 0x0000FFFF
- #define COLOR_BRIGHTRED 0xFF000AAA
- #define COLOR_AQUA 0x00FFFFAA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_BEIGE 0xFFF8DCAA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_LIGHTERBLUE 0x00BFFFAA
- #define COLOR_BLUELIGHT 0x1E90FFAA
- #define COLOR_BLUEMEDIUM 0x0000CDAA
- #define COLOR_BLUEDARK 0x00008BAA
- #define COLOR_PINK 0xFF1493AA
- #define COLOR_PINKDARK 0xFF00FFAA
- #define COLOR_GREENLIGHT 0x00FF00AA
- #define COLOR_GREENDARK 0x006400AA
- #define COLOR_MAROON 0x800000AA
- #define COLOR_OKER 0x808000AA
- #define COLOR_ORANGE 0xFF4500AA
- #define COLOR_ORANGELIGHT 0xFF8C00AA
- #define COLOR_PURPLE 0x800080AA
- #define COLOR_VIOLETDARK 0x9400D3AA
- #define COLOR_INDIGO 0xAB0082AA
- #define COLOR_RED 0xFF0000AA
- #define COLOR_SAND 0xFFDEADAA
- #define COLOR_SILVER 0xC0C0C0AA
- #define COLOR_TEAL 0x008080AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_GOLD 0xFFD700AA
- #define COLOR_BROWN 0x8B4513AA
- #define COLOR_BROWNLIGHT 0xA0522DAA
- #define COLOR_GRAY 0xA9A9A9AA
- #define COLOR_GRAYDARK 0x696969AA
- #define COLOR_INVISIBLE 0xFFFFFF00
- #define COLOR_INDIA 0x80000096
- #define COLOR_PAKISTAN 0x40808096
- #define COLOR_NEPAL 0x8000FF96
- #define COLOR_BRAZIL 0xB7B70096
- #define COLOR_CHINA 0x80808096
- #define COLOR_GREECE 0x00000096
- #define COLOR_SINGAPORE 0x00FFFF96
- #define COLOR_IRAQ 0x8080C096
- #define COLOR_GROVE 0x00FF14FF
- #define COLOR_BALLA 0x8200FFFF
- //============================================================================//
- //==============================Teams=========================================//
- #define TEAM_GROVE 0
- #define TEAM_BALLA 1
- //============================================================================//
- //============================Team-Defines====================================//
- #define GROVESPAWN "2495.2703,-1683.7095,13.3462"
- #define BALLASPAWN "1961.5341,-1973.9967,13.3906"
- #define GROVECOLOR "0x008000FF"
- #define BALLACOLOR "0x800080AA"
- //============================================================================//
- //============================Class-System====================================//
- #define SOLDIER 1
- #define SNIPER 2
- #define TECHNOLOGIC 3
- #define FIREFIGHTER 4
- #define HEALER 5
- #define GUNNER 6
- //============================================================================//
- //=======================Checkpoints-Capture-Zone=============================//
- #define WS 0
- #define RS 1
- #define DS 2
- #define NC 3
- //============================================================================//
- //============================================================================//
- #endif
- //================================New=========================================//
- //Team Defines
- new gTeam[MAX_PLAYERS];
- //Gang-Zones
- new Grove;
- new Balla;
- //Class-System
- new gPlayerClass[MAX_PLAYERS];
- new PickedClass[MAX_PLAYERS];
- //Spree-System
- new spree[MAX_PLAYERS];
- new Text:Spree;
- //Capture Zones
- //Capture Zone Variables
- new CP[30];
- new Zone[30];
- new tCheck[30];
- new zDefine[MAX_PLAYERS];
- new UnderAttack[30];
- new timer[MAX_PLAYERS][30];
- //Class Return Death System
- new ReturnToClass[MAX_PLAYERS]; //Add this at the top of your script, before calling any public functions.
- new HasDied[MAX_PLAYERS];
- //============================================================================//
- public OnGameModeInit()
- {
- //==============================Game-Mode=====================================//
- SetGameModeText("GVB V1.0");
- //=============================Classes========================================//
- //=============================Grove==========================================//
- AddPlayerClass(106,2495.2703,-1683.7095,13.3462,1.9949,0,0,0,0,0,0);
- //=============================Balla==========================================//
- AddPlayerClass(104,1961.5341,-1973.9967,13.3906,359.1019,0,0,0,0,0,0);
- //===========================Normal-Run-System================================//
- UsePlayerPedAnims();
- //=============================Gane-Zones=====================================//
- Grove = GangZoneCreate(2337.898, -1768.712, 2547.053, -1626.594);
- Balla = GangZoneCreate(1885.36, -2072.688, 2067.896, -1902.935);
- //============================Capture-Zones===================================//
- Zone[WS] = GangZoneCreate(2406.349, -2052.949, 2512.828, -1883.197);
- Zone[RS] = GangZoneCreate(2626.913, -1895.04, 2836.069, -1673.966);
- Zone[DS] = GangZoneCreate(1801.698, -1764.764, 1972.825, -1630.541);
- Zone[NC] = GangZoneCreate(2626.913, -1622.646, 2699.167, -1409.468);
- //==============================Checkpoints===================================//
- CP[WS] = CreateDynamicCP(2451.3579,-1976.1241,13.5539,3, -1,-1,-1,100.0);
- CP[RS] = CreateDynamicCP(2702.9163,-1697.4459,11.5086,3, -1,-1,-1,100.0);
- CP[DS] = CreateDynamicCP(487.0322,-12.9751,1000.6797,3, -1,-1,-1,100.0);
- CP[NC] = CreateDynamicCP(2676.9348,-1542.3556,25.0632,3, -1,-1,-1,100.0);
- //=============================Spree-System===================================//
- Spree = TextDrawCreate(9.000000,310.000000,"s is on a killing spree of i kills.");
- TextDrawAlignment(Spree,0);
- TextDrawBackgroundColor(Spree,0x000000ff);
- TextDrawFont(Spree,3);
- TextDrawLetterSize(Spree,0.299999,0.799999);
- TextDrawColor(Spree,0xffffffff);
- TextDrawSetOutline(Spree,1);
- TextDrawSetProportional(Spree,1);
- TextDrawSetShadow(Spree,1);
- TextDrawHideForAll(Spree);
- //============================Grove-Vehicles==================================//
- AddStaticVehicleEx(447,2503.60009766,-1667.59997559,13.50000000,90.00000000,-1,-1,15); //Seasparrow
- AddStaticVehicleEx(492,2474.00000000,-1671.00000000,13.19999981,42.00000000,-1,1,15); //Greenwood
- AddStaticVehicleEx(492,2478.19995117,-1656.30004883,13.19999981,91.99523926,-1,1,15); //Greenwood
- AddStaticVehicleEx(492,2487.50000000,-1657.80004883,13.19999981,128.00000000,86,-1,15); //Greenwood
- AddStaticVehicleEx(492,2478.39990234,-1676.69995117,13.19999981,43.99621582,86,-1,15); //Greenwood
- AddStaticVehicleEx(412,2488.89990234,-1680.00000000,13.30000019,20.00000000,86,1,15); //Voodoo
- AddStaticVehicleEx(412,2494.60009766,-1659.90002441,13.30000019,111.99914551,86,1,15); //Voodoo
- AddStaticVehicleEx(425,2494.30004883,-1698.30004883,24.39999962,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(520,2529.60009766,-1677.50000000,20.79999924,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(487,2507.39990234,-1695.09997559,18.20000076,0.00000000,-1,-1,15); //Maverick
- //==============================Balla-Vehicles================================//
- AddStaticVehicleEx(600,1954.09997559,-1964.59997559,13.50000000,0.00000000,53,53,15); //Picador
- AddStaticVehicleEx(600,1969.09997559,-1964.80004883,13.50000000,0.00000000,53,53,15); //Picador
- AddStaticVehicleEx(487,2041.00000000,-1999.80004883,35.29999924,358.00000000,53,-1,15); //Maverick
- AddStaticVehicleEx(487,2017.30004883,-1999.59997559,35.29999924,357.99499512,53,-1,15); //Maverick
- AddStaticVehicleEx(487,2041.09997559,-2029.90002441,35.29999924,357.99499512,53,-1,15); //Maverick
- AddStaticVehicleEx(487,2017.00000000,-2028.59997559,35.29999924,357.99499512,53,-1,15); //Maverick
- AddStaticVehicleEx(476,2022.30004883,-2049.39990234,36.20000076,0.00000000,53,-1,15); //Rustler
- AddStaticVehicleEx(476,2034.80004883,-2049.69995117,36.20000076,0.00000000,53,-1,15); //Rustler
- AddStaticVehicleEx(425,2006.50000000,-1972.30004883,24.00000000,0.00000000,-1,-1,15); //Hunter
- AddStaticVehicleEx(520,2042.09997559,-1972.19995117,24.00000000,0.00000000,-1,-1,15); //Hydra
- AddStaticVehicleEx(517,1986.80004883,-1969.19995117,16.60000038,36.00000000,53,53,15); //Majestic
- AddStaticVehicleEx(447,1988.00000000,-1971.40002441,23.10000038,0.00000000,53,53,15); //Seasparrow
- AddStaticVehicleEx(517,2008.40002441,-1968.90002441,16.60000038,35.99670410,53,53,15); //Majestic
- AddStaticVehicleEx(517,2014.59997559,-1968.19995117,16.60000038,35.99670410,53,53,15); //Majestic
- AddStaticVehicleEx(517,2024.30004883,-1968.00000000,16.60000038,35.99670410,53,53,15); //Majestic
- AddStaticVehicleEx(517,2032.80004883,-1967.69995117,16.60000038,35.99670410,53,53,15); //Majestic
- AddStaticVehicleEx(517,2042.30004883,-1967.90002441,16.60000038,35.99670410,53,53,15); //Majestic
- AddStaticVehicleEx(517,1954.50000000,-1943.90002441,13.50000000,328.00000000,-1,1,15); //Majestic
- AddStaticVehicleEx(517,1968.50000000,-1944.30004883,13.50000000,41.99487305,-1,1,15); //Majestic
- //==============================Grove-Map=====================================//
- CreateObject(987,2469.69995117,-1675.19995117,12.30000019,0.00000000,0.00000000,318.00000000); //object(elecfence_bar) (1)
- CreateObject(987,2468.10009766,-1665.50000000,12.30000019,0.00000000,0.00000000,281.99926758); //object(elecfence_bar) (2)
- CreateObject(987,2469.39990234,-1642.80004883,12.50000000,0.00000000,0.00000000,273.99755859); //object(elecfence_bar) (3)
- CreateObject(987,2470.00000000,-1654.40002441,12.50000000,0.00000000,0.00000000,359.99926758); //object(elecfence_bar) (4)
- CreateObject(987,2482.00000000,-1654.19995117,12.30000019,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (5)
- CreateObject(987,2493.89990234,-1654.19995117,12.39999962,0.00000000,0.00000000,335.99450684); //object(elecfence_bar) (6)
- CreateObject(987,2501.10009766,-1681.09997559,12.39999962,0.00000000,0.00000000,51.98937988); //object(elecfence_bar) (7)
- CreateObject(970,2491.89990234,-1685.69995117,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (1)
- CreateObject(970,2498.30004883,-1686.19995117,12.89999962,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (3)
- CreateObject(970,2499.69995117,-1682.50000000,12.89999962,0.00000000,0.00000000,230.00000000); //object(fencesmallb) (4)
- CreateObject(3524,2492.80004883,-1686.80004883,15.39999962,0.00000000,0.00000000,182.00000000); //object(skullpillar01_lvs) (1)
- CreateObject(3524,2497.60009766,-1686.69995117,15.39999962,0.00000000,0.00000000,181.99951172); //object(skullpillar01_lvs) (2)
- CreateObject(2047,2495.00000000,-1675.40002441,12.89999962,0.00000000,0.00000000,0.00000000); //object(cj_flag1) (1)
- CreateObject(3807,2495.10009766,-1689.90002441,17.79999924,0.00000000,0.00000000,271.99951172); //object(sfx_flag02) (2)
- CreateObject(2048,2491.69995117,-1689.80004883,18.29999924,0.00000000,0.00000000,182.00000000); //object(cj_flag2) (2)
- CreateObject(2048,2495.00000000,-1688.40002441,18.29999924,0.00000000,0.00000000,181.99951172); //object(cj_flag2) (3)
- CreateObject(2048,2498.19995117,-1689.90002441,18.29999924,0.00000000,0.00000000,181.99951172); //object(cj_flag2) (4)
- CreateObject(3279,2473.80004883,-1649.19995117,12.50000000,0.00000000,0.00000000,0.00000000); //object(a51_spottower) (2)
- CreateObject(3928,2503.60009766,-1667.50000000,12.39999962,0.00000000,0.00000000,0.00000000); //object(helipad) (1)
- CreateObject(987,2455.89990234,-1664.80004883,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (12)
- CreateObject(987,2443.80004883,-1664.40002441,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (13)
- CreateObject(987,2432.00000000,-1664.00000000,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (14)
- CreateObject(987,2419.60009766,-1663.90002441,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (15)
- CreateObject(987,2407.69995117,-1663.90002441,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (16)
- CreateObject(987,2395.69995117,-1663.50000000,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (17)
- CreateObject(987,2383.69995117,-1663.59997559,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (18)
- CreateObject(987,2371.80004883,-1663.50000000,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (19)
- CreateObject(987,2359.80004883,-1663.50000000,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (20)
- CreateObject(987,2351.39990234,-1663.80004883,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (21)
- CreateObject(987,2458.10009766,-1653.80004883,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (23)
- CreateObject(987,2446.00000000,-1653.69995117,12.30000019,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (24)
- CreateObject(987,2434.00000000,-1653.50000000,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (25)
- CreateObject(987,2422.19995117,-1653.30004883,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (26)
- CreateObject(987,2410.19995117,-1653.30004883,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (27)
- CreateObject(987,2398.30004883,-1653.19995117,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (28)
- CreateObject(987,2386.80004883,-1653.19995117,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (29)
- CreateObject(987,2375.00000000,-1653.19995117,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (30)
- CreateObject(987,2363.10009766,-1653.19995117,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (31)
- CreateObject(987,2351.30004883,-1653.40002441,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (32)
- CreateObject(14467,2466.69995117,-1663.90002441,15.00000000,0.00000000,0.00000000,268.00000000); //object(carter_statue) (1)
- CreateObject(14467,2467.50000000,-1655.19995117,15.10000038,0.00000000,0.00000000,267.99499512); //object(carter_statue) (2)
- CreateObject(8572,2505.10009766,-1690.30004883,14.80000019,0.00000000,0.00000000,272.00000000); //object(vgssstairs02_lvs) (1)
- CreateObject(8613,2517.10009766,-1678.80004883,16.79999924,0.00000000,0.00000000,0.00000000); //object(vgssstairs03_lvs) (1)
- //=================================Balla-Map==================================//
- CreateObject(987,1959.90002441,-2000.30004883,12.39999962,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (1)
- CreateObject(987,1952.00000000,-2000.09997559,12.50000000,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (2)
- CreateObject(3279,1969.50000000,-1996.09997559,12.50000000,0.00000000,0.00000000,180.00000000); //object(a51_spottower) (1)
- CreateObject(3279,1954.19995117,-1994.80004883,12.50000000,0.00000000,0.00000000,357.99450684); //object(a51_spottower) (2)
- CreateObject(987,1971.19995117,-1991.50000000,12.50000000,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (4)
- CreateObject(987,1971.30004883,-1979.69995117,12.50000000,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (5)
- CreateObject(987,1971.40002441,-1961.80004883,12.60000038,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (6)
- CreateObject(987,1971.40002441,-1949.59997559,12.60000038,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (7)
- CreateObject(987,1951.80004883,-1980.69995117,12.50000000,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (8)
- CreateObject(987,1952.00000000,-1992.09997559,12.50000000,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (9)
- CreateObject(987,1951.59997559,-1968.80004883,12.60000038,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (10)
- CreateObject(987,1951.00000000,-1956.69995117,12.60000038,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (11)
- CreateObject(987,1950.59997559,-1950.09997559,12.50000000,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (12)
- CreateObject(970,1956.40002441,-1990.40002441,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (2)
- CreateObject(970,1956.40002441,-1986.30004883,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (3)
- CreateObject(970,1956.40002441,-1982.09997559,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (4)
- CreateObject(970,1956.40002441,-1977.90002441,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (5)
- CreateObject(970,1956.40002441,-1973.69995117,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (6)
- CreateObject(970,1956.40002441,-1969.50000000,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (7)
- CreateObject(970,1956.50000000,-1965.30004883,13.19999981,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (8)
- CreateObject(970,1956.59997559,-1963.40002441,13.19999981,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (9)
- CreateObject(970,1967.00000000,-1989.19995117,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (10)
- CreateObject(970,1967.00000000,-1985.00000000,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (11)
- CreateObject(970,1967.00000000,-1980.80004883,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (12)
- CreateObject(970,1967.00000000,-1976.59997559,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (13)
- CreateObject(970,1967.00000000,-1972.40002441,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (14)
- CreateObject(970,1966.90002441,-1968.19995117,13.19999981,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (15)
- CreateObject(970,1967.00000000,-1964.00000000,13.19999981,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (16)
- CreateObject(5130,1997.90002441,-1963.59997559,18.70000076,0.00000000,0.00000000,42.00000000); //object(imcompstrs02) (1)
- CreateObject(5130,1997.69995117,-1966.50000000,18.70000076,0.00000000,0.00000000,41.99523926); //object(imcompstrs02) (2)
- CreateObject(8613,2022.30004883,-1975.69995117,26.50000000,0.00000000,0.00000000,272.00000000); //object(vgssstairs03_lvs) (2)
- CreateObject(2991,2025.09997559,-1972.69995117,27.29999924,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (2)
- CreateObject(2991,2025.19995117,-1973.69995117,28.60000038,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (3)
- CreateObject(2991,2025.19995117,-1974.69995117,29.89999962,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (4)
- CreateObject(2991,2025.09997559,-1975.69995117,31.20000076,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (5)
- CreateObject(2991,2025.09997559,-1976.69995117,32.50000000,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (6)
- CreateObject(2991,2025.09997559,-1977.69995117,33.79999924,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (8)
- CreateObject(2991,2025.09997559,-1979.59997559,34.20000076,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (9)
- CreateObject(10444,1963.09997559,-1985.40002441,12.39999962,0.00000000,0.00000000,0.00000000); //object(poolwater_sfs) (1)
- CreateObject(2991,1957.59997559,-1967.69995117,13.10000038,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (10)
- CreateObject(2991,1966.09997559,-1968.00000000,13.10000038,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (12)
- CreateObject(2991,1966.09997559,-1968.00000000,14.39999962,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (14)
- CreateObject(2991,1966.00000000,-1967.90002441,15.69999981,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (15)
- CreateObject(2991,1957.59997559,-1967.69995117,14.39999962,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (16)
- CreateObject(2991,1957.59997559,-1967.69995117,15.69999981,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (17)
- //===========================Outer-Map-Vehicles===============================//
- //List 1
- AddStaticVehicleEx(527,2062.19995117,-1920.19995117,13.30000019,0.00000000,-1,-1,15); //Cadrona
- AddStaticVehicleEx(527,2065.60009766,-1920.30004883,13.30000019,0.00000000,-1,-1,15); //Cadrona
- AddStaticVehicleEx(545,2052.69995117,-1903.59997559,13.50000000,0.00000000,-1,-1,15); //Hustler
- AddStaticVehicleEx(545,2056.10009766,-1903.59997559,13.50000000,0.00000000,-1,-1,15); //Hustler
- AddStaticVehicleEx(545,2059.30004883,-1903.59997559,13.50000000,0.00000000,-1,-1,15); //Hustler
- AddStaticVehicleEx(545,2062.60009766,-1903.50000000,13.50000000,0.00000000,-1,-1,15); //Hustler
- AddStaticVehicleEx(545,2065.80004883,-1903.59997559,13.50000000,0.00000000,-1,-1,15); //Hustler
- AddStaticVehicleEx(448,2097.50000000,-1801.00000000,13.10000038,56.00000000,-1,-1,15); //Pizzaboy
- AddStaticVehicleEx(448,2097.30004883,-1812.90002441,13.10000038,126.00000000,-1,-1,15); //Pizzaboy
- AddStaticVehicleEx(463,1985.40002441,-1633.69995117,15.50000000,268.00000000,-1,-1,15); //Freeway
- AddStaticVehicleEx(461,2274.69995117,-1689.90002441,13.30000019,92.00000000,-1,-1,15); //PCJ-600
- AddStaticVehicleEx(461,2268.10009766,-1689.80004883,13.39999962,91.99951172,-1,-1,15); //PCJ-600
- AddStaticVehicleEx(461,2262.19995117,-1689.69995117,13.39999962,91.99951172,-1,-1,15); //PCJ-600
- AddStaticVehicleEx(461,2257.00000000,-1689.69995117,13.39999962,91.99951172,-1,-1,15); //PCJ-600
- AddStaticVehicleEx(461,2252.00000000,-1689.69995117,13.39999962,91.99951172,-1,-1,15); //PCJ-600
- AddStaticVehicleEx(461,2246.19995117,-1689.69995117,13.50000000,91.99951172,-1,-1,15); //PCJ-600
- AddStaticVehicleEx(461,2241.10009766,-1689.69995117,13.50000000,91.99951172,-1,-1,15); //PCJ-600
- AddStaticVehicleEx(461,2236.60009766,-1689.80004883,13.60000038,91.99951172,-1,-1,15); //PCJ-600
- AddStaticVehicleEx(461,2232.69995117,-1689.80004883,13.69999981,91.99951172,-1,-1,15); //PCJ-600
- AddStaticVehicleEx(422,2249.69995117,-1785.50000000,13.60000038,0.00000000,-1,-1,15); //Bobcat
- AddStaticVehicleEx(422,2254.89990234,-1785.30004883,13.60000038,0.00000000,-1,-1,15); //Bobcat
- AddStaticVehicleEx(412,2393.80004883,-1891.59997559,13.30000019,92.00000000,-1,-1,15); //Voodoo
- AddStaticVehicleEx(412,2384.10009766,-1892.09997559,13.30000019,91.99951172,100,8,15); //Voodoo
- AddStaticVehicleEx(412,2374.39990234,-1894.30004883,13.30000019,179.99938965,115,8,15); //Voodoo
- AddStaticVehicleEx(412,2374.39990234,-1906.30004883,13.30000019,179.99450684,126,8,15); //Voodoo
- AddStaticVehicleEx(412,2374.30004883,-1915.50000000,13.30000019,179.99450684,53,8,15); //Voodoo
- AddStaticVehicleEx(412,2376.69995117,-1920.40002441,13.30000019,269.99450684,-1,-1,15); //Voodoo
- AddStaticVehicleEx(412,2386.19995117,-1920.40002441,13.30000019,269.99450684,-1,-1,15); //Voodoo
- AddStaticVehicleEx(412,2398.30004883,-1920.50000000,13.30000019,269.99450684,-1,-1,15); //Voodoo
- AddStaticVehicleEx(549,2447.39990234,-1965.30004883,13.39999962,90.00000000,-1,-1,15); //Tampa
- AddStaticVehicleEx(456,2394.80004883,-2095.69995117,13.80000019,270.00000000,-1,-1,15); //Yankee
- AddStaticVehicleEx(456,2394.60009766,-2085.39990234,13.80000019,270.00000000,-1,-1,15); //Yankee
- AddStaticVehicleEx(456,2394.80004883,-2074.89990234,13.80000019,270.00000000,-1,-1,15); //Yankee
- AddStaticVehicleEx(456,2395.50000000,-2066.19995117,13.80000019,270.00000000,-1,-1,15); //Yankee
- AddStaticVehicleEx(406,2392.39990234,-2105.80004883,14.30000019,267.99499512,-1,-1,15); //Dumper
- AddStaticVehicleEx(406,2392.10009766,-2126.30004883,14.30000019,267.99499512,-1,-1,15); //Dumper
- AddStaticVehicleEx(408,2393.19995117,-2115.50000000,14.30000019,268.00000000,-1,-1,15); //Trashmaster
- AddStaticVehicleEx(408,2392.50000000,-2136.30004883,14.30000019,267.99499512,-1,-1,15); //Trashmaster
- AddStaticVehicleEx(596,1815.90002441,-1358.09997559,15.00000000,0.00000000,-1,-1,15); //Police Car (LSPD)
- AddStaticVehicleEx(597,1817.30004883,-1338.30004883,14.89999962,0.00000000,-1,-1,15); //Police Car (SFPD)
- AddStaticVehicleEx(598,1816.00000000,-1365.50000000,14.89999962,0.00000000,-1,-1,15); //Police Car (LVPD)
- AddStaticVehicleEx(599,1816.09997559,-1372.80004883,15.39999962,0.00000000,-1,-1,15); //Police Ranger
- AddStaticVehicleEx(601,1825.30004883,-1369.19995117,14.39999962,0.00000000,-1,-1,15); //S.W.A.T. Van
- AddStaticVehicleEx(601,1825.19995117,-1360.30004883,14.39999962,0.00000000,-1,-1,15); //S.W.A.T. Van
- //===========================Outer-Map-Maps===================================//
- //List 1
- CreateObject(987,2101.80004883,-1647.90002441,12.50000000,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (1)
- CreateObject(987,2102.00000000,-1635.69995117,12.50000000,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (2)
- CreateObject(987,2106.30004883,-1594.19995117,12.60000038,0.00000000,0.00000000,264.00000000); //object(elecfence_bar) (3)
- CreateObject(1649,2439.80004883,-1970.19995117,15.60000038,0.00000000,0.00000000,90.00000000); //object(wglasssmash) (2)
- CreateObject(1649,2439.80004883,-1965.69995117,15.60000038,0.00000000,0.00000000,90.00000000); //object(wglasssmash) (3)
- CreateObject(1649,2439.80004883,-1979.80004883,15.89999962,0.00000000,0.00000000,90.00000000); //object(wglasssmash) (4)
- CreateObject(1667,2440.39990234,-1974.50000000,14.19999981,0.00000000,0.00000000,0.00000000); //object(propwineglass1) (1)
- CreateObject(1667,2440.39990234,-1974.09997559,14.19999981,0.00000000,0.00000000,0.00000000); //object(propwineglass1) (2)
- CreateObject(1487,2440.39990234,-1973.69995117,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (1)
- CreateObject(1487,2440.39990234,-1973.30004883,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (2)
- CreateObject(1487,2440.39990234,-1972.90002441,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (3)
- CreateObject(1487,2440.50000000,-1979.00000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (4)
- CreateObject(1487,2440.50000000,-1979.50000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (5)
- CreateObject(1487,2440.50000000,-1980.00000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (6)
- CreateObject(1487,2440.50000000,-1980.50000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (7)
- //============================================================================//
- return 1;
- }
- public OnGameModeExit()
- {
- //============================Spree-Textdraw-System===========================//
- TextDrawDestroy(Spree);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- switch(classid)
- {
- case 0:
- {
- gTeam[playerid] = TEAM_GROVE;
- GameTextForPlayer(playerid, "~g~Grove", 5000, 5);
- SetPlayerPos(playerid, 2495.2703,-1683.7095,13.3462);
- SetPlayerFacingAngle(playerid, 9949);
- SetPlayerCameraPos(playerid, 2494.6191,-1675.4584,13.3359);
- SetPlayerCameraLookAt(playerid, 2495.2703,-1683.7095,13.3462);
- }
- case 1:
- {
- gTeam[playerid] = TEAM_BALLA;
- GameTextForPlayer(playerid, "~b~Balla", 5000, 5);
- SetPlayerPos(playerid, 1961.5341,-1973.9967,13.3906);
- SetPlayerFacingAngle(playerid,1019);
- SetPlayerCameraPos(playerid,1961.9026,-1964.0034,13.6362);
- SetPlayerCameraLookAt(playerid,1961.5341,-1973.9967,13.3906);
- }
- }
- {
- SetPlayerToTeamColour(playerid);
- }
- return 1;
- }
- SetPlayerToTeamColour(playerid)
- {
- if(gTeam[playerid] == TEAM_GROVE)
- {
- SetPlayerColor(playerid,COLOR_GREEN);
- }
- else if(gTeam[playerid] == TEAM_BALLA)
- {
- SetPlayerColor(playerid,COLOR_PURPLE);
- }
- }
- public OnPlayerConnect(playerid)
- {
- //==============================Connect-Message===============================//
- SendClientMessage(playerid, COLOR_WHITE,"Welcome to Grove Vs Balla server");
- //{0FFF00},{00FFFF}
- //============================================================================//
- //============================Class-System====================================//
- ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Soldier Class (0)\nSniper Class(150)\nTechnologic Class(500)\nFireFighter Class(2000)\nHealer Class(5000)\nGunner Class(10000)", "Choose","");
- //============================================================================//
- //============================Capture-Zones===================================//
- GangZoneShowForPlayer(playerid, Zone[WS], 0xFFFFFF96);
- GangZoneShowForPlayer(playerid, Zone[RS], 0xFFFFFF96);
- GangZoneShowForPlayer(playerid, Zone[DS], 0xFFFFFF96);
- GangZoneShowForPlayer(playerid, Zone[NC], 0xFFFFFF96);
- //============================================================================//
- //=====================Class-Death-Return-System==============================//
- ReturnToClass[playerid] = 0;
- //============================================================================//
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- //============================Gang-Zones======================================//
- GangZoneShowForPlayer(playerid, Grove, 0x008000FF);
- GangZoneShowForPlayer(playerid, Balla, 0x800080AA);
- //============================================================================//
- //=====================Class-Death-Return-System==============================//
- if(HasDied[playerid] == 1)
- {
- ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Soldier Class (0)\nSniper Class(150)\nTechnologic Class(500)\nFireFighter Class(2000)\nHealer Class(5000)\nGunner Class(10000)", "Choose","");
- HasDied[playerid] = 0;
- }
- //============================================================================//
- //============================Class-System====================================//
- if(gPlayerClass[playerid] == SOLDIER)//This is for the First soldier class.
- {
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 31, 200);//m4
- GivePlayerWeapon(playerid, 25, 100);//mp5
- GivePlayerWeapon(playerid, 24, 70);//deagle
- }
- else if(gPlayerClass[playerid] == SNIPER)//This is for the Second Sniper class.
- {
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 34, 250);//sniper
- GivePlayerWeapon(playerid, 29, 250);//mp5
- GivePlayerWeapon(playerid, 4, 1);//knife
- }
- else if(gPlayerClass[playerid] == TECHNOLOGIC)//This is for the Second Engineer class.
- {
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 27, 200);//spas12
- GivePlayerWeapon(playerid, 23, 200);//silent pistol
- GivePlayerWeapon(playerid, 35, 2);//rpg
- GivePlayerWeapon(playerid, 16, 2);//grenade
- }
- else if(gPlayerClass[playerid] == FIREFIGHTER)//This is for the Second Jetrooper class.
- {
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 32, 500);//tec-9
- GivePlayerWeapon(playerid, 22, 500);//colt
- GivePlayerWeapon(playerid, 25, 500);//shotgun
- GivePlayerWeapon(playerid, 4, 1);//knife
- }
- else if(gPlayerClass[playerid] == HEALER)//This is for the Second Pilot class.
- {
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 24, 200);//deagle
- GivePlayerWeapon(playerid, 17, 1);//moltove
- GivePlayerWeapon(playerid, 25, 100);//shotgun
- }
- else if(gPlayerClass[playerid] == GUNNER)//This is for the Second Spy class.
- {
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 29, 500);//mp5
- GivePlayerWeapon(playerid, 23, 230);//silent pistol
- GivePlayerWeapon(playerid, 31, 350);//M4
- GivePlayerWeapon(playerid, 18, 4);//moltove
- }
- //============================================================================//
- //==============================Rank-Bonuses==================================//
- if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 100)
- {
- SetPlayerHealth(playerid, 75);
- }
- if (GetPlayerScore(playerid) >= 100 && GetPlayerScore(playerid) <= 200)
- {
- SetPlayerHealth(playerid, 100);
- }
- if (GetPlayerScore(playerid) >= 200 && GetPlayerScore(playerid) <= 400)
- {
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- }
- //============================================================================//
- //==============================Team-Balancer=================================//
- new team1count, team2count;
- for(new i, m = GetMaxPlayers(); i < m; i++)
- {
- if (IsPlayerConnected(i))
- {
- if (gTeam[i] == TEAM_GROVE) team1count++;
- else if (gTeam[i] == TEAM_BALLA) team2count++;
- }
- }
- if (gTeam[playerid] == TEAM_GROVE)
- {
- if (team1count > (team2count+1))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "This team is full, please choose the other one.");
- return 0;
- }
- }
- else if (gTeam[playerid] == TEAM_BALLA)
- {
- if ((team1count+1) < team2count)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "This team is full, please choose the other one.");
- return 0;
- }
- }
- return 1;
- }
- //============================================================================//
- public OnPlayerDeath(playerid, killerid, reason)
- {
- //=============================Death-Reason===================================//
- SendDeathMessage(killerid, playerid, reason);
- //============================================================================//
- //============================Player-Bonus====================================//
- SetPlayerScore(killerid, GetPlayerScore(killerid) +1);
- GivePlayerMoney(killerid, 5000);
- SendClientMessage(killerid, COLOR_GROVE,"You got 1 score and 5000 cash for killing a player");
- //============================================================================//
- //==============================Player-Loss===================================//
- GivePlayerMoney(playerid, -1000);
- SendClientMessage(playerid, COLOR_RED,"You lost $2000 for dieing");
- //============================================================================//
- //=====================Class-Death-Return-System==============================//
- if(ReturnToClass[playerid] == 1)
- {
- HasDied[playerid] = 1;
- //ForceClassSelection(playerid); //You Can Remove This If You Do Not Want It To Work This Way.
- ReturnToClass[playerid] = 0;
- }
- //============================================================================//
- //==============================Spree-System==================================//
- spree[killerid]++;
- if(spree[killerid] == 2)
- {
- new string[128];
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(killerid, pName, sizeof(pName));
- format(string, sizeof(string), "%s is on a killing spree, with 5 kills", pName); //It goes for 2 kills
- TextDrawHideForAll(Spree);
- TextDrawSetString(Spree, string);
- TextDrawShowForAll(Spree); SetTimer("TxtReset", 3000, 0);
- }
- if(spree[killerid] == 7)
- {
- new string[128];
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(killerid, pName, sizeof(pName));
- format(string, sizeof(string), "%s is on a killing spree, with 7 kills!", pName);//it goes for 7 kills!
- TextDrawHideForAll(Spree);
- TextDrawSetString(Spree, string);
- TextDrawShowForAll(Spree); SetTimer("TxtReset", 3000, 0);
- //Here you can add a function or a special action with 7 kills
- }
- if(spree[killerid] == 10)
- {
- new string[128];
- new pName[MAX_PLAYER_NAME];
- GetPlayerName(killerid, pName, sizeof(pName));
- format(string, sizeof(string), "%s is on a killing spre with 10 kills~", pName);//It goes for 10 kills
- TextDrawHideForAll(Spree);
- TextDrawSetString(Spree, string);
- TextDrawShowForAll(Spree); SetTimer("TxtReset", 3000, 0);//You can add more if you want!
- }
- //============================================================================//
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 0;
- }
- CMD:help(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_YELLOW,"=====================Help=========================");
- SendClientMessage(playerid, COLOR_YELLOW,"Welcome to Grove Vs Balla [TDM] server");
- SendClientMessage(playerid, COLOR_YELLOW,"Kill enemies,capture zones and earn killing spree");
- SendClientMessage(playerid, COLOR_YELLOW,"Rank up more and have fun have a different 2 Team");
- SendClientMessage(playerid, COLOR_YELLOW,"TDM Experience with the all new Grove Vs Balla");
- SendClientMessage(playerid, COLOR_YELLOW,"Hope you have fun!");
- SendClientMessage(playerid, COLOR_YELLOW,"===================================================");
- return 1;
- }
- CMD:kill(playerid, params[])
- {
- SetPlayerHealth(playerid, 0);
- SendClientMessage(playerid,COLOR_RED,"You have suicided");
- return 1;
- }
- CMD:rules(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GROVE,"=========================Server-Rules=========================");
- SendClientMessage(playerid, COLOR_YELLOW,"1.Do not car park!");
- SendClientMessage(playerid, COLOR_YELLOW,"2.Do not heli blade kill!");
- SendClientMessage(playerid, COLOR_YELLOW,"3.Do not hack or use mods");
- SendClientMessage(playerid, COLOR_YELLOW,"4.Do not spawn-kill");
- SendClientMessage(playerid, COLOR_YELLOW,"5.Don't shoot your team members");
- SendClientMessage(playerid, COLOR_YELLOW,"6.Do not disrespect/spam/flame anyone");
- SendClientMessage(playerid, COLOR_YELLOW,"7.Do not spam anyones pm or main chat");
- SendClientMessage(playerid, COLOR_GROVE,"==============================================================");
- return 1;
- }
- CMD:cmds(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_GREEN,"====================Server-Commands================");
- SendClientMessage(playerid, COLOR_YELLOW,"/help,/kill,/rules,/sc,/rank,/r,/backup");
- SendClientMessage(playerid, COLOR_YELLOW,"/ct,/myteam,/myclass,/updates");
- SendClientMessage(playerid, COLOR_GREEN,"===================================================");
- return 1;
- }
- CMD:sc(playerid, params[])
- {
- if(ReturnToClass[playerid] == 1) return SendClientMessage(playerid, 0xFF0000FF, "You Have Already Requested To Return To Class Selection.");
- if(GetPlayerState(playerid) == PLAYER_STATE_WASTED) return SendClientMessage(playerid, 0xFF0000FF, "You Must Be Alive To Use This Command!");
- ReturnToClass[playerid] = 1;
- SendClientMessage(playerid, 0x00FF00FF, "Returning To Class Selection After Next Death.");
- return 1;
- }
- CMD:rank(playerid, params[])
- {
- Rank(playerid);
- return 1;
- }
- CMD:ranks(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_RED,"==========================Ranks=====================");
- SendClientMessage(playerid, COLOR_GREEN,"Rank - 1 Soldier (0)");
- SendClientMessage(playerid, COLOR_GREEN,"Rank - 2 Colonel (100)");
- SendClientMessage(playerid, COLOR_GREEN,"Rank - 3 ArmyMan (200)");
- SendClientMessage(playerid, COLOR_GREEN,"Rank - 4 Leader (400)");
- SendClientMessage(playerid, COLOR_GREEN,"Rank - 5 Commander(800)");
- SendClientMessage(playerid, COLOR_RED,"====================================================");
- return 1;
- }
- CMD:r(playerid,params[])
- {
- #pragma unused params
- if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /r [text] to talk in team radio");
- new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name));
- new string[128];
- format(string, sizeof(string), "[R][Team Radio] %s: %s", Name, params[0]);
- printf("%s", string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, COLOR_BLUE, string);
- }
- return 1;
- }
- CMD:backup(playerid, params[])
- {
- if(GetPlayerScore(playerid) >= 200)
- {
- new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name));
- new string[128];
- format(string, sizeof(string), "[REQUESTING BACKUP]: %s is requesting for backup!", Name);
- printf("%s", string);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, COLOR_RED, string);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_RED,"You need to be Rank - 3 to use this command!");
- }
- return 1;
- }
- CMD:ct(playerid, params[])
- {
- ForceClassSelection(playerid);
- SendClientMessage(playerid, COLOR_GREEN,"Returing to team selection after next death ....");
- SendClientMessage(playerid, COLOR_YELLOW,"You can use /kill to go to team selection right now");
- return 1;
- }
- CMD:myteam(playerid, params[])
- {
- MyTeam(playerid);
- return 1;
- }
- CMD:myclass(playerid, params[])
- {
- MyClass(playerid);
- return 1;
- }
- CMD:forums(playerid, params[])
- {
- GameTextForPlayer(playerid, "~w~Server Website:~n~gt-samp.xtrweb.com", 2500, 3);
- return 1;
- }
- CMD:updates(playerid, params[])
- {
- SendClientMessage(playerid, COLOR_RED,"===============V1.0-UPDATES================");
- SendClientMessage(playerid, COLOR_PINK,"1. 2 Teams Grove and Balla");
- SendClientMessage(playerid, COLOR_PINK,"2. 4 Capture Zones");
- SendClientMessage(playerid, COLOR_PINK,"3. Fully war type mapped");
- SendClientMessage(playerid, COLOR_PINK,"4. Many commands added");
- SendClientMessage(playerid, COLOR_PINK,"5. Unique rank system");
- SendClientMessage(playerid, COLOR_PINK,"6. Unique Class system");
- SendClientMessage(playerid, COLOR_PINK,"7. Killing spree system");
- SendClientMessage(playerid, COLOR_PINK,"8. Rank command and bank bonusses");
- SendClientMessage(playerid, COLOR_RED,"===========================================");
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 999)//dialog id response
- {
- if(response)
- {
- if(listitem == 0)
- if(GetPlayerScore(playerid) >= 0)//if player have 0 score then he can choose this class
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have choosen Soldier as your class.");
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Soldier Class:", "{F81414}Abilities:\n{FFFFFF}A Solo class, good in infantry attacks.\n\n{F81414}Weapons:\n\n{FFFFFF}M4\n{FFFFFF}Shotgun\n{FFFFFF}Deagle", "Play","");
- gPlayerClass[playerid] = SOLDIER;//setting the class to soldier
- PickedClass[playerid] = 1;
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 31, 200);//m4
- GivePlayerWeapon(playerid, 25, 100);//mp5
- GivePlayerWeapon(playerid, 24, 70);//deagle
- }
- if(listitem == 1)
- if(GetPlayerScore(playerid) >= 150)//if player have 150 score then he can choose this class
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have choosen Sniper as your class.");
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Sniper Class:", "{F81414}Abilities:\n{FFFFFF}A Solo class, good in range attacks.", "Play","");
- gPlayerClass[playerid] = SNIPER;//setting the class to soldier
- PickedClass[playerid] = 1;
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 34, 250);//sniper
- GivePlayerWeapon(playerid, 29, 250);//mp5
- GivePlayerWeapon(playerid, 4, 1);//knife
- }
- else
- {
- ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Soldier Class (0)\nSniper Class(150)\nTechnologic Class(500)\nFireFighter Class(2000)\nHealer Class(5000)\nGunner Class(10000)", "Choose","");
- SendClientMessage(playerid, COLOR_RED,"You don't have enough score to select this class");
- }
- if(listitem == 2)
- if(GetPlayerScore(playerid) >= 500)//if player have 150 score then he can choose this class
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have choosen Technologic as your class.");
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Technologic Class:", "{F81414}Abilities:\n{FFFFFF}A Solo class, can take out whats infront of it.", "Play","");
- gPlayerClass[playerid] = TECHNOLOGIC;//setting the class to soldier
- PickedClass[playerid] = 1;
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 27, 200);//spas12
- GivePlayerWeapon(playerid, 23, 200);//silent pistol
- GivePlayerWeapon(playerid, 35, 2);//rpg
- GivePlayerWeapon(playerid, 16, 2);//grenade
- }
- else
- {
- ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Soldier Class (0)\nSniper Class(150)\nAgent Class(500)\nMechanic Class(2000)\nMedic Class(5000)\nSpecial_Agent Class(10000)", "Choose","");
- SendClientMessage(playerid, COLOR_RED,"You don't have enough score to select this class");
- }
- if(listitem == 3)
- if(GetPlayerScore(playerid) >= 2000)//if player have 150 score then he can choose this class
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have choosen FireFighter as your class.");
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}FireFighter Class:", "{F81414}Abilities:\n{FFFFFF}A Solo class,Can put up a fire anywhere and even can turn off fire .", "Play","");
- gPlayerClass[playerid] = FIREFIGHTER;//setting the class to soldier
- PickedClass[playerid] = 1;
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 32, 500);//tec-9
- GivePlayerWeapon(playerid, 22, 500);//colt
- GivePlayerWeapon(playerid, 25, 500);//shotgun
- GivePlayerWeapon(playerid, 37, 230);//Flame-Thrower
- GivePlayerWeapon(playerid, 42, 500);//Fire extinguisher
- }
- else
- {
- ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Soldier Class (0)\nSniper Class(150)\nTechnologic Class(500)\nFireFighter Class(2000)\nHealer Class(5000)\nGunner Class(10000)", "Choose","");
- SendClientMessage(playerid, COLOR_RED,"You don't have enough score to select this class");
- }
- if(listitem == 4)
- if(GetPlayerScore(playerid) >= 5000)//if player have 150 score then he can choose this class
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have choosen Medic as your class.");
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Healer Class:", "{F81414}Abilities:\n{FFFFFF}A Solo class, Good in combats and great fighting skills.", "Play","");
- gPlayerClass[playerid] = HEALER;//setting the class to soldier
- PickedClass[playerid] = 1;
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 24, 200);//deagle
- GivePlayerWeapon(playerid, 17, 1);//moltove
- GivePlayerWeapon(playerid, 25, 100);//shotgun
- }
- else
- {
- ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Soldier Class (0)\nSniper Class(150)\nTechnologic Class(500)\nFireFighter Class(2000)\nHealer Class(5000)\nGunner Class(10000)", "Choose","");
- SendClientMessage(playerid, COLOR_RED,"You don't have enough score to select this class");
- }
- if(listitem == 5)
- if(GetPlayerScore(playerid) >= 10000)//if player have 150 score then he can choose this class
- {
- SendClientMessage(playerid, COLOR_WHITE, "You have choosen Special_Agent as your class.");
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Gunner Class:", "{F81414}Abilities:\n{FFFFFF}A Solo class, Extremely good in close and far combat and can drive everything and have all access to everything.", "Play","");
- gPlayerClass[playerid] = GUNNER;//setting the class to soldier
- PickedClass[playerid] = 1;
- SetPlayerVirtualWorld(playerid, 0);
- TogglePlayerControllable(playerid, 1);
- ResetPlayerWeapons(playerid);
- GivePlayerWeapon(playerid, 29, 500);//mp5
- GivePlayerWeapon(playerid, 23, 230);//silent pistol
- GivePlayerWeapon(playerid, 31, 350);//M4
- GivePlayerWeapon(playerid, 18, 4);//moltove
- }
- else
- {
- ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Soldier Class (0)\nSniper Class(150)\nTechnologic Class(500)\nFireFighter Class(2000)\nHealer Class(5000)\nGunner Class(10000)", "Choose","");
- SendClientMessage(playerid, COLOR_RED,"You don't have enough score to select this class");
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
- forward Txtreset();
- public Txtreset()
- {
- TextDrawHideForAll(Spree);
- return 1;
- }
- public OnPlayerEnterDynamicCP(playerid, checkpointid)
- {
- if(checkpointid == CP[WS])
- {
- if(tCheck[WS] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
- if(UnderAttack[WS] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"ERROR: You cannot capture while in vehicle!");
- UnderAttack[WS] = 1;
- timer[playerid][WS] = SetTimerEx("SetZone",25000,false,"i", playerid);
- if(gTeam[playerid] == TEAM_GROVE)
- {
- GangZoneFlashForAll(Zone[WS],COLOR_GREEN);
- SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Grove is Attacking Weapon Shop");
- }
- else if(gTeam[playerid] == TEAM_BALLA)
- {
- GangZoneFlashForAll(Zone[WS],COLOR_PURPLE);
- SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Balla is Attacking Weapon Shop");
- }
- SendClientMessage(playerid, COLOR_GREEN,"Stay in this checkpoint for 25 second to capture the zone");
- zDefine[playerid] = WS;
- }
- if(checkpointid == CP[RS])
- {
- if(tCheck[RS] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
- if(UnderAttack[RS] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"ERROR: You cannot capture while in vehicle!");
- UnderAttack[RS] = 1;
- timer[playerid][RS] = SetTimerEx("SetZone",25000,false,"i", playerid);
- if(gTeam[playerid] == TEAM_GROVE)
- {
- GangZoneFlashForAll(Zone[RS],COLOR_GREEN);
- SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Grove is Attacking Racing Stadium");
- }
- else if(gTeam[playerid] == TEAM_BALLA)
- {
- GangZoneFlashForAll(Zone[RS],COLOR_PURPLE);
- SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Balla is Attacking Racing Stadium");
- }
- SendClientMessage(playerid, COLOR_GREEN,"Stay in this checkpoint for 25 second to capture the zone");
- zDefine[playerid] = RS;
- }
- if(checkpointid == CP[DS])
- {
- if(tCheck[DS] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
- if(UnderAttack[DS] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"ERROR: You cannot capture while in vehicle!");
- UnderAttack[DS] = 1;
- timer[playerid][DS] = SetTimerEx("SetZone",25000,false,"i", playerid);
- if(gTeam[playerid] == TEAM_GROVE)
- {
- GangZoneFlashForAll(Zone[DS],COLOR_GREEN);
- SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Grove is Attacking Disco Club");
- }
- else if(gTeam[playerid] == TEAM_BALLA)
- {
- GangZoneFlashForAll(Zone[DS],COLOR_PURPLE);
- SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Balla is Attacking Disco Club");
- }
- SendClientMessage(playerid, COLOR_GREEN,"Stay in this checkpoint for 25 second to capture the zone");
- zDefine[playerid] = DS;
- }
- if(checkpointid == CP[NC])
- {
- if(tCheck[NC] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
- if(UnderAttack[NC] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
- if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"ERROR: You cannot capture while in vehicle!");
- UnderAttack[NC] = 1;
- timer[playerid][NC] = SetTimerEx("SetZone",25000,false,"i", playerid);
- if(gTeam[playerid] == TEAM_GROVE)
- {
- GangZoneFlashForAll(Zone[NC],COLOR_GREEN);
- SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Grove is Attacking New Castle");
- }
- else if(gTeam[playerid] == TEAM_BALLA)
- {
- GangZoneFlashForAll(Zone[NC],COLOR_PURPLE);
- SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Balla is Attacking New Castle");
- }
- SendClientMessage(playerid, COLOR_GREEN,"Stay in this checkpoint for 25 second to capture the zone");
- zDefine[playerid] = NC;
- }
- return 1;
- }
- public OnPlayerLeaveDynamicCP(playerid, checkpointid)
- {
- if(checkpointid == CP[WS])
- {
- UnderAttack[WS] = -1;
- GangZoneStopFlashForAll(Zone[WS]);
- KillTimer(timer[playerid][WS]);
- }
- if(checkpointid == CP[RS])
- {
- UnderAttack[RS] = -1;
- GangZoneStopFlashForAll(Zone[RS]);
- KillTimer(timer[playerid][RS]);
- }
- if(checkpointid == CP[DS])
- {
- UnderAttack[DS] = -1;
- GangZoneStopFlashForAll(Zone[DS]);
- KillTimer(timer[playerid][DS]);
- }
- if(checkpointid == CP[NC])
- {
- UnderAttack[NC] = -1;
- GangZoneStopFlashForAll(Zone[NC]);
- KillTimer(timer[playerid][NC]);
- }
- 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~Captured!", 2500, 3);
- TogglePlayerControllable(playerid, 1);
- }
- return true;
- }
- forward Rank(playerid);
- public Rank(playerid)
- {
- if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 100)
- {
- SendClientMessage(playerid, COLOR_RED,"Your a Soldier Rank - 1");
- }
- if (GetPlayerScore(playerid) >= 100 && GetPlayerScore(playerid) <= 200)
- {
- SendClientMessage(playerid, COLOR_RED,"Your a Colonel Rank - 2");
- }
- if (GetPlayerScore(playerid) >= 200 && GetPlayerScore(playerid) <= 400)
- {
- SendClientMessage(playerid, COLOR_RED,"Your a ArmyMan Rank - 3");
- }
- if (GetPlayerScore(playerid) >= 400 && GetPlayerScore(playerid) <= 800)
- {
- SendClientMessage(playerid, COLOR_RED,"Your a Leader Rank - 4");
- }
- if (GetPlayerScore(playerid) >= 800 && GetPlayerScore(playerid) <= 1600)
- {
- SendClientMessage(playerid, COLOR_RED,"Your a Commander Rank - 5");
- }
- return 1;
- }
- forward MyClass(playerid);
- public MyClass(playerid)
- {
- if(gPlayerClass[playerid] == SOLDIER)
- {
- SendClientMessage(playerid, COLOR_ORANGE,"Your class is Soldier!");
- }
- if(gPlayerClass[playerid] == SNIPER)
- {
- SendClientMessage(playerid, COLOR_ORANGE,"Your class is Sniper!");
- }
- if(gPlayerClass[playerid] == TECHNOLOGIC)
- {
- SendClientMessage(playerid, COLOR_ORANGE,"Your class is Technologic!");
- }
- if(gPlayerClass[playerid] == FIREFIGHTER)
- {
- SendClientMessage(playerid, COLOR_ORANGE,"Your class is FireFighter!");
- }
- if(gPlayerClass[playerid] == HEALER)
- {
- SendClientMessage(playerid, COLOR_ORANGE,"Your class is Healer!");
- }
- if(gPlayerClass[playerid] == GUNNER)
- {
- SendClientMessage(playerid, COLOR_ORANGE,"Your class is Gunner!");
- }
- return 1;
- }
- forward MyTeam(playerid);
- public MyTeam(playerid)
- {
- if(gTeam[playerid] == TEAM_GROVE)
- {
- SendClientMessage(playerid, COLOR_ORANGE,"You are in Team Grove!");
- }
- else if (gTeam[playerid] == TEAM_BALLA)
- {
- SendClientMessage(playerid, COLOR_ORANGE,"You are in Team Balla!");
- }
- return 1;
- }
- forward SetZone(playerid);
- public SetZone(playerid)
- {
- SetPlayerScore(playerid, GetPlayerScore(playerid) + 5); //Giving score and money
- GivePlayerMoney(playerid, 5000);
- SendClientMessage(playerid,COLOR_BLUE,"Congratulation! You have Gained 5 Scores & 5000$ Money ");
- UnderAttack[WS] = 0; //Stopping the UnderAttack
- UnderAttack[RS] = 0;
- UnderAttack[DS] = 0;
- UnderAttack[NC] = 0;
- KillTimer(timer[playerid][WS]);//Killing the timer
- KillTimer(timer[playerid][RS]);
- KillTimer(timer[playerid][DS]);
- KillTimer(timer[playerid][NC]);
- SetGangZone(playerid); //We will define it..
- return 1;
- }
- forward SetGangZone(playerid);
- public SetGangZone(playerid)
- {
- if(zDefine[playerid] == WS)
- {
- GangZoneShowForAll(Zone[WS],GetPlayerColor(playerid));
- //Just a message when setting zone!
- new string[126], pName5[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName5,sizeof(pName5));
- format(string,sizeof string,"*{0FFF00}%s has captured {00FFFF}Weapon Shop",pName5);
- GangZoneStopFlashForAll(Zone[WS]);
- SendClientMessageToAll(COLOR_GREEN, string);
- tCheck[WS] = gTeam[playerid];
- }
- if(zDefine[playerid] == RS)
- {
- GangZoneShowForAll(Zone[RS],GetPlayerColor(playerid));
- /*Following code looks a bit big but its very simple.. its just send msg. */
- new string[126], pName5[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName5,sizeof(pName5));
- format(string,sizeof string,"*{0FFF00}%s has captured {00FFFF}Racing Stadium",pName5);
- GangZoneStopFlashForAll(Zone[RS]);
- SendClientMessageToAll(COLOR_GREEN, string);
- tCheck[RS] = gTeam[playerid];
- }
- if(zDefine[playerid] == DS)
- {
- GangZoneShowForAll(Zone[DS],GetPlayerColor(playerid));
- /*Following code looks a bit big but its very simple.. its just send msg. */
- new string[126], pName5[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName5,sizeof(pName5));
- format(string,sizeof string,"*{0FFF00}%s has captured {00FFFF}Disco Club",pName5);
- GangZoneStopFlashForAll(Zone[DS]);
- SendClientMessageToAll(COLOR_GREEN, string);
- tCheck[RS] = gTeam[playerid];
- }
- if(zDefine[playerid] == NC)
- {
- GangZoneShowForAll(Zone[NC],GetPlayerColor(playerid));
- /*Following code looks a bit big but its very simple.. its just send msg. */
- new string[126], pName5[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName5,sizeof(pName5));
- format(string,sizeof string,"*{0FFF00}%s has captured {00FFFF}New Castle",pName5);
- GangZoneStopFlashForAll(Zone[NC]);
- SendClientMessageToAll(COLOR_GREEN, string);
- tCheck[NC] = gTeam[playerid];
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement