Advertisement
Guest User

Grove Vs Balla

a guest
Aug 31st, 2012
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.80 KB | None | 0 0
  1. /*Game created by Nirzor this is the Version 1.0 of Grove Vs Balla Thew New GM
  2. it was made by Nirzor for his server but later on Nirzor thought of making his
  3. Server in Las Vegas so Nirzor which means me is releasing this GM for people to
  4. have fun and so they can learn manythings about scripting this is a really fun
  5. GM unique script much fun the all new GM created by Nirzor and this GM is a GM
  6. that can be enjoyed very much and with the unique capture zones nirzor made has
  7. made this GM more interesting this GM is about a fight against Grove and Balla
  8. so have the new 2 Team TDM experience i am sure everyone will like it thanks
  9. for downloading the GM hope you have fun playing it and don't forget to capture
  10. the zones! xD! Copy Right 2012
  11. By NirZor */
  12.  
  13. //=============================Includes=======================================//
  14. #include <a_samp>
  15. #include <zcmd>
  16. #include <streamer>
  17. //============================================================================//
  18.  
  19. #if defined FILTERSCRIPT
  20.  
  21. #else
  22.  
  23. //==================================Main======================================//
  24. main()
  25. {
  26. print("\n----------------------------------");
  27. print(" GVB V1.0 By Nirzor ");
  28. print("----------------------------------\n");
  29. }
  30. //============================================================================//
  31.  
  32. //==============================Colors========================================//
  33. #define COLOR_GREEN 0x008000FF
  34. #define COLOR_BLUE 0x0000FFFF
  35. #define COLOR_BRIGHTRED 0xFF000AAA
  36. #define COLOR_AQUA 0x00FFFFAA
  37. #define COLOR_GREY 0xAFAFAFAA
  38. #define COLOR_BEIGE 0xFFF8DCAA
  39. #define COLOR_BLACK 0x000000AA
  40. #define COLOR_LIGHTERBLUE 0x00BFFFAA
  41. #define COLOR_BLUELIGHT 0x1E90FFAA
  42. #define COLOR_BLUEMEDIUM 0x0000CDAA
  43. #define COLOR_BLUEDARK 0x00008BAA
  44. #define COLOR_PINK 0xFF1493AA
  45. #define COLOR_PINKDARK 0xFF00FFAA
  46. #define COLOR_GREENLIGHT 0x00FF00AA
  47. #define COLOR_GREENDARK 0x006400AA
  48. #define COLOR_MAROON 0x800000AA
  49. #define COLOR_OKER 0x808000AA
  50. #define COLOR_ORANGE 0xFF4500AA
  51. #define COLOR_ORANGELIGHT 0xFF8C00AA
  52. #define COLOR_PURPLE 0x800080AA
  53. #define COLOR_VIOLETDARK 0x9400D3AA
  54. #define COLOR_INDIGO 0xAB0082AA
  55. #define COLOR_RED 0xFF0000AA
  56. #define COLOR_SAND 0xFFDEADAA
  57. #define COLOR_SILVER 0xC0C0C0AA
  58. #define COLOR_TEAL 0x008080AA
  59. #define COLOR_WHITE 0xFFFFFFAA
  60. #define COLOR_YELLOW 0xFFFF00AA
  61. #define COLOR_GOLD 0xFFD700AA
  62. #define COLOR_BROWN 0x8B4513AA
  63. #define COLOR_BROWNLIGHT 0xA0522DAA
  64. #define COLOR_GRAY 0xA9A9A9AA
  65. #define COLOR_GRAYDARK 0x696969AA
  66. #define COLOR_INVISIBLE 0xFFFFFF00
  67. #define COLOR_INDIA 0x80000096
  68. #define COLOR_PAKISTAN 0x40808096
  69. #define COLOR_NEPAL 0x8000FF96
  70. #define COLOR_BRAZIL 0xB7B70096
  71. #define COLOR_CHINA 0x80808096
  72. #define COLOR_GREECE 0x00000096
  73. #define COLOR_SINGAPORE 0x00FFFF96
  74. #define COLOR_IRAQ 0x8080C096
  75. #define COLOR_GROVE 0x00FF14FF
  76. #define COLOR_BALLA 0x8200FFFF
  77. //============================================================================//
  78.  
  79. //==============================Teams=========================================//
  80. #define TEAM_GROVE 0
  81. #define TEAM_BALLA 1
  82. //============================================================================//
  83.  
  84. //============================Team-Defines====================================//
  85. #define GROVESPAWN "2495.2703,-1683.7095,13.3462"
  86. #define BALLASPAWN "1961.5341,-1973.9967,13.3906"
  87. #define GROVECOLOR "0x008000FF"
  88. #define BALLACOLOR "0x800080AA"
  89. //============================================================================//
  90.  
  91. //============================Class-System====================================//
  92. #define SOLDIER 1
  93. #define SNIPER 2
  94. #define TECHNOLOGIC 3
  95. #define FIREFIGHTER 4
  96. #define HEALER 5
  97. #define GUNNER 6
  98. //============================================================================//
  99.  
  100. //=======================Checkpoints-Capture-Zone=============================//
  101. #define WS 0
  102. #define RS 1
  103. #define DS 2
  104. #define NC 3
  105. //============================================================================//
  106.  
  107. //============================================================================//
  108.  
  109. #endif
  110.  
  111. //================================New=========================================//
  112.  
  113. //Team Defines
  114. new gTeam[MAX_PLAYERS];
  115.  
  116. //Gang-Zones
  117. new Grove;
  118. new Balla;
  119.  
  120. //Class-System
  121. new gPlayerClass[MAX_PLAYERS];
  122. new PickedClass[MAX_PLAYERS];
  123.  
  124. //Spree-System
  125. new spree[MAX_PLAYERS];
  126. new Text:Spree;
  127.  
  128. //Capture Zones
  129.  
  130.  
  131. //Capture Zone Variables
  132. new CP[30];
  133. new Zone[30];
  134. new tCheck[30];
  135. new zDefine[MAX_PLAYERS];
  136. new UnderAttack[30];
  137. new timer[MAX_PLAYERS][30];
  138.  
  139. //Class Return Death System
  140. new ReturnToClass[MAX_PLAYERS]; //Add this at the top of your script, before calling any public functions.
  141. new HasDied[MAX_PLAYERS];
  142.  
  143. //============================================================================//
  144.  
  145. public OnGameModeInit()
  146. {
  147. //==============================Game-Mode=====================================//
  148. SetGameModeText("GVB V1.0");
  149. //=============================Classes========================================//
  150. //=============================Grove==========================================//
  151. AddPlayerClass(106,2495.2703,-1683.7095,13.3462,1.9949,0,0,0,0,0,0);
  152. //=============================Balla==========================================//
  153. AddPlayerClass(104,1961.5341,-1973.9967,13.3906,359.1019,0,0,0,0,0,0);
  154. //===========================Normal-Run-System================================//
  155. UsePlayerPedAnims();
  156. //=============================Gane-Zones=====================================//
  157. Grove = GangZoneCreate(2337.898, -1768.712, 2547.053, -1626.594);
  158. Balla = GangZoneCreate(1885.36, -2072.688, 2067.896, -1902.935);
  159. //============================Capture-Zones===================================//
  160. Zone[WS] = GangZoneCreate(2406.349, -2052.949, 2512.828, -1883.197);
  161. Zone[RS] = GangZoneCreate(2626.913, -1895.04, 2836.069, -1673.966);
  162. Zone[DS] = GangZoneCreate(1801.698, -1764.764, 1972.825, -1630.541);
  163. Zone[NC] = GangZoneCreate(2626.913, -1622.646, 2699.167, -1409.468);
  164. //==============================Checkpoints===================================//
  165. CP[WS] = CreateDynamicCP(2451.3579,-1976.1241,13.5539,3, -1,-1,-1,100.0);
  166. CP[RS] = CreateDynamicCP(2702.9163,-1697.4459,11.5086,3, -1,-1,-1,100.0);
  167. CP[DS] = CreateDynamicCP(487.0322,-12.9751,1000.6797,3, -1,-1,-1,100.0);
  168. CP[NC] = CreateDynamicCP(2676.9348,-1542.3556,25.0632,3, -1,-1,-1,100.0);
  169. //=============================Spree-System===================================//
  170. Spree = TextDrawCreate(9.000000,310.000000,"s is on a killing spree of i kills.");
  171. TextDrawAlignment(Spree,0);
  172. TextDrawBackgroundColor(Spree,0x000000ff);
  173. TextDrawFont(Spree,3);
  174. TextDrawLetterSize(Spree,0.299999,0.799999);
  175. TextDrawColor(Spree,0xffffffff);
  176. TextDrawSetOutline(Spree,1);
  177. TextDrawSetProportional(Spree,1);
  178. TextDrawSetShadow(Spree,1);
  179. TextDrawHideForAll(Spree);
  180. //============================Grove-Vehicles==================================//
  181. AddStaticVehicleEx(447,2503.60009766,-1667.59997559,13.50000000,90.00000000,-1,-1,15); //Seasparrow
  182. AddStaticVehicleEx(492,2474.00000000,-1671.00000000,13.19999981,42.00000000,-1,1,15); //Greenwood
  183. AddStaticVehicleEx(492,2478.19995117,-1656.30004883,13.19999981,91.99523926,-1,1,15); //Greenwood
  184. AddStaticVehicleEx(492,2487.50000000,-1657.80004883,13.19999981,128.00000000,86,-1,15); //Greenwood
  185. AddStaticVehicleEx(492,2478.39990234,-1676.69995117,13.19999981,43.99621582,86,-1,15); //Greenwood
  186. AddStaticVehicleEx(412,2488.89990234,-1680.00000000,13.30000019,20.00000000,86,1,15); //Voodoo
  187. AddStaticVehicleEx(412,2494.60009766,-1659.90002441,13.30000019,111.99914551,86,1,15); //Voodoo
  188. AddStaticVehicleEx(425,2494.30004883,-1698.30004883,24.39999962,0.00000000,-1,-1,15); //Hunter
  189. AddStaticVehicleEx(520,2529.60009766,-1677.50000000,20.79999924,0.00000000,-1,-1,15); //Hydra
  190. AddStaticVehicleEx(487,2507.39990234,-1695.09997559,18.20000076,0.00000000,-1,-1,15); //Maverick
  191. //==============================Balla-Vehicles================================//
  192. AddStaticVehicleEx(600,1954.09997559,-1964.59997559,13.50000000,0.00000000,53,53,15); //Picador
  193. AddStaticVehicleEx(600,1969.09997559,-1964.80004883,13.50000000,0.00000000,53,53,15); //Picador
  194. AddStaticVehicleEx(487,2041.00000000,-1999.80004883,35.29999924,358.00000000,53,-1,15); //Maverick
  195. AddStaticVehicleEx(487,2017.30004883,-1999.59997559,35.29999924,357.99499512,53,-1,15); //Maverick
  196. AddStaticVehicleEx(487,2041.09997559,-2029.90002441,35.29999924,357.99499512,53,-1,15); //Maverick
  197. AddStaticVehicleEx(487,2017.00000000,-2028.59997559,35.29999924,357.99499512,53,-1,15); //Maverick
  198. AddStaticVehicleEx(476,2022.30004883,-2049.39990234,36.20000076,0.00000000,53,-1,15); //Rustler
  199. AddStaticVehicleEx(476,2034.80004883,-2049.69995117,36.20000076,0.00000000,53,-1,15); //Rustler
  200. AddStaticVehicleEx(425,2006.50000000,-1972.30004883,24.00000000,0.00000000,-1,-1,15); //Hunter
  201. AddStaticVehicleEx(520,2042.09997559,-1972.19995117,24.00000000,0.00000000,-1,-1,15); //Hydra
  202. AddStaticVehicleEx(517,1986.80004883,-1969.19995117,16.60000038,36.00000000,53,53,15); //Majestic
  203. AddStaticVehicleEx(447,1988.00000000,-1971.40002441,23.10000038,0.00000000,53,53,15); //Seasparrow
  204. AddStaticVehicleEx(517,2008.40002441,-1968.90002441,16.60000038,35.99670410,53,53,15); //Majestic
  205. AddStaticVehicleEx(517,2014.59997559,-1968.19995117,16.60000038,35.99670410,53,53,15); //Majestic
  206. AddStaticVehicleEx(517,2024.30004883,-1968.00000000,16.60000038,35.99670410,53,53,15); //Majestic
  207. AddStaticVehicleEx(517,2032.80004883,-1967.69995117,16.60000038,35.99670410,53,53,15); //Majestic
  208. AddStaticVehicleEx(517,2042.30004883,-1967.90002441,16.60000038,35.99670410,53,53,15); //Majestic
  209. AddStaticVehicleEx(517,1954.50000000,-1943.90002441,13.50000000,328.00000000,-1,1,15); //Majestic
  210. AddStaticVehicleEx(517,1968.50000000,-1944.30004883,13.50000000,41.99487305,-1,1,15); //Majestic
  211. //==============================Grove-Map=====================================//
  212. CreateObject(987,2469.69995117,-1675.19995117,12.30000019,0.00000000,0.00000000,318.00000000); //object(elecfence_bar) (1)
  213. CreateObject(987,2468.10009766,-1665.50000000,12.30000019,0.00000000,0.00000000,281.99926758); //object(elecfence_bar) (2)
  214. CreateObject(987,2469.39990234,-1642.80004883,12.50000000,0.00000000,0.00000000,273.99755859); //object(elecfence_bar) (3)
  215. CreateObject(987,2470.00000000,-1654.40002441,12.50000000,0.00000000,0.00000000,359.99926758); //object(elecfence_bar) (4)
  216. CreateObject(987,2482.00000000,-1654.19995117,12.30000019,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (5)
  217. CreateObject(987,2493.89990234,-1654.19995117,12.39999962,0.00000000,0.00000000,335.99450684); //object(elecfence_bar) (6)
  218. CreateObject(987,2501.10009766,-1681.09997559,12.39999962,0.00000000,0.00000000,51.98937988); //object(elecfence_bar) (7)
  219. CreateObject(970,2491.89990234,-1685.69995117,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (1)
  220. CreateObject(970,2498.30004883,-1686.19995117,12.89999962,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (3)
  221. CreateObject(970,2499.69995117,-1682.50000000,12.89999962,0.00000000,0.00000000,230.00000000); //object(fencesmallb) (4)
  222. CreateObject(3524,2492.80004883,-1686.80004883,15.39999962,0.00000000,0.00000000,182.00000000); //object(skullpillar01_lvs) (1)
  223. CreateObject(3524,2497.60009766,-1686.69995117,15.39999962,0.00000000,0.00000000,181.99951172); //object(skullpillar01_lvs) (2)
  224. CreateObject(2047,2495.00000000,-1675.40002441,12.89999962,0.00000000,0.00000000,0.00000000); //object(cj_flag1) (1)
  225. CreateObject(3807,2495.10009766,-1689.90002441,17.79999924,0.00000000,0.00000000,271.99951172); //object(sfx_flag02) (2)
  226. CreateObject(2048,2491.69995117,-1689.80004883,18.29999924,0.00000000,0.00000000,182.00000000); //object(cj_flag2) (2)
  227. CreateObject(2048,2495.00000000,-1688.40002441,18.29999924,0.00000000,0.00000000,181.99951172); //object(cj_flag2) (3)
  228. CreateObject(2048,2498.19995117,-1689.90002441,18.29999924,0.00000000,0.00000000,181.99951172); //object(cj_flag2) (4)
  229. CreateObject(3279,2473.80004883,-1649.19995117,12.50000000,0.00000000,0.00000000,0.00000000); //object(a51_spottower) (2)
  230. CreateObject(3928,2503.60009766,-1667.50000000,12.39999962,0.00000000,0.00000000,0.00000000); //object(helipad) (1)
  231. CreateObject(987,2455.89990234,-1664.80004883,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (12)
  232. CreateObject(987,2443.80004883,-1664.40002441,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (13)
  233. CreateObject(987,2432.00000000,-1664.00000000,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (14)
  234. CreateObject(987,2419.60009766,-1663.90002441,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (15)
  235. CreateObject(987,2407.69995117,-1663.90002441,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (16)
  236. CreateObject(987,2395.69995117,-1663.50000000,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (17)
  237. CreateObject(987,2383.69995117,-1663.59997559,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (18)
  238. CreateObject(987,2371.80004883,-1663.50000000,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (19)
  239. CreateObject(987,2359.80004883,-1663.50000000,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (20)
  240. CreateObject(987,2351.39990234,-1663.80004883,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (21)
  241. CreateObject(987,2458.10009766,-1653.80004883,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (23)
  242. CreateObject(987,2446.00000000,-1653.69995117,12.30000019,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (24)
  243. CreateObject(987,2434.00000000,-1653.50000000,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (25)
  244. CreateObject(987,2422.19995117,-1653.30004883,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (26)
  245. CreateObject(987,2410.19995117,-1653.30004883,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (27)
  246. CreateObject(987,2398.30004883,-1653.19995117,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (28)
  247. CreateObject(987,2386.80004883,-1653.19995117,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (29)
  248. CreateObject(987,2375.00000000,-1653.19995117,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (30)
  249. CreateObject(987,2363.10009766,-1653.19995117,12.50000000,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (31)
  250. CreateObject(987,2351.30004883,-1653.40002441,12.39999962,0.00000000,0.00000000,359.99450684); //object(elecfence_bar) (32)
  251. CreateObject(14467,2466.69995117,-1663.90002441,15.00000000,0.00000000,0.00000000,268.00000000); //object(carter_statue) (1)
  252. CreateObject(14467,2467.50000000,-1655.19995117,15.10000038,0.00000000,0.00000000,267.99499512); //object(carter_statue) (2)
  253. CreateObject(8572,2505.10009766,-1690.30004883,14.80000019,0.00000000,0.00000000,272.00000000); //object(vgssstairs02_lvs) (1)
  254. CreateObject(8613,2517.10009766,-1678.80004883,16.79999924,0.00000000,0.00000000,0.00000000); //object(vgssstairs03_lvs) (1)
  255. //=================================Balla-Map==================================//
  256. CreateObject(987,1959.90002441,-2000.30004883,12.39999962,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (1)
  257. CreateObject(987,1952.00000000,-2000.09997559,12.50000000,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (2)
  258. CreateObject(3279,1969.50000000,-1996.09997559,12.50000000,0.00000000,0.00000000,180.00000000); //object(a51_spottower) (1)
  259. CreateObject(3279,1954.19995117,-1994.80004883,12.50000000,0.00000000,0.00000000,357.99450684); //object(a51_spottower) (2)
  260. CreateObject(987,1971.19995117,-1991.50000000,12.50000000,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (4)
  261. CreateObject(987,1971.30004883,-1979.69995117,12.50000000,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (5)
  262. CreateObject(987,1971.40002441,-1961.80004883,12.60000038,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (6)
  263. CreateObject(987,1971.40002441,-1949.59997559,12.60000038,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (7)
  264. CreateObject(987,1951.80004883,-1980.69995117,12.50000000,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (8)
  265. CreateObject(987,1952.00000000,-1992.09997559,12.50000000,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (9)
  266. CreateObject(987,1951.59997559,-1968.80004883,12.60000038,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (10)
  267. CreateObject(987,1951.00000000,-1956.69995117,12.60000038,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (11)
  268. CreateObject(987,1950.59997559,-1950.09997559,12.50000000,0.00000000,0.00000000,91.99951172); //object(elecfence_bar) (12)
  269. CreateObject(970,1956.40002441,-1990.40002441,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (2)
  270. CreateObject(970,1956.40002441,-1986.30004883,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (3)
  271. CreateObject(970,1956.40002441,-1982.09997559,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (4)
  272. CreateObject(970,1956.40002441,-1977.90002441,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (5)
  273. CreateObject(970,1956.40002441,-1973.69995117,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (6)
  274. CreateObject(970,1956.40002441,-1969.50000000,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (7)
  275. CreateObject(970,1956.50000000,-1965.30004883,13.19999981,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (8)
  276. CreateObject(970,1956.59997559,-1963.40002441,13.19999981,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (9)
  277. CreateObject(970,1967.00000000,-1989.19995117,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (10)
  278. CreateObject(970,1967.00000000,-1985.00000000,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (11)
  279. CreateObject(970,1967.00000000,-1980.80004883,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (12)
  280. CreateObject(970,1967.00000000,-1976.59997559,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (13)
  281. CreateObject(970,1967.00000000,-1972.40002441,13.10000038,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (14)
  282. CreateObject(970,1966.90002441,-1968.19995117,13.19999981,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (15)
  283. CreateObject(970,1967.00000000,-1964.00000000,13.19999981,0.00000000,0.00000000,270.00000000); //object(fencesmallb) (16)
  284. CreateObject(5130,1997.90002441,-1963.59997559,18.70000076,0.00000000,0.00000000,42.00000000); //object(imcompstrs02) (1)
  285. CreateObject(5130,1997.69995117,-1966.50000000,18.70000076,0.00000000,0.00000000,41.99523926); //object(imcompstrs02) (2)
  286. CreateObject(8613,2022.30004883,-1975.69995117,26.50000000,0.00000000,0.00000000,272.00000000); //object(vgssstairs03_lvs) (2)
  287. CreateObject(2991,2025.09997559,-1972.69995117,27.29999924,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (2)
  288. CreateObject(2991,2025.19995117,-1973.69995117,28.60000038,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (3)
  289. CreateObject(2991,2025.19995117,-1974.69995117,29.89999962,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (4)
  290. CreateObject(2991,2025.09997559,-1975.69995117,31.20000076,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (5)
  291. CreateObject(2991,2025.09997559,-1976.69995117,32.50000000,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (6)
  292. CreateObject(2991,2025.09997559,-1977.69995117,33.79999924,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (8)
  293. CreateObject(2991,2025.09997559,-1979.59997559,34.20000076,0.00000000,0.00000000,0.00000000); //object(imy_bbox) (9)
  294. CreateObject(10444,1963.09997559,-1985.40002441,12.39999962,0.00000000,0.00000000,0.00000000); //object(poolwater_sfs) (1)
  295. CreateObject(2991,1957.59997559,-1967.69995117,13.10000038,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (10)
  296. CreateObject(2991,1966.09997559,-1968.00000000,13.10000038,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (12)
  297. CreateObject(2991,1966.09997559,-1968.00000000,14.39999962,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (14)
  298. CreateObject(2991,1966.00000000,-1967.90002441,15.69999981,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (15)
  299. CreateObject(2991,1957.59997559,-1967.69995117,14.39999962,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (16)
  300. CreateObject(2991,1957.59997559,-1967.69995117,15.69999981,0.00000000,0.00000000,270.00000000); //object(imy_bbox) (17)
  301. //===========================Outer-Map-Vehicles===============================//
  302. //List 1
  303. AddStaticVehicleEx(527,2062.19995117,-1920.19995117,13.30000019,0.00000000,-1,-1,15); //Cadrona
  304. AddStaticVehicleEx(527,2065.60009766,-1920.30004883,13.30000019,0.00000000,-1,-1,15); //Cadrona
  305. AddStaticVehicleEx(545,2052.69995117,-1903.59997559,13.50000000,0.00000000,-1,-1,15); //Hustler
  306. AddStaticVehicleEx(545,2056.10009766,-1903.59997559,13.50000000,0.00000000,-1,-1,15); //Hustler
  307. AddStaticVehicleEx(545,2059.30004883,-1903.59997559,13.50000000,0.00000000,-1,-1,15); //Hustler
  308. AddStaticVehicleEx(545,2062.60009766,-1903.50000000,13.50000000,0.00000000,-1,-1,15); //Hustler
  309. AddStaticVehicleEx(545,2065.80004883,-1903.59997559,13.50000000,0.00000000,-1,-1,15); //Hustler
  310. AddStaticVehicleEx(448,2097.50000000,-1801.00000000,13.10000038,56.00000000,-1,-1,15); //Pizzaboy
  311. AddStaticVehicleEx(448,2097.30004883,-1812.90002441,13.10000038,126.00000000,-1,-1,15); //Pizzaboy
  312. AddStaticVehicleEx(463,1985.40002441,-1633.69995117,15.50000000,268.00000000,-1,-1,15); //Freeway
  313. AddStaticVehicleEx(461,2274.69995117,-1689.90002441,13.30000019,92.00000000,-1,-1,15); //PCJ-600
  314. AddStaticVehicleEx(461,2268.10009766,-1689.80004883,13.39999962,91.99951172,-1,-1,15); //PCJ-600
  315. AddStaticVehicleEx(461,2262.19995117,-1689.69995117,13.39999962,91.99951172,-1,-1,15); //PCJ-600
  316. AddStaticVehicleEx(461,2257.00000000,-1689.69995117,13.39999962,91.99951172,-1,-1,15); //PCJ-600
  317. AddStaticVehicleEx(461,2252.00000000,-1689.69995117,13.39999962,91.99951172,-1,-1,15); //PCJ-600
  318. AddStaticVehicleEx(461,2246.19995117,-1689.69995117,13.50000000,91.99951172,-1,-1,15); //PCJ-600
  319. AddStaticVehicleEx(461,2241.10009766,-1689.69995117,13.50000000,91.99951172,-1,-1,15); //PCJ-600
  320. AddStaticVehicleEx(461,2236.60009766,-1689.80004883,13.60000038,91.99951172,-1,-1,15); //PCJ-600
  321. AddStaticVehicleEx(461,2232.69995117,-1689.80004883,13.69999981,91.99951172,-1,-1,15); //PCJ-600
  322. AddStaticVehicleEx(422,2249.69995117,-1785.50000000,13.60000038,0.00000000,-1,-1,15); //Bobcat
  323. AddStaticVehicleEx(422,2254.89990234,-1785.30004883,13.60000038,0.00000000,-1,-1,15); //Bobcat
  324. AddStaticVehicleEx(412,2393.80004883,-1891.59997559,13.30000019,92.00000000,-1,-1,15); //Voodoo
  325. AddStaticVehicleEx(412,2384.10009766,-1892.09997559,13.30000019,91.99951172,100,8,15); //Voodoo
  326. AddStaticVehicleEx(412,2374.39990234,-1894.30004883,13.30000019,179.99938965,115,8,15); //Voodoo
  327. AddStaticVehicleEx(412,2374.39990234,-1906.30004883,13.30000019,179.99450684,126,8,15); //Voodoo
  328. AddStaticVehicleEx(412,2374.30004883,-1915.50000000,13.30000019,179.99450684,53,8,15); //Voodoo
  329. AddStaticVehicleEx(412,2376.69995117,-1920.40002441,13.30000019,269.99450684,-1,-1,15); //Voodoo
  330. AddStaticVehicleEx(412,2386.19995117,-1920.40002441,13.30000019,269.99450684,-1,-1,15); //Voodoo
  331. AddStaticVehicleEx(412,2398.30004883,-1920.50000000,13.30000019,269.99450684,-1,-1,15); //Voodoo
  332. AddStaticVehicleEx(549,2447.39990234,-1965.30004883,13.39999962,90.00000000,-1,-1,15); //Tampa
  333. AddStaticVehicleEx(456,2394.80004883,-2095.69995117,13.80000019,270.00000000,-1,-1,15); //Yankee
  334. AddStaticVehicleEx(456,2394.60009766,-2085.39990234,13.80000019,270.00000000,-1,-1,15); //Yankee
  335. AddStaticVehicleEx(456,2394.80004883,-2074.89990234,13.80000019,270.00000000,-1,-1,15); //Yankee
  336. AddStaticVehicleEx(456,2395.50000000,-2066.19995117,13.80000019,270.00000000,-1,-1,15); //Yankee
  337. AddStaticVehicleEx(406,2392.39990234,-2105.80004883,14.30000019,267.99499512,-1,-1,15); //Dumper
  338. AddStaticVehicleEx(406,2392.10009766,-2126.30004883,14.30000019,267.99499512,-1,-1,15); //Dumper
  339. AddStaticVehicleEx(408,2393.19995117,-2115.50000000,14.30000019,268.00000000,-1,-1,15); //Trashmaster
  340. AddStaticVehicleEx(408,2392.50000000,-2136.30004883,14.30000019,267.99499512,-1,-1,15); //Trashmaster
  341. AddStaticVehicleEx(596,1815.90002441,-1358.09997559,15.00000000,0.00000000,-1,-1,15); //Police Car (LSPD)
  342. AddStaticVehicleEx(597,1817.30004883,-1338.30004883,14.89999962,0.00000000,-1,-1,15); //Police Car (SFPD)
  343. AddStaticVehicleEx(598,1816.00000000,-1365.50000000,14.89999962,0.00000000,-1,-1,15); //Police Car (LVPD)
  344. AddStaticVehicleEx(599,1816.09997559,-1372.80004883,15.39999962,0.00000000,-1,-1,15); //Police Ranger
  345. AddStaticVehicleEx(601,1825.30004883,-1369.19995117,14.39999962,0.00000000,-1,-1,15); //S.W.A.T. Van
  346. AddStaticVehicleEx(601,1825.19995117,-1360.30004883,14.39999962,0.00000000,-1,-1,15); //S.W.A.T. Van
  347. //===========================Outer-Map-Maps===================================//
  348. //List 1
  349. CreateObject(987,2101.80004883,-1647.90002441,12.50000000,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (1)
  350. CreateObject(987,2102.00000000,-1635.69995117,12.50000000,0.00000000,0.00000000,90.00000000); //object(elecfence_bar) (2)
  351. CreateObject(987,2106.30004883,-1594.19995117,12.60000038,0.00000000,0.00000000,264.00000000); //object(elecfence_bar) (3)
  352. CreateObject(1649,2439.80004883,-1970.19995117,15.60000038,0.00000000,0.00000000,90.00000000); //object(wglasssmash) (2)
  353. CreateObject(1649,2439.80004883,-1965.69995117,15.60000038,0.00000000,0.00000000,90.00000000); //object(wglasssmash) (3)
  354. CreateObject(1649,2439.80004883,-1979.80004883,15.89999962,0.00000000,0.00000000,90.00000000); //object(wglasssmash) (4)
  355. CreateObject(1667,2440.39990234,-1974.50000000,14.19999981,0.00000000,0.00000000,0.00000000); //object(propwineglass1) (1)
  356. CreateObject(1667,2440.39990234,-1974.09997559,14.19999981,0.00000000,0.00000000,0.00000000); //object(propwineglass1) (2)
  357. CreateObject(1487,2440.39990234,-1973.69995117,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (1)
  358. CreateObject(1487,2440.39990234,-1973.30004883,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (2)
  359. CreateObject(1487,2440.39990234,-1972.90002441,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (3)
  360. CreateObject(1487,2440.50000000,-1979.00000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (4)
  361. CreateObject(1487,2440.50000000,-1979.50000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (5)
  362. CreateObject(1487,2440.50000000,-1980.00000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (6)
  363. CreateObject(1487,2440.50000000,-1980.50000000,14.30000019,0.00000000,0.00000000,0.00000000); //object(dyn_wine_1) (7)
  364. //============================================================================//
  365. return 1;
  366. }
  367.  
  368. public OnGameModeExit()
  369. {
  370. //============================Spree-Textdraw-System===========================//
  371. TextDrawDestroy(Spree);
  372. return 1;
  373. }
  374.  
  375. public OnPlayerRequestClass(playerid, classid)
  376. {
  377. switch(classid)
  378. {
  379. case 0:
  380. {
  381. gTeam[playerid] = TEAM_GROVE;
  382. GameTextForPlayer(playerid, "~g~Grove", 5000, 5);
  383. SetPlayerPos(playerid, 2495.2703,-1683.7095,13.3462);
  384. SetPlayerFacingAngle(playerid, 9949);
  385. SetPlayerCameraPos(playerid, 2494.6191,-1675.4584,13.3359);
  386. SetPlayerCameraLookAt(playerid, 2495.2703,-1683.7095,13.3462);
  387.  
  388. }
  389. case 1:
  390. {
  391.  
  392. gTeam[playerid] = TEAM_BALLA;
  393. GameTextForPlayer(playerid, "~b~Balla", 5000, 5);
  394. SetPlayerPos(playerid, 1961.5341,-1973.9967,13.3906);
  395. SetPlayerFacingAngle(playerid,1019);
  396. SetPlayerCameraPos(playerid,1961.9026,-1964.0034,13.6362);
  397. SetPlayerCameraLookAt(playerid,1961.5341,-1973.9967,13.3906);
  398.  
  399. }
  400.  
  401.  
  402. }
  403. {
  404. SetPlayerToTeamColour(playerid);
  405. }
  406.  
  407. return 1;
  408. }
  409. SetPlayerToTeamColour(playerid)
  410. {
  411. if(gTeam[playerid] == TEAM_GROVE)
  412. {
  413. SetPlayerColor(playerid,COLOR_GREEN);
  414. }
  415. else if(gTeam[playerid] == TEAM_BALLA)
  416. {
  417. SetPlayerColor(playerid,COLOR_PURPLE);
  418. }
  419.  
  420. }
  421. public OnPlayerConnect(playerid)
  422. {
  423. //==============================Connect-Message===============================//
  424. SendClientMessage(playerid, COLOR_WHITE,"Welcome to Grove Vs Balla server");
  425. //{0FFF00},{00FFFF}
  426. //============================================================================//
  427.  
  428. //============================Class-System====================================//
  429. 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","");
  430. //============================================================================//
  431.  
  432. //============================Capture-Zones===================================//
  433. GangZoneShowForPlayer(playerid, Zone[WS], 0xFFFFFF96);
  434. GangZoneShowForPlayer(playerid, Zone[RS], 0xFFFFFF96);
  435. GangZoneShowForPlayer(playerid, Zone[DS], 0xFFFFFF96);
  436. GangZoneShowForPlayer(playerid, Zone[NC], 0xFFFFFF96);
  437. //============================================================================//
  438.  
  439. //=====================Class-Death-Return-System==============================//
  440. ReturnToClass[playerid] = 0;
  441. //============================================================================//
  442.  
  443. return 1;
  444. }
  445.  
  446. public OnPlayerDisconnect(playerid, reason)
  447. {
  448. return 1;
  449. }
  450.  
  451. public OnPlayerSpawn(playerid)
  452. {
  453. //============================Gang-Zones======================================//
  454. GangZoneShowForPlayer(playerid, Grove, 0x008000FF);
  455. GangZoneShowForPlayer(playerid, Balla, 0x800080AA);
  456. //============================================================================//
  457.  
  458. //=====================Class-Death-Return-System==============================//
  459. if(HasDied[playerid] == 1)
  460. {
  461. 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","");
  462. HasDied[playerid] = 0;
  463. }
  464. //============================================================================//
  465.  
  466. //============================Class-System====================================//
  467.  
  468. if(gPlayerClass[playerid] == SOLDIER)//This is for the First soldier class.
  469. {
  470. TogglePlayerControllable(playerid, 1);
  471. ResetPlayerWeapons(playerid);
  472. GivePlayerWeapon(playerid, 31, 200);//m4
  473. GivePlayerWeapon(playerid, 25, 100);//mp5
  474. GivePlayerWeapon(playerid, 24, 70);//deagle
  475. }
  476. else if(gPlayerClass[playerid] == SNIPER)//This is for the Second Sniper class.
  477. {
  478. TogglePlayerControllable(playerid, 1);
  479. ResetPlayerWeapons(playerid);
  480. GivePlayerWeapon(playerid, 34, 250);//sniper
  481. GivePlayerWeapon(playerid, 29, 250);//mp5
  482. GivePlayerWeapon(playerid, 4, 1);//knife
  483. }
  484. else if(gPlayerClass[playerid] == TECHNOLOGIC)//This is for the Second Engineer class.
  485. {
  486. TogglePlayerControllable(playerid, 1);
  487. ResetPlayerWeapons(playerid);
  488. GivePlayerWeapon(playerid, 27, 200);//spas12
  489. GivePlayerWeapon(playerid, 23, 200);//silent pistol
  490. GivePlayerWeapon(playerid, 35, 2);//rpg
  491. GivePlayerWeapon(playerid, 16, 2);//grenade
  492. }
  493. else if(gPlayerClass[playerid] == FIREFIGHTER)//This is for the Second Jetrooper class.
  494. {
  495. TogglePlayerControllable(playerid, 1);
  496. ResetPlayerWeapons(playerid);
  497. GivePlayerWeapon(playerid, 32, 500);//tec-9
  498. GivePlayerWeapon(playerid, 22, 500);//colt
  499. GivePlayerWeapon(playerid, 25, 500);//shotgun
  500. GivePlayerWeapon(playerid, 4, 1);//knife
  501. }
  502. else if(gPlayerClass[playerid] == HEALER)//This is for the Second Pilot class.
  503. {
  504. TogglePlayerControllable(playerid, 1);
  505. ResetPlayerWeapons(playerid);
  506. GivePlayerWeapon(playerid, 24, 200);//deagle
  507. GivePlayerWeapon(playerid, 17, 1);//moltove
  508. GivePlayerWeapon(playerid, 25, 100);//shotgun
  509. }
  510. else if(gPlayerClass[playerid] == GUNNER)//This is for the Second Spy class.
  511. {
  512. TogglePlayerControllable(playerid, 1);
  513. ResetPlayerWeapons(playerid);
  514. GivePlayerWeapon(playerid, 29, 500);//mp5
  515. GivePlayerWeapon(playerid, 23, 230);//silent pistol
  516. GivePlayerWeapon(playerid, 31, 350);//M4
  517. GivePlayerWeapon(playerid, 18, 4);//moltove
  518. }
  519. //============================================================================//
  520.  
  521. //==============================Rank-Bonuses==================================//
  522. if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 100)
  523. {
  524. SetPlayerHealth(playerid, 75);
  525. }
  526. if (GetPlayerScore(playerid) >= 100 && GetPlayerScore(playerid) <= 200)
  527. {
  528. SetPlayerHealth(playerid, 100);
  529. }
  530. if (GetPlayerScore(playerid) >= 200 && GetPlayerScore(playerid) <= 400)
  531. {
  532. SetPlayerHealth(playerid, 100);
  533. SetPlayerArmour(playerid, 100);
  534. }
  535. //============================================================================//
  536.  
  537. //==============================Team-Balancer=================================//
  538. new team1count, team2count;
  539. for(new i, m = GetMaxPlayers(); i < m; i++)
  540. {
  541. if (IsPlayerConnected(i))
  542. {
  543. if (gTeam[i] == TEAM_GROVE) team1count++;
  544. else if (gTeam[i] == TEAM_BALLA) team2count++;
  545. }
  546. }
  547. if (gTeam[playerid] == TEAM_GROVE)
  548. {
  549. if (team1count > (team2count+1))
  550. {
  551. SendClientMessage(playerid, COLOR_YELLOW, "This team is full, please choose the other one.");
  552. return 0;
  553. }
  554.  
  555. }
  556. else if (gTeam[playerid] == TEAM_BALLA)
  557. {
  558. if ((team1count+1) < team2count)
  559. {
  560. SendClientMessage(playerid, COLOR_YELLOW, "This team is full, please choose the other one.");
  561. return 0;
  562. }
  563. }
  564. return 1;
  565. }
  566. //============================================================================//
  567.  
  568.  
  569. public OnPlayerDeath(playerid, killerid, reason)
  570. {
  571. //=============================Death-Reason===================================//
  572. SendDeathMessage(killerid, playerid, reason);
  573. //============================================================================//
  574.  
  575. //============================Player-Bonus====================================//
  576. SetPlayerScore(killerid, GetPlayerScore(killerid) +1);
  577. GivePlayerMoney(killerid, 5000);
  578. SendClientMessage(killerid, COLOR_GROVE,"You got 1 score and 5000 cash for killing a player");
  579. //============================================================================//
  580.  
  581. //==============================Player-Loss===================================//
  582. GivePlayerMoney(playerid, -1000);
  583. SendClientMessage(playerid, COLOR_RED,"You lost $2000 for dieing");
  584. //============================================================================//
  585.  
  586. //=====================Class-Death-Return-System==============================//
  587. if(ReturnToClass[playerid] == 1)
  588. {
  589. HasDied[playerid] = 1;
  590. //ForceClassSelection(playerid); //You Can Remove This If You Do Not Want It To Work This Way.
  591. ReturnToClass[playerid] = 0;
  592. }
  593. //============================================================================//
  594.  
  595. //==============================Spree-System==================================//
  596. spree[killerid]++;
  597.  
  598. if(spree[killerid] == 2)
  599. {
  600. new string[128];
  601. new pName[MAX_PLAYER_NAME];
  602. GetPlayerName(killerid, pName, sizeof(pName));
  603. format(string, sizeof(string), "%s is on a killing spree, with 5 kills", pName); //It goes for 2 kills
  604. TextDrawHideForAll(Spree);
  605. TextDrawSetString(Spree, string);
  606. TextDrawShowForAll(Spree); SetTimer("TxtReset", 3000, 0);
  607. }
  608.  
  609. if(spree[killerid] == 7)
  610. {
  611. new string[128];
  612. new pName[MAX_PLAYER_NAME];
  613. GetPlayerName(killerid, pName, sizeof(pName));
  614. format(string, sizeof(string), "%s is on a killing spree, with 7 kills!", pName);//it goes for 7 kills!
  615. TextDrawHideForAll(Spree);
  616. TextDrawSetString(Spree, string);
  617. TextDrawShowForAll(Spree); SetTimer("TxtReset", 3000, 0);
  618. //Here you can add a function or a special action with 7 kills
  619. }
  620.  
  621. if(spree[killerid] == 10)
  622. {
  623. new string[128];
  624. new pName[MAX_PLAYER_NAME];
  625. GetPlayerName(killerid, pName, sizeof(pName));
  626. format(string, sizeof(string), "%s is on a killing spre with 10 kills~", pName);//It goes for 10 kills
  627. TextDrawHideForAll(Spree);
  628. TextDrawSetString(Spree, string);
  629. TextDrawShowForAll(Spree); SetTimer("TxtReset", 3000, 0);//You can add more if you want!
  630. }
  631. //============================================================================//
  632. return 1;
  633.  
  634. }
  635.  
  636. public OnVehicleSpawn(vehicleid)
  637. {
  638. return 1;
  639. }
  640.  
  641. public OnVehicleDeath(vehicleid, killerid)
  642. {
  643. return 1;
  644. }
  645.  
  646. public OnPlayerText(playerid, text[])
  647. {
  648. return 1;
  649. }
  650.  
  651. public OnPlayerCommandText(playerid, cmdtext[])
  652. {
  653. return 0;
  654. }
  655. CMD:help(playerid, params[])
  656. {
  657. SendClientMessage(playerid, COLOR_YELLOW,"=====================Help=========================");
  658. SendClientMessage(playerid, COLOR_YELLOW,"Welcome to Grove Vs Balla [TDM] server");
  659. SendClientMessage(playerid, COLOR_YELLOW,"Kill enemies,capture zones and earn killing spree");
  660. SendClientMessage(playerid, COLOR_YELLOW,"Rank up more and have fun have a different 2 Team");
  661. SendClientMessage(playerid, COLOR_YELLOW,"TDM Experience with the all new Grove Vs Balla");
  662. SendClientMessage(playerid, COLOR_YELLOW,"Hope you have fun!");
  663. SendClientMessage(playerid, COLOR_YELLOW,"===================================================");
  664. return 1;
  665. }
  666. CMD:kill(playerid, params[])
  667. {
  668. SetPlayerHealth(playerid, 0);
  669. SendClientMessage(playerid,COLOR_RED,"You have suicided");
  670. return 1;
  671. }
  672. CMD:rules(playerid, params[])
  673. {
  674. SendClientMessage(playerid, COLOR_GROVE,"=========================Server-Rules=========================");
  675. SendClientMessage(playerid, COLOR_YELLOW,"1.Do not car park!");
  676. SendClientMessage(playerid, COLOR_YELLOW,"2.Do not heli blade kill!");
  677. SendClientMessage(playerid, COLOR_YELLOW,"3.Do not hack or use mods");
  678. SendClientMessage(playerid, COLOR_YELLOW,"4.Do not spawn-kill");
  679. SendClientMessage(playerid, COLOR_YELLOW,"5.Don't shoot your team members");
  680. SendClientMessage(playerid, COLOR_YELLOW,"6.Do not disrespect/spam/flame anyone");
  681. SendClientMessage(playerid, COLOR_YELLOW,"7.Do not spam anyones pm or main chat");
  682. SendClientMessage(playerid, COLOR_GROVE,"==============================================================");
  683. return 1;
  684. }
  685. CMD:cmds(playerid, params[])
  686. {
  687. SendClientMessage(playerid, COLOR_GREEN,"====================Server-Commands================");
  688. SendClientMessage(playerid, COLOR_YELLOW,"/help,/kill,/rules,/sc,/rank,/r,/backup");
  689. SendClientMessage(playerid, COLOR_YELLOW,"/ct,/myteam,/myclass,/updates");
  690. SendClientMessage(playerid, COLOR_GREEN,"===================================================");
  691. return 1;
  692. }
  693. CMD:sc(playerid, params[])
  694. {
  695. if(ReturnToClass[playerid] == 1) return SendClientMessage(playerid, 0xFF0000FF, "You Have Already Requested To Return To Class Selection.");
  696. if(GetPlayerState(playerid) == PLAYER_STATE_WASTED) return SendClientMessage(playerid, 0xFF0000FF, "You Must Be Alive To Use This Command!");
  697. ReturnToClass[playerid] = 1;
  698. SendClientMessage(playerid, 0x00FF00FF, "Returning To Class Selection After Next Death.");
  699. return 1;
  700.  
  701. }
  702. CMD:rank(playerid, params[])
  703. {
  704. Rank(playerid);
  705. return 1;
  706. }
  707. CMD:ranks(playerid, params[])
  708. {
  709. SendClientMessage(playerid, COLOR_RED,"==========================Ranks=====================");
  710. SendClientMessage(playerid, COLOR_GREEN,"Rank - 1 Soldier (0)");
  711. SendClientMessage(playerid, COLOR_GREEN,"Rank - 2 Colonel (100)");
  712. SendClientMessage(playerid, COLOR_GREEN,"Rank - 3 ArmyMan (200)");
  713. SendClientMessage(playerid, COLOR_GREEN,"Rank - 4 Leader (400)");
  714. SendClientMessage(playerid, COLOR_GREEN,"Rank - 5 Commander(800)");
  715. SendClientMessage(playerid, COLOR_RED,"====================================================");
  716. return 1;
  717. }
  718. CMD:r(playerid,params[])
  719. {
  720. #pragma unused params
  721. if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /r [text] to talk in team radio");
  722. new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name));
  723. new string[128];
  724. format(string, sizeof(string), "[R][Team Radio] %s: %s", Name, params[0]);
  725. printf("%s", string);
  726.  
  727. for(new i = 0; i < MAX_PLAYERS; i++)
  728. {
  729. if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, COLOR_BLUE, string);
  730. }
  731. return 1;
  732. }
  733. CMD:backup(playerid, params[])
  734. {
  735. if(GetPlayerScore(playerid) >= 200)
  736. {
  737. new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name));
  738. new string[128];
  739. format(string, sizeof(string), "[REQUESTING BACKUP]: %s is requesting for backup!", Name);
  740. printf("%s", string);
  741.  
  742. for(new i = 0; i < MAX_PLAYERS; i++)
  743. {
  744. if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, COLOR_RED, string);
  745. }
  746. }
  747. else
  748. {
  749. SendClientMessage(playerid, COLOR_RED,"You need to be Rank - 3 to use this command!");
  750. }
  751. return 1;
  752. }
  753. CMD:ct(playerid, params[])
  754. {
  755. ForceClassSelection(playerid);
  756. SendClientMessage(playerid, COLOR_GREEN,"Returing to team selection after next death ....");
  757. SendClientMessage(playerid, COLOR_YELLOW,"You can use /kill to go to team selection right now");
  758.  
  759. return 1;
  760. }
  761. CMD:myteam(playerid, params[])
  762. {
  763. MyTeam(playerid);
  764. return 1;
  765. }
  766. CMD:myclass(playerid, params[])
  767. {
  768. MyClass(playerid);
  769.  
  770. return 1;
  771. }
  772. CMD:forums(playerid, params[])
  773. {
  774. GameTextForPlayer(playerid, "~w~Server Website:~n~gt-samp.xtrweb.com", 2500, 3);
  775. return 1;
  776. }
  777. CMD:updates(playerid, params[])
  778. {
  779. SendClientMessage(playerid, COLOR_RED,"===============V1.0-UPDATES================");
  780. SendClientMessage(playerid, COLOR_PINK,"1. 2 Teams Grove and Balla");
  781. SendClientMessage(playerid, COLOR_PINK,"2. 4 Capture Zones");
  782. SendClientMessage(playerid, COLOR_PINK,"3. Fully war type mapped");
  783. SendClientMessage(playerid, COLOR_PINK,"4. Many commands added");
  784. SendClientMessage(playerid, COLOR_PINK,"5. Unique rank system");
  785. SendClientMessage(playerid, COLOR_PINK,"6. Unique Class system");
  786. SendClientMessage(playerid, COLOR_PINK,"7. Killing spree system");
  787. SendClientMessage(playerid, COLOR_PINK,"8. Rank command and bank bonusses");
  788. SendClientMessage(playerid, COLOR_RED,"===========================================");
  789. return 1;
  790. }
  791.  
  792. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  793. {
  794. return 1;
  795. }
  796.  
  797. public OnPlayerExitVehicle(playerid, vehicleid)
  798. {
  799. return 1;
  800. }
  801.  
  802. public OnPlayerStateChange(playerid, newstate, oldstate)
  803. {
  804. return 1;
  805. }
  806. public OnPlayerEnterRaceCheckpoint(playerid)
  807. {
  808. return 1;
  809. }
  810.  
  811. public OnPlayerLeaveRaceCheckpoint(playerid)
  812. {
  813. return 1;
  814. }
  815.  
  816. public OnRconCommand(cmd[])
  817. {
  818. return 1;
  819. }
  820.  
  821. public OnPlayerRequestSpawn(playerid)
  822. {
  823. return 1;
  824. }
  825.  
  826. public OnObjectMoved(objectid)
  827. {
  828. return 1;
  829. }
  830.  
  831. public OnPlayerObjectMoved(playerid, objectid)
  832. {
  833. return 1;
  834. }
  835.  
  836. public OnPlayerPickUpPickup(playerid, pickupid)
  837. {
  838. return 1;
  839. }
  840.  
  841. public OnVehicleMod(playerid, vehicleid, componentid)
  842. {
  843. return 1;
  844. }
  845.  
  846. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  847. {
  848. return 1;
  849. }
  850.  
  851. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  852. {
  853. return 1;
  854. }
  855.  
  856. public OnPlayerSelectedMenuRow(playerid, row)
  857. {
  858. return 1;
  859. }
  860.  
  861. public OnPlayerExitedMenu(playerid)
  862. {
  863. return 1;
  864. }
  865.  
  866. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  867. {
  868. return 1;
  869. }
  870.  
  871. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  872. {
  873. return 1;
  874. }
  875.  
  876. public OnRconLoginAttempt(ip[], password[], success)
  877. {
  878. return 1;
  879. }
  880.  
  881. public OnPlayerUpdate(playerid)
  882. {
  883. return 1;
  884. }
  885.  
  886. public OnPlayerStreamIn(playerid, forplayerid)
  887. {
  888. return 1;
  889. }
  890.  
  891. public OnPlayerStreamOut(playerid, forplayerid)
  892. {
  893. return 1;
  894. }
  895.  
  896. public OnVehicleStreamIn(vehicleid, forplayerid)
  897. {
  898. return 1;
  899. }
  900.  
  901. public OnVehicleStreamOut(vehicleid, forplayerid)
  902. {
  903. return 1;
  904. }
  905.  
  906. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  907. {
  908. if(dialogid == 999)//dialog id response
  909. {
  910. if(response)
  911. {
  912. if(listitem == 0)
  913. if(GetPlayerScore(playerid) >= 0)//if player have 0 score then he can choose this class
  914. {
  915. SendClientMessage(playerid, COLOR_WHITE, "You have choosen Soldier as your class.");
  916. 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","");
  917. gPlayerClass[playerid] = SOLDIER;//setting the class to soldier
  918. PickedClass[playerid] = 1;
  919. SetPlayerVirtualWorld(playerid, 0);
  920. TogglePlayerControllable(playerid, 1);
  921. ResetPlayerWeapons(playerid);
  922. GivePlayerWeapon(playerid, 31, 200);//m4
  923. GivePlayerWeapon(playerid, 25, 100);//mp5
  924. GivePlayerWeapon(playerid, 24, 70);//deagle
  925. }
  926. if(listitem == 1)
  927. if(GetPlayerScore(playerid) >= 150)//if player have 150 score then he can choose this class
  928. {
  929. SendClientMessage(playerid, COLOR_WHITE, "You have choosen Sniper as your class.");
  930. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Sniper Class:", "{F81414}Abilities:\n{FFFFFF}A Solo class, good in range attacks.", "Play","");
  931. gPlayerClass[playerid] = SNIPER;//setting the class to soldier
  932. PickedClass[playerid] = 1;
  933. SetPlayerVirtualWorld(playerid, 0);
  934. TogglePlayerControllable(playerid, 1);
  935. ResetPlayerWeapons(playerid);
  936. GivePlayerWeapon(playerid, 34, 250);//sniper
  937. GivePlayerWeapon(playerid, 29, 250);//mp5
  938. GivePlayerWeapon(playerid, 4, 1);//knife
  939. }
  940. else
  941. {
  942. 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","");
  943. SendClientMessage(playerid, COLOR_RED,"You don't have enough score to select this class");
  944. }
  945. if(listitem == 2)
  946. if(GetPlayerScore(playerid) >= 500)//if player have 150 score then he can choose this class
  947. {
  948. SendClientMessage(playerid, COLOR_WHITE, "You have choosen Technologic as your class.");
  949. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Technologic Class:", "{F81414}Abilities:\n{FFFFFF}A Solo class, can take out whats infront of it.", "Play","");
  950. gPlayerClass[playerid] = TECHNOLOGIC;//setting the class to soldier
  951. PickedClass[playerid] = 1;
  952. SetPlayerVirtualWorld(playerid, 0);
  953. TogglePlayerControllable(playerid, 1);
  954. ResetPlayerWeapons(playerid);
  955. GivePlayerWeapon(playerid, 27, 200);//spas12
  956. GivePlayerWeapon(playerid, 23, 200);//silent pistol
  957. GivePlayerWeapon(playerid, 35, 2);//rpg
  958. GivePlayerWeapon(playerid, 16, 2);//grenade
  959. }
  960. else
  961. {
  962. 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","");
  963. SendClientMessage(playerid, COLOR_RED,"You don't have enough score to select this class");
  964. }
  965. if(listitem == 3)
  966. if(GetPlayerScore(playerid) >= 2000)//if player have 150 score then he can choose this class
  967. {
  968. SendClientMessage(playerid, COLOR_WHITE, "You have choosen FireFighter as your class.");
  969. 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","");
  970. gPlayerClass[playerid] = FIREFIGHTER;//setting the class to soldier
  971. PickedClass[playerid] = 1;
  972. SetPlayerVirtualWorld(playerid, 0);
  973. TogglePlayerControllable(playerid, 1);
  974. ResetPlayerWeapons(playerid);
  975. GivePlayerWeapon(playerid, 32, 500);//tec-9
  976. GivePlayerWeapon(playerid, 22, 500);//colt
  977. GivePlayerWeapon(playerid, 25, 500);//shotgun
  978. GivePlayerWeapon(playerid, 37, 230);//Flame-Thrower
  979. GivePlayerWeapon(playerid, 42, 500);//Fire extinguisher
  980.  
  981. }
  982. else
  983. {
  984. 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","");
  985. SendClientMessage(playerid, COLOR_RED,"You don't have enough score to select this class");
  986. }
  987. if(listitem == 4)
  988. if(GetPlayerScore(playerid) >= 5000)//if player have 150 score then he can choose this class
  989. {
  990. SendClientMessage(playerid, COLOR_WHITE, "You have choosen Medic as your class.");
  991. ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Healer Class:", "{F81414}Abilities:\n{FFFFFF}A Solo class, Good in combats and great fighting skills.", "Play","");
  992. gPlayerClass[playerid] = HEALER;//setting the class to soldier
  993. PickedClass[playerid] = 1;
  994. SetPlayerVirtualWorld(playerid, 0);
  995. TogglePlayerControllable(playerid, 1);
  996. ResetPlayerWeapons(playerid);
  997. GivePlayerWeapon(playerid, 24, 200);//deagle
  998. GivePlayerWeapon(playerid, 17, 1);//moltove
  999. GivePlayerWeapon(playerid, 25, 100);//shotgun
  1000. }
  1001. else
  1002. {
  1003. 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","");
  1004. SendClientMessage(playerid, COLOR_RED,"You don't have enough score to select this class");
  1005. }
  1006. if(listitem == 5)
  1007. if(GetPlayerScore(playerid) >= 10000)//if player have 150 score then he can choose this class
  1008. {
  1009. SendClientMessage(playerid, COLOR_WHITE, "You have choosen Special_Agent as your class.");
  1010. 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","");
  1011. gPlayerClass[playerid] = GUNNER;//setting the class to soldier
  1012. PickedClass[playerid] = 1;
  1013. SetPlayerVirtualWorld(playerid, 0);
  1014. TogglePlayerControllable(playerid, 1);
  1015. ResetPlayerWeapons(playerid);
  1016. GivePlayerWeapon(playerid, 29, 500);//mp5
  1017. GivePlayerWeapon(playerid, 23, 230);//silent pistol
  1018. GivePlayerWeapon(playerid, 31, 350);//M4
  1019. GivePlayerWeapon(playerid, 18, 4);//moltove
  1020. }
  1021. else
  1022. {
  1023. 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","");
  1024. SendClientMessage(playerid, COLOR_RED,"You don't have enough score to select this class");
  1025. }
  1026.  
  1027. }
  1028. }
  1029. return 1;
  1030. }
  1031.  
  1032. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1033. {
  1034. return 1;
  1035. }
  1036. forward Txtreset();
  1037. public Txtreset()
  1038. {
  1039. TextDrawHideForAll(Spree);
  1040. return 1;
  1041. }
  1042. public OnPlayerEnterDynamicCP(playerid, checkpointid)
  1043. {
  1044. if(checkpointid == CP[WS])
  1045. {
  1046. if(tCheck[WS] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
  1047. if(UnderAttack[WS] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
  1048. if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"ERROR: You cannot capture while in vehicle!");
  1049. UnderAttack[WS] = 1;
  1050. timer[playerid][WS] = SetTimerEx("SetZone",25000,false,"i", playerid);
  1051. if(gTeam[playerid] == TEAM_GROVE)
  1052. {
  1053. GangZoneFlashForAll(Zone[WS],COLOR_GREEN);
  1054. SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Grove is Attacking Weapon Shop");
  1055. }
  1056. else if(gTeam[playerid] == TEAM_BALLA)
  1057. {
  1058. GangZoneFlashForAll(Zone[WS],COLOR_PURPLE);
  1059. SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Balla is Attacking Weapon Shop");
  1060. }
  1061. SendClientMessage(playerid, COLOR_GREEN,"Stay in this checkpoint for 25 second to capture the zone");
  1062. zDefine[playerid] = WS;
  1063. }
  1064.  
  1065. if(checkpointid == CP[RS])
  1066. {
  1067. if(tCheck[RS] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
  1068. if(UnderAttack[RS] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
  1069. if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"ERROR: You cannot capture while in vehicle!");
  1070. UnderAttack[RS] = 1;
  1071. timer[playerid][RS] = SetTimerEx("SetZone",25000,false,"i", playerid);
  1072. if(gTeam[playerid] == TEAM_GROVE)
  1073. {
  1074. GangZoneFlashForAll(Zone[RS],COLOR_GREEN);
  1075. SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Grove is Attacking Racing Stadium");
  1076. }
  1077. else if(gTeam[playerid] == TEAM_BALLA)
  1078. {
  1079. GangZoneFlashForAll(Zone[RS],COLOR_PURPLE);
  1080. SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Balla is Attacking Racing Stadium");
  1081. }
  1082. SendClientMessage(playerid, COLOR_GREEN,"Stay in this checkpoint for 25 second to capture the zone");
  1083. zDefine[playerid] = RS;
  1084. }
  1085. if(checkpointid == CP[DS])
  1086. {
  1087. if(tCheck[DS] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
  1088. if(UnderAttack[DS] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
  1089. if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"ERROR: You cannot capture while in vehicle!");
  1090. UnderAttack[DS] = 1;
  1091. timer[playerid][DS] = SetTimerEx("SetZone",25000,false,"i", playerid);
  1092. if(gTeam[playerid] == TEAM_GROVE)
  1093. {
  1094. GangZoneFlashForAll(Zone[DS],COLOR_GREEN);
  1095. SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Grove is Attacking Disco Club");
  1096. }
  1097. else if(gTeam[playerid] == TEAM_BALLA)
  1098. {
  1099. GangZoneFlashForAll(Zone[DS],COLOR_PURPLE);
  1100. SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Balla is Attacking Disco Club");
  1101. }
  1102. SendClientMessage(playerid, COLOR_GREEN,"Stay in this checkpoint for 25 second to capture the zone");
  1103. zDefine[playerid] = DS;
  1104. }
  1105. if(checkpointid == CP[NC])
  1106. {
  1107. if(tCheck[NC] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team");
  1108. if(UnderAttack[NC] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!");
  1109. if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"ERROR: You cannot capture while in vehicle!");
  1110. UnderAttack[NC] = 1;
  1111. timer[playerid][NC] = SetTimerEx("SetZone",25000,false,"i", playerid);
  1112. if(gTeam[playerid] == TEAM_GROVE)
  1113. {
  1114. GangZoneFlashForAll(Zone[NC],COLOR_GREEN);
  1115. SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Grove is Attacking New Castle");
  1116. }
  1117. else if(gTeam[playerid] == TEAM_BALLA)
  1118. {
  1119. GangZoneFlashForAll(Zone[NC],COLOR_PURPLE);
  1120. SendClientMessageToAll(COLOR_YELLOW,"Server News: Team Balla is Attacking New Castle");
  1121. }
  1122. SendClientMessage(playerid, COLOR_GREEN,"Stay in this checkpoint for 25 second to capture the zone");
  1123. zDefine[playerid] = NC;
  1124. }
  1125. return 1;
  1126. }
  1127. public OnPlayerLeaveDynamicCP(playerid, checkpointid)
  1128. {
  1129. if(checkpointid == CP[WS])
  1130. {
  1131. UnderAttack[WS] = -1;
  1132. GangZoneStopFlashForAll(Zone[WS]);
  1133. KillTimer(timer[playerid][WS]);
  1134. }
  1135. if(checkpointid == CP[RS])
  1136. {
  1137. UnderAttack[RS] = -1;
  1138. GangZoneStopFlashForAll(Zone[RS]);
  1139. KillTimer(timer[playerid][RS]);
  1140. }
  1141. if(checkpointid == CP[DS])
  1142. {
  1143. UnderAttack[DS] = -1;
  1144. GangZoneStopFlashForAll(Zone[DS]);
  1145. KillTimer(timer[playerid][DS]);
  1146. }
  1147. if(checkpointid == CP[NC])
  1148. {
  1149. UnderAttack[NC] = -1;
  1150. GangZoneStopFlashForAll(Zone[NC]);
  1151. KillTimer(timer[playerid][NC]);
  1152. }
  1153. return 1;
  1154. }
  1155. forward CountingDown(playerid, time);
  1156. public CountingDown(playerid, time)
  1157. {
  1158. if(time != 0)
  1159. {
  1160. new string[5];
  1161. format(string, sizeof(string), "%d", time);
  1162. GameTextForPlayer(playerid, string, 1200, 4);
  1163. SetTimerEx("CountingDown", 1000, true, "ii", playerid, time-1);
  1164. }
  1165. else
  1166. {
  1167. GameTextForPlayer(playerid, "~g~Captured!", 2500, 3);
  1168. TogglePlayerControllable(playerid, 1);
  1169. }
  1170. return true;
  1171. }
  1172.  
  1173. forward Rank(playerid);
  1174.  
  1175. public Rank(playerid)
  1176. {
  1177. if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 100)
  1178. {
  1179. SendClientMessage(playerid, COLOR_RED,"Your a Soldier Rank - 1");
  1180. }
  1181. if (GetPlayerScore(playerid) >= 100 && GetPlayerScore(playerid) <= 200)
  1182. {
  1183. SendClientMessage(playerid, COLOR_RED,"Your a Colonel Rank - 2");
  1184. }
  1185. if (GetPlayerScore(playerid) >= 200 && GetPlayerScore(playerid) <= 400)
  1186. {
  1187. SendClientMessage(playerid, COLOR_RED,"Your a ArmyMan Rank - 3");
  1188. }
  1189. if (GetPlayerScore(playerid) >= 400 && GetPlayerScore(playerid) <= 800)
  1190. {
  1191. SendClientMessage(playerid, COLOR_RED,"Your a Leader Rank - 4");
  1192. }
  1193. if (GetPlayerScore(playerid) >= 800 && GetPlayerScore(playerid) <= 1600)
  1194. {
  1195. SendClientMessage(playerid, COLOR_RED,"Your a Commander Rank - 5");
  1196. }
  1197. return 1;
  1198. }
  1199.  
  1200. forward MyClass(playerid);
  1201. public MyClass(playerid)
  1202. {
  1203. if(gPlayerClass[playerid] == SOLDIER)
  1204. {
  1205. SendClientMessage(playerid, COLOR_ORANGE,"Your class is Soldier!");
  1206. }
  1207. if(gPlayerClass[playerid] == SNIPER)
  1208. {
  1209. SendClientMessage(playerid, COLOR_ORANGE,"Your class is Sniper!");
  1210. }
  1211. if(gPlayerClass[playerid] == TECHNOLOGIC)
  1212. {
  1213. SendClientMessage(playerid, COLOR_ORANGE,"Your class is Technologic!");
  1214. }
  1215. if(gPlayerClass[playerid] == FIREFIGHTER)
  1216. {
  1217. SendClientMessage(playerid, COLOR_ORANGE,"Your class is FireFighter!");
  1218. }
  1219. if(gPlayerClass[playerid] == HEALER)
  1220. {
  1221. SendClientMessage(playerid, COLOR_ORANGE,"Your class is Healer!");
  1222. }
  1223. if(gPlayerClass[playerid] == GUNNER)
  1224. {
  1225. SendClientMessage(playerid, COLOR_ORANGE,"Your class is Gunner!");
  1226. }
  1227. return 1;
  1228. }
  1229.  
  1230. forward MyTeam(playerid);
  1231. public MyTeam(playerid)
  1232. {
  1233. if(gTeam[playerid] == TEAM_GROVE)
  1234. {
  1235. SendClientMessage(playerid, COLOR_ORANGE,"You are in Team Grove!");
  1236. }
  1237. else if (gTeam[playerid] == TEAM_BALLA)
  1238. {
  1239. SendClientMessage(playerid, COLOR_ORANGE,"You are in Team Balla!");
  1240. }
  1241. return 1;
  1242. }
  1243.  
  1244. forward SetZone(playerid);
  1245. public SetZone(playerid)
  1246. {
  1247. SetPlayerScore(playerid, GetPlayerScore(playerid) + 5); //Giving score and money
  1248. GivePlayerMoney(playerid, 5000);
  1249. SendClientMessage(playerid,COLOR_BLUE,"Congratulation! You have Gained 5 Scores & 5000$ Money ");
  1250. UnderAttack[WS] = 0; //Stopping the UnderAttack
  1251. UnderAttack[RS] = 0;
  1252. UnderAttack[DS] = 0;
  1253. UnderAttack[NC] = 0;
  1254. KillTimer(timer[playerid][WS]);//Killing the timer
  1255. KillTimer(timer[playerid][RS]);
  1256. KillTimer(timer[playerid][DS]);
  1257. KillTimer(timer[playerid][NC]);
  1258. SetGangZone(playerid); //We will define it..
  1259. return 1;
  1260. }
  1261. forward SetGangZone(playerid);
  1262. public SetGangZone(playerid)
  1263. {
  1264. if(zDefine[playerid] == WS)
  1265. {
  1266. GangZoneShowForAll(Zone[WS],GetPlayerColor(playerid));
  1267. //Just a message when setting zone!
  1268. new string[126], pName5[MAX_PLAYER_NAME];
  1269. GetPlayerName(playerid,pName5,sizeof(pName5));
  1270. format(string,sizeof string,"*{0FFF00}%s has captured {00FFFF}Weapon Shop",pName5);
  1271. GangZoneStopFlashForAll(Zone[WS]);
  1272. SendClientMessageToAll(COLOR_GREEN, string);
  1273. tCheck[WS] = gTeam[playerid];
  1274. }
  1275. if(zDefine[playerid] == RS)
  1276. {
  1277. GangZoneShowForAll(Zone[RS],GetPlayerColor(playerid));
  1278. /*Following code looks a bit big but its very simple.. its just send msg. */
  1279. new string[126], pName5[MAX_PLAYER_NAME];
  1280. GetPlayerName(playerid,pName5,sizeof(pName5));
  1281. format(string,sizeof string,"*{0FFF00}%s has captured {00FFFF}Racing Stadium",pName5);
  1282. GangZoneStopFlashForAll(Zone[RS]);
  1283. SendClientMessageToAll(COLOR_GREEN, string);
  1284. tCheck[RS] = gTeam[playerid];
  1285. }
  1286. if(zDefine[playerid] == DS)
  1287. {
  1288. GangZoneShowForAll(Zone[DS],GetPlayerColor(playerid));
  1289. /*Following code looks a bit big but its very simple.. its just send msg. */
  1290. new string[126], pName5[MAX_PLAYER_NAME];
  1291. GetPlayerName(playerid,pName5,sizeof(pName5));
  1292. format(string,sizeof string,"*{0FFF00}%s has captured {00FFFF}Disco Club",pName5);
  1293. GangZoneStopFlashForAll(Zone[DS]);
  1294. SendClientMessageToAll(COLOR_GREEN, string);
  1295. tCheck[RS] = gTeam[playerid];
  1296. }
  1297. if(zDefine[playerid] == NC)
  1298. {
  1299. GangZoneShowForAll(Zone[NC],GetPlayerColor(playerid));
  1300. /*Following code looks a bit big but its very simple.. its just send msg. */
  1301. new string[126], pName5[MAX_PLAYER_NAME];
  1302. GetPlayerName(playerid,pName5,sizeof(pName5));
  1303. format(string,sizeof string,"*{0FFF00}%s has captured {00FFFF}New Castle",pName5);
  1304. GangZoneStopFlashForAll(Zone[NC]);
  1305. SendClientMessageToAll(COLOR_GREEN, string);
  1306. tCheck[NC] = gTeam[playerid];
  1307. }
  1308.  
  1309. return 1;
  1310. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement