Advertisement
Guest User

California's A/D + TDM GameMode

a guest
Aug 14th, 2012
1,520
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 61.04 KB | None | 0 0
  1. /*
  2.  
  3.  
  4. */
  5.  
  6. /*
  7. ###################################################################################
  8. # >>>: California Attack and Defense 1.2 . :<<< #
  9. # More versions will be posted... #
  10. # -Added a /heal timer. #
  11. # #
  12. # -Dm zones. #
  13. # #
  14. # - And more functions and commands. #
  15. # #
  16. # Credits: #
  17. # -[K4L] , [SOD] , [Cali] , [FAT] , [WTF] #
  18. # #
  19. #I Give thanks to [Cali]Bluntmaster13 and [Cali]TeoHaze9 and Banks For Helping Me #
  20. # Me and Blunt Stands as Owner in this GameMode. #
  21. #__________________________________________ #
  22. #WARNING: If you compile it and it has these Warnings #
  23. "Loose Identation" Its okay it still compiles. #
  24. #Then Your Succesful! #
  25. # IF YOU HAVE ANY PROBLEMS WITH THE GAMEMODE Dont post on SAMP Forums. #
  26. # #
  27. # -Email ME T9BoyRecordz@yahoo.com Add me on xfire: ChrOnicaL_ #
  28. # I sugges you Use Lux Admin or L admin for this gameMode. #
  29. #################################################################################*/
  30.  
  31.  
  32.  
  33.  
  34. // This is a comment
  35. // uncomment the line below if you want to write a filterscript
  36. //#define FILTERSCRIPT //- if you Uncomment this . You will have so much errors your compiler will Fail
  37.  
  38. /* Blunt i will show you how to understand this script.
  39. Because you dont know shit wats down there v.v */
  40. //Blunt you need LuxAdmin or somthing for this. it doesnt save score,etc
  41.  
  42.  
  43. #pragma tabsize 0
  44. #include <a_samp> // Main Include , If you remove this ur fucked.
  45. #include <zcmd> // dont remove this we need this include for the commands
  46. #include <float> //These includes come with your server kit sa-mp.com
  47. #include <core>// These includes come with your server kit sa-mp.com
  48.  
  49. #define WEAPONSHOP 7 // The Dialog of the weapon shop on spawn
  50.  
  51. #define COLOR_GREEN 0x55EA15C8 //Colors. dont remove but u can change
  52. #define COLOR_RED 0xFF1A00C8
  53.  
  54. #define COLOR_YELLOW 0xFFFF00AA
  55. #define COLOR_WHITE 0xFFFFFFAA
  56. #define PocketMoney 1 // Amount player recieves on spawn.
  57. #define INACTIVE_PLAYER_ID 255
  58. #define GIVECASH_DELAY 1000 // Time in ms between /givecash command
  59. #define NUMVALUES 4
  60.  
  61.  
  62. #define CURRENT_MESSAGES 9 /*
  63. This the the amount of messages you have. This number must be the exact number at ALL times!
  64. */
  65. #define MESSAGE_COLOR 0x4169E1FF /*
  66. This is the color you want your random messages to be
  67. */
  68. #define MESSAGE_INTERVAL 70
  69.  
  70. #define acolor 0xFF0000C8 // Attackers Color
  71. #define dcolor 0x3361CCC8 // Defenders Color
  72. #define msg 0x00AE00FF //Comamnd Color
  73. //--
  74. #define attackers 0 //DONT REMOVE VERY IMPORTANT!! This tells the script the teams
  75. #define defenders 1 // Same thing as above
  76.  
  77.  
  78.  
  79. /*===================== TextDraw New's =================================*/
  80.  
  81. new gTeam[MAX_PLAYERS]; //Dont remove. we need this for the team system
  82. new Text:side; // Textdraw on upperleft
  83. new Text:Textdraw1; //Textdraw
  84. new Text:Textdraw2;
  85. new Text:Enter; //Textdraw that says "California A/D"
  86. new RM[CURRENT_MESSAGES][128];
  87. new HealPlayTimer[MAX_PLAYERS];
  88. new HealTimer[MAX_PLAYERS];
  89. //heart Pickups
  90. new Heart1; //Heart Picups around SA
  91. new Heart2;
  92. new Heart3;
  93. new Heart4;
  94. new Heart5;
  95. new Heart6;
  96. new Heart7;
  97. new Heart8;
  98. new Heart9;
  99. new Heart10;
  100. new Heart11;
  101. new Heart12;
  102. new Heart13;
  103. new Heart14;
  104. new Heart15;
  105. new Heart16;
  106. new Heart17;
  107. new Heart18;
  108. new Heart19;
  109. new Heart20;
  110.  
  111.  
  112. //--Fowards--
  113. forward Givecashdelaytimer(playerid);
  114. forward SetupPlayerForClassSelection(playerid);
  115. forward SendPlayerFormattedText(playerid, const str[], define);
  116. forward public SendAllFormattedText(playerid, const str[], define);
  117. forward SendRandomMessage();
  118.  
  119.  
  120. new Float:Defenders[5][4] = {
  121. {1766.9980,-1891.8568,13.5611,254.6784},
  122. {1779.1295,-1884.3757,13.5606,191.3845},
  123. {1808.7755,-1904.4441,13.5749,355.8860},
  124. {1807.8085,-1938.4202,13.5469,94.2736},
  125. {1797.2606,-1939.2367,13.5469,8.1062}
  126. };
  127.  
  128. new Float:Attackers[5][3] = {
  129. {2529.6211,-1667.6692,15.1689},
  130. {2538.6860,-1684.5251,19.5291},
  131. {2512.8345,-1699.3600,13.4202},
  132. {2459.1331,-1691.3274,13.5504},
  133. {2479.0669,-1641.0436,13.4420}
  134. };
  135. //Now under here are the Random Spawn Points // These are if you want it to be a TDM GameMode and they spawn in random areas.
  136. /* new Float:RandomSpawns[41][4] = {
  137. {1808.8184,-1882.7881,13.5823,293.1128},
  138. {1836.5785,-1888.2633,13.4221,80.6942},
  139. {1831.9009,-1831.9282,13.5854,38.3938},
  140. {1810.7362,-1808.8752,13.5430,289.3527},
  141. {1832.2484,-1759.4850,13.5469,314.7330},
  142. {1808.8867,-1685.7607,13.5327,268.3826},
  143. {1835.2510,-1405.5944,13.4297,280.5913},
  144. {1815.8778,-1415.3014,13.4297,5.8421},
  145. {2093.5884,-1340.9836,23.9844,83.0370},
  146. {2059.5654,-1311.0123,23.9844,6.5830},
  147. {1975.7882,-1157.6440,20.9467,85.5438},
  148. {1878.1571,-1127.1925,23.9319,79.5904},
  149. {1654.2014,-1074.7538,23.8984,351.7112},
  150. {1736.7021,-1097.6525,24.0781,263.8322},
  151. {1243.5371,-1068.7910,29.1691,266.9654},
  152. {1260.0127,-1269.2002,13.4812,4.8849},
  153. {1243.6494,-1527.8185,13.5605,352.8280},
  154. {1114.9290,-1620.8868,20.4766,78.5372},
  155. //
  156. {2419.3469,-2429.8337,13.6230,44.8289},
  157. {2498.8752,-2419.4092,13.3750,293.4496},
  158. {2501.9932,-2380.3438,13.3750,353.2968},
  159. {2553.5671,-2395.9836,13.3750,211.0421},
  160. {2453.1887,-2013.1144,13.6533,327.1449},
  161. {2387.8489,-2016.8330,13.6533,50.6373},
  162. {2289.2324,-2019.4301,13.6533,107.6645},
  163. {2211.0322,-1967.7113,13.6533,100.7711},
  164. {1699.9191,-2119.4443,14.6428,96.0711},
  165. {1660.0823,-2107.0403,14.6428,348.9101},
  166. {1574.9092,-2074.8279,24.8057,69.4375},
  167. {1107.8680,-2022.3411,68.3803,11.4703},
  168. {2198.8467,-1009.4924,64.5018,246.4491},
  169. {2478.3289,-1040.0984,64.9654,271.5160},
  170. {2571.9521,-1037.4706,69.1956,323.8431},
  171. {2715.1011,-1206.3417,67.3125,15.6886},
  172. {2601.7012,-1724.7435,15.9241,298.6079},
  173. {2545.7861,-1866.1107,4.5452,65.6541},
  174. {1394.8319,-1867.5815,13.5158,211.1871},
  175. {1569.9241,-1717.8478,6.5176,142.7114},
  176. {1550.8392,-1716.7369,6.5176,84.4308},
  177. {1534.0493,-1640.2776,6.5176,12.6768},
  178. {1576.4467,-1634.5928,13.5551,206.6320}
  179. };*/
  180.  
  181.  
  182. //It's alot i know.
  183.  
  184. main()
  185. {
  186. print("\n----------------------------------");
  187. print(" California Los Santos A/D GameMode"); //Dont touch this. you might fuck it up
  188. print("Loaded 100% | Created By ChrOnic for Blunt"); //Dont touch this. you might fuck it up
  189. print("----------------------------------\n");
  190. }
  191.  
  192. public OnGameModeInit()
  193. {
  194. // Don't use these lines if it's a filterscript
  195. SetGameModeText("California A/D"); // This is the name of the gamemode that will be displayed on your SA:MP Client
  196. UsePlayerPedAnims( 1 ); //If you remove this you will be running like a noob
  197. AllowAdminTeleport( 1 );
  198.  
  199. //These are the teams
  200. AddPlayerClass(230,1808.8184,-1882.7881,13.5823,293.1128,24,200,27,200,34,200); // Attackers
  201.  
  202. AddPlayerClass(231,1836.5785,-1888.2633,13.4221,80.6942,24,200, 27, 200, 34,200); // Defenders
  203.  
  204.  
  205. //THESE ARE THE RANDOM CARS IN LOS SANTOS!!
  206.  
  207. #pragma tabsize 0
  208. AddStaticVehicle(421,264.6072,-1378.2855,52.9918,311.8310,30,1); // RandomVeh
  209. AddStaticVehicle(477,248.7180,-1356.6697,52.8628,303.4323,121,1); // RandomVeh
  210. AddStaticVehicle(481,256.0878,-1365.8092,52.6259,13.0796,6,6); // RandomVeh
  211. AddStaticVehicle(411,433.2665,-1241.5560,50.1149,105.4726,123,1); // RandomVeh
  212. AddStaticVehicle(405,422.8882,-1265.6318,51.4560,202.4528,40,1); // RandomVeh
  213. AddStaticVehicle(474,274.6150,-1267.9875,73.7077,127.3287,81,1); // RandomVeh
  214. AddStaticVehicle(560,1970.3135,-1456.7750,13.1736,274.3495,33,0); // randomcar
  215. AddStaticVehicle(416,2037.0115,-1431.9143,17.2117,178.4416,1,3); // randomcar
  216. AddStaticVehicle(481,2031.5826,-1407.2190,16.6960,43.1488,3,3); // randomcar
  217. AddStaticVehicle(560,1812.4166,-1370.4529,14.7856,268.3976,37,0); // 225Random
  218. AddStaticVehicle(451,1812.4681,-1366.8209,14.7858,270.3146,125,125); // 225Random
  219. AddStaticVehicle(411,1812.9199,-1363.4979,14.8083,267.6373,80,1); // 225Random
  220. AddStaticVehicle(481,1887.7192,-1368.9056,13.0790,184.6400,3,3); // 225Random
  221. AddStaticVehicle(481,1946.1586,-1367.4564,18.0943,85.7376,3,3); // 225Random
  222. AddStaticVehicle(481,1909.2948,-1414.8033,13.0872,0.4813,3,3); // 225Random
  223. AddStaticVehicle(481,1911.0076,-1414.4208,13.0828,1.1679,3,3); // 225Random
  224. AddStaticVehicle(466,2065.6868,-1739.0707,13.2889,269.7375,68,76); // 225Random
  225. AddStaticVehicle(567,2100.2546,-1783.2939,13.2648,348.9382,88,64); // 225Random
  226. AddStaticVehicle(400,2122.3899,-1782.5165,13.4806,355.5139,101,1); // 225Random
  227. AddStaticVehicle(448,2115.6975,-1790.2036,13.1408,94.8102,3,6); // 225Random
  228. AddStaticVehicle(448,2111.9597,-1790.5188,13.1369,94.8101,3,6); // 225Random
  229. AddStaticVehicle(471,2390.1270,-1717.4973,13.0853,179.1038,120,112); // 225Random
  230. AddStaticVehicle(451,2502.1853,-1953.9910,13.1268,357.2444,36,36); // 225Random
  231. AddStaticVehicle(599,2492.2969,-1953.6788,13.6139,180.4014,0,1); // 225Random
  232. AddStaticVehicle(429,2370.6926,-1927.2098,13.0626,358.7554,13,13); // 225Random
  233. AddStaticVehicle(429,2453.1096,-1992.9871,13.2282,177.9702,13,13); // 225Random
  234. AddStaticVehicle(401,2472.9326,-1994.1447,13.3267,183.0389,66,66); // 225Random
  235. AddStaticVehicle(413,2450.3528,-2024.7560,13.6336,357.0517,88,1); // 225Random
  236. AddStaticVehicle(416,2036.7933,-1439.0411,17.4656,184.8185,1,3); // 225Random
  237. AddStaticVehicle(416,2016.9316,-1409.9307,17.1414,270.1494,1,3); // 225Random
  238. AddStaticVehicle(407,1746.1768,-1457.2090,13.7677,270.3261,3,1); // 225Random
  239. AddStaticVehicle(521,1709.2639,-1491.3538,13.1061,83.9024,87,118); // 225Random
  240. AddStaticVehicle(521,1709.0372,-1494.7039,13.1020,79.7636,87,118); // 225Random
  241. AddStaticVehicle(521,1708.6506,-1498.6660,13.1074,81.5410,87,118); // 225Random
  242. AddStaticVehicle(408,1668.1761,-1888.0295,14.0941,90.8783,26,26); // 225Random
  243. AddStaticVehicle(521,1633.2709,-1897.1593,13.1061,166.5774,87,118); // 225Random
  244. AddStaticVehicle(406,1645.7076,-1903.6431,15.0846,13.7848,1,1); // 225Random
  245. AddStaticVehicle(560,2231.3730,-1753.6697,13.1728,278.4477,33,0); // 225Random
  246. AddStaticVehicle(579,2318.7014,-1719.4708,13.4729,180.3858,10,10); // 225Random
  247. AddStaticVehicle(471,2425.6284,-1927.8424,12.9296,166.5763,74,83); // 225Random
  248. AddStaticVehicle(400,1835.4059,-1274.8721,13.6949,275.8575,123,1); // randomcar
  249. AddStaticVehicle(401,1836.3602,-1176.5345,23.5017,82.6136,47,47); // randomcar
  250. AddStaticVehicle(560,2046.6768,-1335.6451,23.6050,265.7650,9,39); // random
  251. AddStaticVehicle(579,2091.0684,-1379.4265,23.8330,271.6078,42,42); // random
  252. AddStaticVehicle(579,2215.5518,-1363.1963,23.9161,269.1878,42,42); // random
  253. AddStaticVehicle(468,2215.6921,-1346.7581,23.6540,269.9586,46,46); // random
  254. AddStaticVehicle(567,2229.5059,-1352.9380,23.8535,92.5322,88,64); // random
  255. AddStaticVehicle(402,2500.3135,-1656.3329,13.2364,71.8192,13,13); // random
  256. AddStaticVehicle(411,2474.2185,-1701.5161,13.2505,352.2166,123,1); // random
  257. AddStaticVehicle(405,2503.9087,-1753.2493,13.2733,0.1173,24,1); // random
  258. AddStaticVehicle(468,2464.6143,-1772.0637,13.2261,93.3050,53,53); // random
  259. AddStaticVehicle(406,1267.6604,-1254.5192,14.8998,187.0718,11,68); // random
  260. AddStaticVehicle(416,1177.9988,-1340.8267,14.0550,266.2450,47,87); // random
  261. AddStaticVehicle(416,1177.3755,-1336.8113,14.0164,270.4577,47,87); // random
  262. AddStaticVehicle(412,1190.6277,-1311.7997,13.3121,0.0225,71,111); // random
  263. AddStaticVehicle(475,1221.5339,-1240.2534,15.6348,358.2213,77,105); // random
  264. AddStaticVehicle(489,1194.6244,-1153.9838,23.9169,84.5019,121,50); // random
  265. AddStaticVehicle(480,1143.4377,-1043.8590,31.5850,87.2436,16,112); // random
  266. AddStaticVehicle(492,1087.0428,-1068.0110,28.3608,175.0310,24,18); // random
  267. AddStaticVehicle(492,1066.1934,-1109.0537,24.1651,267.0142,24,18); // random
  268. AddStaticVehicle(477,1036.0603,-1235.8844,16.0595,0.5401,46,38); // random
  269. AddStaticVehicle(560,1970.3135,-1456.7750,13.1736,274.3495,33,0); // randomcar
  270. AddStaticVehicle(416,2037.0115,-1431.9143,17.2117,178.4416,1,3); // randomcar
  271. AddStaticVehicle(481,2031.5826,-1407.2190,16.6960,43.1488,3,3); // randomcar
  272. AddStaticVehicle(480,2192.5767,-1294.8546,23.7094,276.3352,12,12); // randomcar
  273. AddStaticVehicle(480,2295.5193,-1249.9797,23.7836,38.8108,12,12); // randomcar
  274. AddStaticVehicle(481,2310.4241,-1214.2953,23.5719,38.5057,46,46); // randomcar1
  275. AddStaticVehicle(481,2310.5620,-1211.0673,23.5884,74.3254,46,46); // randomcar1
  276. AddStaticVehicle(468,2217.3682,-1157.8646,25.3942,259.6291,46,46); // randomcar1
  277. AddStaticVehicle(468,2228.8816,-1156.3572,25.4881,81.0696,46,46); // randomcar1
  278. AddStaticVehicle(475,2195.6467,-1109.4281,24.8048,82.2319,9,39); // randomcar1
  279. AddStaticVehicle(475,2117.9858,-1103.5577,24.9992,62.5182,9,39); // randomcar1
  280. AddStaticVehicle(475,2042.7167,-1142.0585,24.0950,95.7062,9,39); // randomcar1
  281. AddStaticVehicle(517,1945.8110,-1130.9183,25.3951,82.6610,36,36); // randomcar1
  282. AddStaticVehicle(517,1934.5265,-1117.9117,26.3162,181.4786,36,36); // randomcar1
  283. AddStaticVehicle(521,1734.6891,-1352.6465,15.3373,359.8745,92,3); // randomcar1
  284. AddStaticVehicle(521,1736.1323,-1352.5347,15.3376,358.4503,92,3); // randomcar1
  285. AddStaticVehicle(521,1737.8824,-1352.9015,15.3412,355.6753,92,3); // randomcar1
  286. AddStaticVehicle(400,1704.3788,-1524.1062,13.4752,100.4439,4,1); // randomcar1
  287. AddStaticVehicle(462,1707.0503,-1501.7101,13.0615,139.3490,13,13); // randomcar1
  288. AddStaticVehicle(462,1709.0676,-1495.6334,13.1467,136.9108,13,13); // randomcar1
  289. AddStaticVehicle(492,1683.7859,-1613.4865,13.2453,181.4882,77,26); // randomcar1
  290. AddStaticVehicle(492,1722.4238,-1736.5752,13.2012,291.2990,77,26); // randomcar1
  291. AddStaticVehicle(474,1730.9852,-1748.6805,13.2871,356.4529,81,1); // randomcar1
  292. AddStaticVehicle(498,1774.9246,-1701.7892,13.5731,8.9225,13,120); // randomcar1
  293. AddStaticVehicle(498,1782.5962,-1702.5968,13.5789,359.3029,13,120); // randomcar1
  294. AddStaticVehicle(507,1802.4885,-1909.6531,13.2230,93.3326,42,42); // randomcar1
  295. AddStaticVehicle(507,1793.2288,-1931.6667,13.2131,357.1037,42,42); // randomcar1
  296. AddStaticVehicle(562,1770.0602,-1886.4817,13.2145,176.6043,35,1); // randomcar1
  297. AddStaticVehicle(562,1948.5908,-1887.9059,13.2055,93.2492,35,1); // randomcar1
  298. AddStaticVehicle(506,1972.8342,-1889.7692,13.2514,87.7500,6,6); // randomcar1
  299. AddStaticVehicle(434,2030.1285,-1912.9413,13.5059,347.1069,12,12); // randomcar1
  300. AddStaticVehicle(434,2086.6216,-1851.5275,13.4298,178.8836,12,12); // randomcar1
  301. AddStaticVehicle(494,2105.8989,-1824.7418,13.4506,283.3487,36,13); // randomcar1
  302. AddStaticVehicle(567,2101.1833,-1781.9144,13.2634,356.0846,99,81); // randomcar1
  303. AddStaticVehicle(448,2111.3220,-1787.9279,13.1581,259.4117,3,6); // randomcar1
  304. AddStaticVehicle(448,2122.8137,-1790.0756,13.1505,259.4118,3,6); // randomcar1
  305. AddStaticVehicle(471,2173.0408,-1668.0398,14.5674,219.5833,120,114); // randomcar1
  306. AddStaticVehicle(471,2169.4963,-1670.8383,14.5660,235.9074,120,114); // randomcar1
  307. AddStaticVehicle(471,2218.3264,-1644.4830,14.8810,145.9254,120,114); // randomcar1
  308. AddStaticVehicle(447,2616.7756,-1721.2317,23.2850,346.8567,75,2); // randomcar1
  309. AddStaticVehicle(567,2516.6248,-1672.2633,13.8170,243.3591,97,96); // randomcar1
  310. AddStaticVehicle(481,2530.9290,-1665.0559,14.6843,89.4652,26,1); // randomcar1
  311. AddStaticVehicle(466,2488.8308,-1683.8654,13.2028,274.5519,2,76); // randomcar1
  312. AddStaticVehicle(451,2507.4512,-1696.1692,13.2605,0.4078,16,16); // randomcar1
  313. AddStaticVehicle(431,1801.5470,-1859.9056,13.5924,270.1553,75,59); // randomcar1
  314. AddStaticVehicle(431,1730.9409,-1859.5150,13.5919,268.4056,75,59); // randomcar1
  315. AddStaticVehicle(481,1736.1141,-1797.4325,13.0303,173.1860,3,3); // randomcar1
  316. AddStaticVehicle(596,1730.0732,-1821.1807,13.2263,294.0952,0,1); // randomcar1
  317. AddStaticVehicle(596,1535.8956,-1677.2822,13.1012,357.9339,0,1); // randomcar1
  318. AddStaticVehicle(596,1535.9307,-1665.5228,13.1043,359.7242,0,1); // randomcar1
  319. AddStaticVehicle(490,1565.9264,-1709.4758,6.0168,1.5342,0,0); // randomcar1
  320. AddStaticVehicle(490,1562.7375,-1712.0101,6.0178,5.8535,0,0); // randomcar1
  321. AddStaticVehicle(490,1530.9646,-1688.5284,6.0214,85.1528,0,0); // randomcar1
  322. AddStaticVehicle(523,1544.1219,-1680.9518,5.4619,93.9404,0,0); // randomcar1
  323. AddStaticVehicle(523,1527.3182,-1637.3138,5.7852,4.9313,0,0); // randomcar1
  324. AddStaticVehicle(523,1530.5022,-1637.1833,5.7842,353.7144,0,0); // randomcar1
  325. AddStaticVehicle(523,1533.9999,-1637.6293,5.7888,355.2842,0,0); // randomcar1
  326. AddStaticVehicle(412,1596.4240,-1484.1556,13.4183,186.7886,10,8); // VoodooRANDOM
  327. AddStaticVehicle(567,1346.4165,-1460.5565,13.3499,237.6438,93,64); // VoodooRANDOM
  328. AddStaticVehicle(521,1321.7725,-1462.5181,13.1135,188.4888,74,74); // VoodooRANDOM
  329. AddStaticVehicle(400,1286.3042,-1475.1884,10.1391,271.0824,40,1); // VoodooRANDOM
  330. AddStaticVehicle(560,1216.2311,-1543.1189,13.2524,203.8903,37,0); // VoodooRANDOM
  331. AddStaticVehicle(560,1212.5684,-1561.9292,13.2518,120.9573,37,0); // VoodooRANDOM
  332. AddStaticVehicle(481,1162.9063,-1635.6737,13.5175,180.0132,1,1); // VoodooRANDOM
  333. AddStaticVehicle(481,1165.8063,-1635.3782,13.4934,190.2844,1,1); // VoodooRANDOM
  334. AddStaticVehicle(579,1099.0751,-1754.7942,13.2885,271.6516,53,53); // VoodooRANDOM
  335. AddStaticVehicle(416,1062.2000,-1740.7598,13.6285,92.5706,1,3); // VoodooRANDOM
  336. AddStaticVehicle(492,1088.7184,-1800.6427,13.3864,356.4325,71,107); // VoodooRANDOM
  337. AddStaticVehicle(492,935.5148,-1739.6309,13.3287,288.8378,71,107); // VoodooRANDOM
  338. AddStaticVehicle(461,933.7229,-1627.7219,13.1301,72.9316,37,1); // VoodooRANDOM
  339. AddStaticVehicle(461,911.5280,-1624.3489,13.1155,313.4930,37,1); // VoodooRANDOM
  340. AddStaticVehicle(411,751.8388,-1579.6703,13.6532,76.2970,106,1); // VoodooRANDOM
  341. AddStaticVehicle(411,677.2415,-1600.3490,12.9617,180.6135,106,1); // VoodooRANDOM
  342. AddStaticVehicle(461,600.8544,-1505.7145,14.6112,103.0600,53,1); // VoodooRANDOM
  343. AddStaticVehicle(461,598.4308,-1515.4065,14.6565,267.6634,53,1); // VoodooRANDOM
  344. AddStaticVehicle(408,608.8957,-1509.5103,15.4786,25.5207,26,26); // VoodooRANDOM
  345. AddStaticVehicle(408,494.7170,-1570.8064,18.3705,151.5372,26,26); // VoodooRANDOM
  346. AddStaticVehicle(579,479.7920,-1510.1719,20.4000,351.1806,6,6); // VoodooRANDOM
  347. AddStaticVehicle(411,480.2924,-1487.8425,19.7837,0.6922,6,6); // VoodooRANDOM
  348. AddStaticVehicle(480,489.5254,-1494.4470,20.0239,173.7755,6,6); // VoodooRANDOM
  349. AddStaticVehicle(480,257.5963,-1546.8915,32.5911,329.1994,6,6); // VoodooRANDOM
  350. AddStaticVehicle(560,342.5453,-1443.1919,34.1403,274.2883,41,29); // VoodooRANDOM
  351. AddStaticVehicle(560,615.8173,-1300.8176,14.6743,158.2610,41,29); // VoodooRANDOM
  352. AddStaticVehicle(521,695.1287,-1180.8324,15.0285,246.7587,75,13); // VoodooRANDOM
  353. AddStaticVehicle(521,802.0692,-1006.0460,29.1358,62.7831,75,13); // VoodooRANDOM
  354. AddStaticVehicle(521,711.8851,-819.7153,40.5458,274.5590,75,13); // VoodooRANDOM
  355. AddStaticVehicle(521,795.3513,-841.3265,60.1985,21.0989,75,13); // VoodooRANDOM
  356. AddStaticVehicle(567,1242.9006,-804.7308,84.0046,181.1416,0,0); // VoodooRANDOM
  357. AddStaticVehicle(411,1248.2283,-804.4443,83.8677,177.5631,0,0); // VoodooRANDOM
  358. AddStaticVehicle(451,1254.0018,-804.6456,83.8472,179.2645,0,0); // VoodooRANDOM
  359. AddStaticVehicle(487,2533.0151,-1677.8239,20.1067,87.1021,3,3); // AttackersHelicopter
  360. AddStaticVehicle(411,1776.7756,-1933.8250,13.1127,268.0663,169,169); // DefendersCar
  361. AddStaticVehicle(560,1776.9460,-1926.2177,13.0923,270.2867,169,169); // DefendersCar
  362. AddStaticVehicle(451,1777.1689,-1921.7804,13.0931,273.6814,16,16); // DefendersCar
  363. AddStaticVehicle(562,1776.5083,-1917.4114,13.0463,275.8819,169,81); // DefendersCar
  364. AddStaticVehicle(506,1804.4371,-1917.3187,13.0984,90.5702,169,169); // DefendersCar
  365. AddStaticVehicle(579,1804.7604,-1921.4863,13.2815,88.0001,169,169); // DefendersCar
  366. AddStaticVehicle(412,1804.6195,-1925.0085,13.2264,85.1013,169,169); // DefendersCar
  367. AddStaticVehicle(402,1765.4457,-1904.7266,13.3990,270.1042,169,169); // DefendersCar
  368. AddStaticVehicle(411,1786.8135,-1884.9928,13.2041,270.7458,169,169); // DefendersCar
  369. AddStaticVehicle(521,1751.5342,-1898.5939,13.1243,0.6872,169,169); // DefendersCar
  370. AddStaticVehicle(461,1751.5277,-1907.3651,13.1388,0.0782,169,169); // DefendersCar
  371. AddStaticVehicle(521,2509.3474,-1652.4792,13.2907,149.1340,3,3); // AttackersFCR1
  372. AddStaticVehicle(521,2511.6184,-1654.1947,13.3565,136.6088,3,3); // AttackersFCR2
  373. AddStaticVehicle(521,2514.1272,-1680.8390,13.0023,45.4121,3,3); // AttackersFCR3
  374. AddStaticVehicle(498,2558.0652,-1715.3855,1.7092,178.9127,3,3); // AttackersBoxville
  375. AddStaticVehicle(560,2483.9873,-1653.1343,13.1392,225.4599,3,3); // AttackersSultan
  376. AddStaticVehicle(498,1714.7660,-1965.1818,14.1845,86.3373,169,169); // DefendersBoxville
  377. AddStaticVehicle(412,1713.8467,-1978.3010,13.9550,270.9541,169,169); // DefendersVoodoo
  378. AddStaticVehicle(520,1547.1715,-1355.0485,330.1935,267.6404,90,55); // Hydra
  379. AddStaticVehicle(560,2403.5764,-1644.6361,13.2523,179.8964,3,3); // UpdateAttackers
  380. AddStaticVehicle(519,1557.2832,-2453.1499,14.4763,185.0358,41,74); // Random
  381. AddStaticVehicle(519,1643.3871,-2459.7290,14.4738,182.4754,41,74); // Random
  382. AddStaticVehicle(485,1926.6898,-2266.5393,13.2020,96.8304,125,73); // Random
  383. AddStaticVehicle(485,1931.3506,-2281.1675,13.2060,120.2008,125,73); // Random
  384. AddStaticVehicle(485,1929.8711,-2310.0940,13.2058,125.7862,125,73); // Random
  385. AddStaticVehicle(487,1706.2952,-2463.8284,13.8082,171.5582,3,3); // Random
  386. AddStaticVehicle(487,1737.5739,-2457.5571,13.7944,190.2065,169,169); // Random
  387. AddStaticVehicle(487,1785.4495,-2456.8838,13.8497,196.1091,3,3); // Random
  388. AddStaticVehicle(487,1833.4270,-2467.0852,13.8813,186.4737,169,169); // Random
  389. //If you have some vehicles, objects paste them under here.
  390.  
  391.  
  392.  
  393.  
  394.  
  395. AddRandomMessage("Your random ASS MESSAGE");
  396. AddRandomMessage("Your random ASS MESSAGE");
  397. AddRandomMessage("Your random ASS MESSAGE");
  398. AddRandomMessage("Your random ASS MESSAGE");
  399. AddRandomMessage("Your random ASS MESSAGE");
  400. AddRandomMessage("Your random ASS MESSAGE");
  401. AddRandomMessage("Your random ASS MESSAGE");
  402. AddRandomMessage("Your random ASS MESSAGE");
  403. AddRandomMessage("Your random ASS MESSAGE");
  404. SetTimer("SendRandomMessage", MESSAGE_INTERVAL * 1000, 1);
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413. // The Heart Pickups
  414. Heart1 = CreatePickup(1240, 19 ,1976.7396, -1546.6586, 13.3490,-1);
  415.  
  416. Heart2 = CreatePickup(1240, 19 , 2112.9375,-1498.9619,10.4294,-1);
  417.  
  418. Heart3 = CreatePickup(1240, 19 ,2120.8677 ,-1591.1355 ,13.1144 ,-1);
  419.  
  420.  
  421. Heart4 = CreatePickup(1240, 19 ,2626.7759, -1489.0272 ,16.4295,-1);
  422.  
  423. Heart5 = CreatePickup(1240, 19 ,431.3342, -1747.8964 ,9.1956,-1);
  424.  
  425. Heart6 = CreatePickup(1240, 19 ,2181.7749, -1261.9252, 24.2770,-1);
  426.  
  427. Heart7 = CreatePickup(1240, 19 ,1636.7003, -1463.5439, 13.5469,-1);
  428.  
  429. Heart8 = CreatePickup(1240, 19 ,2154.9019, -1920.7823 ,12.6241,-1);
  430.  
  431. Heart9 = CreatePickup(1240, 19 ,2253.2888, -1698.9725 ,13.7534,-1);
  432.  
  433. Heart10 = CreatePickup(1240,19 ,2539.8081,-1922.3840,13.5469,1);
  434.  
  435. Heart11 = CreatePickup(1240,19 ,2300.0754,-1691.1921,13.5469,1);
  436.  
  437. Heart12 = CreatePickup(1240,19 ,1982.5979,-1701.8917,15.9688,1);
  438.  
  439. Heart13 = CreatePickup(1240,19 ,1700.6897,-1800.9387,13.5716,1);
  440.  
  441. Heart14 = CreatePickup(1240, 19 ,1378.0306,-1817.3898,13.5469,1);
  442.  
  443. Heart15 = CreatePickup(1240, 19,1529.6206,-1702.2958,6.2252,1);
  444.  
  445. Heart16 = CreatePickup(1240, 19,1643.9694,-1692.8895,20.4633,1);
  446.  
  447. Heart17 = CreatePickup(1240, 19, 2055.5908,-2300.9314,13.5469,1);
  448.  
  449. Heart18 = CreatePickup(1240, 19, 1898.2147,-2691.7661,13.5532,1);
  450.  
  451. Heart19 = CreatePickup(1240, 19, 1911.1473,-1777.7311,13.3828,1);
  452.  
  453. Heart20 = CreatePickup(1240, 19, 2351.0508,-1634.3433,16.2954,1);
  454. //End of heart Pickups
  455.  
  456.  
  457.  
  458. //--3D Text Labels--//
  459.  
  460. Create3DTextLabel("Attackers Home", 0xFF0000C8, 2514.2524, -1665.3617, 13.5748, 70.0, 0, 1);
  461.  
  462. Create3DTextLabel("Defenders Home", dcolor, 1779.5554, -1900.8676, 13.3890,50.0,0,1);
  463.  
  464.  
  465. //Text Drawsssssssssssssssssssssssss
  466.  
  467.  
  468.  
  469. // In OnGameModeInit
  470. Textdraw1 = TextDrawCreate(106.5 ,173 , "Attackers"); // Attackers textdraw
  471. TextDrawFont(Textdraw1 , 3);
  472. TextDrawLetterSize(Textdraw1 , 0.5, 3.5);
  473. TextDrawColor(Textdraw1 , 0xff0000FF);
  474. TextDrawSetOutline(Textdraw1 , false);
  475. TextDrawSetProportional(Textdraw1 , true);
  476. TextDrawSetShadow(Textdraw1 , 1);
  477.  
  478.  
  479.  
  480.  
  481. Textdraw2 = TextDrawCreate(106.5 ,173 , "Defenders"); // Attackers textdraw
  482. TextDrawFont(Textdraw2 , 3);
  483. TextDrawLetterSize(Textdraw2 , 0.5, 3.5);
  484. TextDrawColor(Textdraw2 , 0x2247DDC8);
  485. TextDrawSetOutline(Textdraw2 , false);
  486. TextDrawSetProportional(Textdraw2 , true);
  487. TextDrawSetShadow(Textdraw2 , 1);
  488.  
  489.  
  490. Enter = TextDrawCreate(490.5 ,-1 , "California A/D");
  491. TextDrawFont(Enter , 3);
  492. TextDrawLetterSize(Enter , 0.5, 3.5);
  493. TextDrawColor(Enter , 0x000000FF);
  494. TextDrawSetOutline(Enter , false);
  495. TextDrawSetProportional(Enter , true);
  496. TextDrawSetShadow(Enter , 1);
  497.  
  498.  
  499. side = TextDrawCreate(499.5 ,113 , "Los Santos TDM");
  500. TextDrawFont(side , 3);
  501. TextDrawLetterSize(side , 0.4, 2.8000000000000003);
  502. TextDrawColor(side , 0xff0000FF);
  503. TextDrawSetOutline(side , false);
  504. TextDrawSetProportional(side , true);
  505. TextDrawSetShadow(side , 1);
  506.  
  507.  
  508.  
  509. return 1;
  510. }
  511.  
  512. public OnGameModeExit() //Dont fuck with this, i mean it
  513. {
  514. return 1;
  515. }
  516.  
  517. public OnPlayerRequestClass(playerid, classid)
  518. {
  519. //This is when they connect they come to rwquest class
  520. switch(classid)
  521. {
  522. case 0:
  523. {
  524. gTeam[playerid] = attackers;
  525. TextDrawShowForPlayer(playerid,Textdraw1);
  526. SetPlayerPos(playerid, 2498.8560,-1670.1626,13.3452);
  527. SetPlayerCameraPos(playerid, 2490.7717,-1670.5093,13.3359);
  528. SetPlayerCameraLookAt(playerid, 2494.5115,-1670.5302,13.3359);
  529. SetPlayerFacingAngle(playerid,86.8002);
  530. TextDrawHideForPlayer(playerid,Textdraw2);
  531.  
  532.  
  533. }
  534.  
  535. case 1:
  536. {
  537.  
  538. gTeam[playerid] = defenders;
  539. TextDrawHideForPlayer(playerid,Textdraw1);
  540. SetPlayerPos(playerid, 2113.9109,-1781.5278,13.3887);
  541. SetPlayerFacingAngle(playerid,8298);
  542. SetPlayerCameraPos(playerid,2113.6770,-1769.2032,13.3947);
  543. SetPlayerCameraLookAt(playerid,2113.7173,-1773.7124,13.3925);
  544. TextDrawShowForPlayer(playerid,Textdraw2);
  545.  
  546. }
  547.  
  548. }
  549.  
  550. {
  551. }
  552.  
  553.  
  554. /*TextDrawShowForPlayer(playerid,side);
  555. TextDrawShowForPlayer(playerid,connect);
  556. SetPlayerPos(playerid, 2498.8560,-1670.1626,13.3452);
  557. SetPlayerCameraPos(playerid, 2490.7717,-1670.5093,13.3359);
  558. SetPlayerCameraLookAt(playerid, 2494.5115,-1670.5302,13.3359);
  559. SetPlayerFacingAngle(playerid,86.8002);*/
  560. return 1;
  561. }
  562. //This is where you change the team colors
  563. SetPlayerToTeamColour(playerid)
  564. {
  565. if(gTeam[playerid] == attackers)
  566. {
  567. SetPlayerColor(playerid,acolor); //Attackers color
  568. }
  569. else if(gTeam[playerid] == defenders)
  570. {
  571. SetPlayerColor(playerid,dcolor); //Defenders Color
  572. }
  573.  
  574. }
  575. #pragma tabsize 0
  576. public OnPlayerConnect(playerid)
  577. {
  578.  
  579. //Connect messages
  580. TextDrawShowForPlayer(playerid,Enter);
  581. SetPlayerTime(playerid,12,0); //noon
  582. SetPlayerTime(playerid,12);
  583. SendClientMessage(playerid,msg,"Welcome to the Californian A/D Server");
  584. SendClientMessage(playerid,msg,"Type /help for more info");
  585. //SetPlayerColor(playerid,0xFE0101FF);
  586. new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
  587. GetPlayerName(playerid, name, sizeof(name));
  588. format(string, sizeof(string), "{E3D3D9}%s has joined the [Cali] A/D server.", name);
  589. SendClientMessageToAll(0xC4C4C4FF, string);
  590. TextDrawShowForPlayer(playerid,Textdraw1);
  591. return 1;
  592. }
  593.  
  594.  
  595. public OnPlayerDisconnect(playerid, reason)
  596. {
  597. new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
  598. GetPlayerName(playerid, name, sizeof(name));
  599.  
  600. format(string, sizeof(string), "{E3D3D9}%s has left the server.", name);
  601. SendClientMessageToAll(0xC4C4C4FF, string);
  602. return 1;
  603. }
  604.  
  605. public OnPlayerSpawn(playerid)
  606. {
  607. if(gTeam[playerid] == defenders) // Replace gTeam with the variable that holds the player's team.
  608. {
  609. new x = random(sizeof Defenders); // Create a variable with a random number.
  610. SetPlayerPos(playerid, Defenders[x][0], Defenders[x][1], Defenders[x][2]); // Set the player's position to the co-ords corresponding with the random number.
  611. }
  612.  
  613. if(gTeam[playerid] == attackers) // Replace gTeam with the variable that holds the player's team.
  614. {
  615. new x = random(sizeof Attackers); // Create a variable with a random number.
  616. SetPlayerPos(playerid, Attackers[x][0], Attackers[x][1], Attackers[x][2]);
  617. }
  618. /*new Random = random(sizeof(RandomSpawns));
  619. SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpa
  620. //This is the dialog when they spawn v.vwns[Random][1], RandomSpawns[Random][2]);
  621. SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);*/ //Uncomment this for Basic TDM
  622. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{249E43}Pistols\n{249E43}Sub-Machine Gun\n{249E43}Shotguns\n{249E43}Armours\n{249E43}SMG\n{249E43}Assault", "Select", "Cancel");
  623. SetPlayerToTeamColour(playerid); // calls the custom function
  624. TextDrawHideForPlayer(playerid,Textdraw1);
  625. GivePlayerWeapon(playerid,31,2500);
  626. TextDrawHideForPlayer(playerid,Textdraw2);
  627. return 1;
  628. }
  629.  
  630. public OnPlayerDeath(playerid, killerid, reason)
  631. {
  632. SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
  633. SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
  634. GameTextForPlayer(playerid, "~w~Wasted", 3000, 0);
  635. GivePlayerMoney(killerid,2000); //Dont remove. this rewards the player when they kill someone
  636. SendClientMessage(killerid,0x00AE00FF,"Excellent Kill +2000$ and +1 Score");
  637.  
  638. return 1;
  639. }
  640.  
  641. public OnVehicleSpawn(vehicleid)
  642. {
  643. return 1;
  644. }
  645.  
  646. public OnVehicleDeath(vehicleid, killerid)
  647. {
  648. return 1;
  649. }
  650.  
  651. public OnPlayerText(playerid, text[])
  652. {
  653. ///__________________________ My Anti - Ask for Admin. all owners hate when players ask for admin right?
  654. if(text[strfind(text,"i want admin", true)]) {
  655. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  656. return 0; //Don't send to chat
  657. }
  658. if(text[strfind(text,"i want my admin", true)]) {
  659. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  660. return 0; //Don't send to chat
  661. }
  662. if(text[strfind(text,"can i be admin", true)]) {
  663. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  664. return 0; //Don't send to chat
  665. }
  666. if(text[strfind(text,"give me my admin", true)]) {
  667. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  668. return 0; //Don't send to chat
  669. }
  670. if(text[strfind(text,"i want to admin", true)]) {
  671. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  672. return 0; //Don't send to chat
  673. }
  674. if(text[strfind(text,"i want to be admin", true)]) {
  675. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  676. return 0; //Don't send to chat
  677. }
  678. if(text[strfind(text,"give me admin", true)]) {
  679. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  680. return 0; //Don't send to chat
  681. }
  682. if(text[strfind(text,"give me minigun admin", true)]) {
  683. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  684. return 0; //Don't send to chat
  685. }
  686. if(text[strfind(text,"Fuck this server", true)]) {
  687. SendClientMessage(playerid, 0xFFFFFFC8, "Fuck you to why dont you leave");
  688. return 0; //Don't send to chat
  689. }
  690. if(text[strfind(text,"i need admin", true)]) {
  691. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  692. return 0; //Don't send to chat
  693. }
  694. if(text[strfind(text,"i want admin now", true)]) {
  695. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  696. return 0; //Don't send to chat
  697. }
  698. if(text[strfind(text,"admin make me admin", true)]) {
  699. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  700. return 0; //Don't send to chat
  701. }
  702. if(text[strfind(text,"give me admin", true)]) {
  703. SendClientMessage(playerid, 0xFFFFFFC8, "If you want to become an admin, apply on forums");
  704. return 0; //Don't send to chat
  705. }
  706. if(text[0] == '!')
  707. {
  708. new string[128];
  709. GetPlayerName(playerid, string, sizeof(string));
  710. format(string, sizeof(string), "[TeamChat] %s (%d): %s", string, playerid, text[1]);
  711. for(new i = 0; i < MAX_PLAYERS; i++)
  712. {
  713. if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string);
  714. }
  715. return 0;
  716. }
  717. return 1;
  718. }
  719.  
  720. public OnPlayerCommandText(playerid, cmdtext[])
  721. {
  722. new string[256];
  723. new playermoney;
  724. new sendername[MAX_PLAYER_NAME];
  725. new giveplayer[MAX_PLAYER_NAME];
  726. new cmd[256];
  727. new giveplayerid, moneys, idx;
  728.  
  729. cmd = strtok(cmdtext, idx);
  730.  
  731. if(strcmp(cmd, "/gc", true) == 0) {
  732. new tmp[256];
  733. tmp = strtok(cmdtext, idx);
  734.  
  735. if(!strlen(tmp)) {
  736. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gc [playerid] [amount]");
  737. return 1;
  738. }
  739. giveplayerid = strval(tmp);
  740.  
  741. tmp = strtok(cmdtext, idx);
  742. if(!strlen(tmp)) {
  743. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gc [playerid] [amount]");
  744. return 1;
  745. }
  746. moneys = strval(tmp);
  747.  
  748. //printf("givecash_command: %d %d",giveplayerid,moneys);
  749.  
  750.  
  751. if (IsPlayerConnected(giveplayerid)) {
  752. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  753. GetPlayerName(playerid, sendername, sizeof(sendername));
  754. playermoney = GetPlayerMoney(playerid);
  755. if (moneys > 0 && playermoney >= moneys) {
  756. GivePlayerMoney(playerid, (0 - moneys));
  757. GivePlayerMoney(giveplayerid, moneys);
  758. format(string, sizeof(string), "You have sent %s $%d.", giveplayer, moneys);
  759. SendClientMessage(playerid,0x6CE11EC8 , string);
  760. format(string, sizeof(string), "You have recieved $%d from %s(player: %d).", moneys, sendername, playerid);
  761. SendClientMessage(giveplayerid, msg, string);
  762. printf("%s(playerid:%d) has transfered %d to %s(playerid:%d)",sendername, playerid, moneys, giveplayer, giveplayerid);
  763. }
  764. else {
  765. SendClientMessage(playerid, COLOR_RED, "Not Enough Cash!.");
  766. }
  767. }
  768. else {
  769. format(string, sizeof(string), "%d is not an active player.", giveplayerid);
  770. SendClientMessage(playerid, COLOR_RED, string);
  771. }
  772. return 1;
  773. }
  774.  
  775.  
  776. return 0;
  777. }
  778. strtok(const string[], &index)
  779. {
  780. new length = strlen(string);
  781. while ((index < length) && (string[index] <= ' '))
  782. {
  783. index++;
  784. }
  785.  
  786. new offset = index;
  787. new result[20];
  788. while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  789. {
  790. result[index - offset] = string[index];
  791. index++;
  792. }
  793. result[index - offset] = EOS;
  794. return result;
  795. }
  796. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  797. {
  798. return 1;
  799. }
  800.  
  801. public OnPlayerExitVehicle(playerid, vehicleid)
  802. {
  803. return 1;
  804. }
  805.  
  806. public OnPlayerStateChange(playerid, newstate, oldstate)
  807. {
  808. return 1;
  809. }
  810.  
  811. public OnPlayerEnterCheckpoint(playerid)
  812. {
  813. return 1;
  814. }
  815.  
  816. public OnPlayerLeaveCheckpoint(playerid)
  817. {
  818. return 1;
  819. }
  820.  
  821. public OnPlayerEnterRaceCheckpoint(playerid)
  822. {
  823. return 1;
  824. }
  825.  
  826. public OnPlayerLeaveRaceCheckpoint(playerid)
  827. {
  828. return 1;
  829. }
  830.  
  831. public OnRconCommand(cmd[])
  832. {
  833. return 1;
  834. }
  835.  
  836. public OnPlayerRequestSpawn(playerid)
  837. {
  838. return 1;
  839. }
  840.  
  841. public OnObjectMoved(objectid)
  842. {
  843. return 1;
  844. }
  845.  
  846. public OnPlayerObjectMoved(playerid, objectid)
  847. {
  848. return 1;
  849. }
  850.  
  851. public OnPlayerPickUpPickup(playerid, pickupid)
  852. {
  853. if(pickupid == Heart1)
  854. {
  855. SetPlayerHealth(playerid,100);
  856. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  857. return 1;
  858. }
  859. if(pickupid == Heart2)
  860. {
  861. SetPlayerHealth(playerid,100);
  862. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  863. return 1;
  864. }
  865. if(pickupid == Heart3)
  866. {
  867. SetPlayerHealth(playerid,100);
  868. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  869. return 1;
  870. }
  871. if(pickupid == Heart4)
  872. {
  873. SetPlayerHealth(playerid,100);
  874. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  875. return 1;
  876. }
  877. if(pickupid == Heart5)
  878. {
  879. SetPlayerHealth(playerid,100);
  880. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  881. return 1;
  882. }
  883. if(pickupid == Heart6)
  884. {
  885. SetPlayerHealth(playerid,100);
  886. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  887. return 1;
  888. }
  889. if(pickupid == Heart7)
  890. {
  891. SetPlayerHealth(playerid,100);
  892. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  893. return 1;
  894. }
  895. if(pickupid == Heart8)
  896. {
  897. SetPlayerHealth(playerid,100);
  898. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  899. return 1;
  900. }
  901. if(pickupid == Heart9)
  902. {
  903. SetPlayerHealth(playerid,100);
  904. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  905. return 1;
  906. }
  907. if(pickupid == Heart10)
  908. {
  909. SetPlayerHealth(playerid,100);
  910. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  911. return 1;
  912. }
  913. if(pickupid == Heart11)
  914. {
  915. SetPlayerHealth(playerid,100);
  916. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  917. return 1;
  918. }
  919. if(pickupid == Heart12)
  920. {
  921. SetPlayerHealth(playerid,100);
  922. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  923. return 1;
  924. }
  925. if(pickupid == Heart13)
  926. {
  927. SetPlayerHealth(playerid,100);
  928. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  929. return 1;
  930. }
  931. if(pickupid == Heart14)
  932. {
  933. SetPlayerHealth(playerid,100);
  934. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  935. return 1;
  936. }
  937. if(pickupid == Heart15)
  938. {
  939. SetPlayerHealth(playerid,100);
  940. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  941. return 1;
  942. }
  943. if(pickupid == Heart16)
  944. {
  945. SetPlayerHealth(playerid,100);
  946. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  947. return 1;
  948. }
  949. if(pickupid == Heart17)
  950. {
  951. SetPlayerHealth(playerid,100);
  952. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  953. return 1;
  954. }
  955. if(pickupid == Heart18)
  956. {
  957. SetPlayerHealth(playerid,100);
  958. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  959. return 1;
  960. }
  961. if(pickupid == Heart19)
  962. {
  963. SetPlayerHealth(playerid,100);
  964. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  965. return 1;
  966. }
  967. if(pickupid == Heart20)
  968. {
  969. SetPlayerHealth(playerid,100);
  970. SendClientMessage(playerid,msg,"You found a Health Pack! Health Refilled!");
  971. return 1;
  972. }
  973. return 1;
  974. }
  975.  
  976. public OnVehicleMod(playerid, vehicleid, componentid)
  977. {
  978. return 1;
  979. }
  980.  
  981. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  982. {
  983. return 1;
  984. }
  985.  
  986. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  987. {
  988. return 1;
  989. }
  990.  
  991. public OnPlayerSelectedMenuRow(playerid, row)
  992. {
  993. return 1;
  994. }
  995.  
  996. public OnPlayerExitedMenu(playerid)
  997. {
  998. return 1;
  999. }
  1000.  
  1001. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  1002. {
  1003. return 1;
  1004. }
  1005.  
  1006. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1007. {
  1008. return 1;
  1009. }
  1010.  
  1011. public OnRconLoginAttempt(ip[], password[], success)
  1012. {
  1013. return 1;
  1014. }
  1015.  
  1016. public OnPlayerUpdate(playerid)
  1017. {
  1018. return 1;
  1019. }
  1020.  
  1021. public OnPlayerStreamIn(playerid, forplayerid)
  1022. {
  1023. return 1;
  1024. }
  1025.  
  1026. public OnPlayerStreamOut(playerid, forplayerid)
  1027. {
  1028. return 1;
  1029. }
  1030.  
  1031. public OnVehicleStreamIn(vehicleid, forplayerid)
  1032. {
  1033. return 1;
  1034. }
  1035.  
  1036. public OnVehicleStreamOut(vehicleid, forplayerid)
  1037. {
  1038. return 1;
  1039. }
  1040. #pragma tabsize 0
  1041. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1042. {
  1043. if(dialogid == WEAPONSHOP)
  1044. {
  1045. if(response)
  1046. {
  1047. if(listitem == 0)
  1048. {
  1049. ShowPlayerDialog(playerid, WEAPONSHOP+1, DIALOG_STYLE_LIST, "Pistols", "9mm\t\t\t$2000\nSilenced 9mm\t\t$6000\nDesert Eagle\t\t$1200", "Select", "Cancel");
  1050. }
  1051. if(listitem == 1)
  1052. {
  1053. ShowPlayerDialog(playerid, WEAPONSHOP+2, DIALOG_STYLE_LIST, "Sub-Machine Gun", "Tec9\t\t\t$3000\nMicro SMG\t\t$5000", "Select", "Cancel");
  1054. }
  1055. if(listitem == 2)
  1056. {
  1057. ShowPlayerDialog(playerid, WEAPONSHOP+3, DIALOG_STYLE_LIST, "Shotguns", "Shotgun\t\t\t$6000\nSawnoff Shotgun\t\t$8000\nCombat Shotgun\t\t$1000", "Select", "Cancel");
  1058. }
  1059. if(listitem == 3)
  1060. {
  1061. ShowPlayerDialog(playerid, WEAPONSHOP+4, DIALOG_STYLE_LIST, "Armours", "Armour\t\t\t$2000", "Select", "Cancel");
  1062. }
  1063. if(listitem == 4)
  1064. {
  1065. ShowPlayerDialog(playerid, WEAPONSHOP+5, DIALOG_STYLE_LIST, "SMG", "MP5\t\t\t$2000", "Select", "Cancel");
  1066. }
  1067. if(listitem == 5)
  1068. {
  1069. ShowPlayerDialog(playerid, WEAPONSHOP+6, DIALOG_STYLE_LIST, "Assault", "AK47\t\t$3500\nM4\t\t$4500", "Select", "Cancel");
  1070. }
  1071. }
  1072. return 1;
  1073. }
  1074. if(dialogid == WEAPONSHOP+1)
  1075. {
  1076. if(response)
  1077. {
  1078. if(listitem == 0)
  1079. {
  1080. if(GetPlayerMoney(playerid) <200)
  1081. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1082. GivePlayerMoney(playerid, -2000);
  1083. GivePlayerWeapon(playerid,22,30);
  1084. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a 9mm! ($2000)");
  1085. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{249E43}Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  1086. }
  1087. if(listitem == 1)
  1088. {
  1089. if(GetPlayerMoney(playerid) <600)
  1090. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1091. GivePlayerMoney(playerid, -6000);
  1092. GivePlayerWeapon(playerid,23,30);
  1093. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Silenced 9mm! ($600)");
  1094. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{249E43}Pistols\nSub-Machine Gun\nShotguns\nArmours\nSMG\nAssault", "Select", "Cancel");
  1095. }
  1096. if(listitem == 2)
  1097. {
  1098. if(GetPlayerMoney(playerid) <1200)
  1099. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1100. GivePlayerMoney(playerid, -1200);
  1101. GivePlayerWeapon(playerid,24,30);
  1102. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Desert Eagle! ($1200)");
  1103. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
  1104. }
  1105. }
  1106. return 1;
  1107. }
  1108. if(dialogid == WEAPONSHOP+2)
  1109. {
  1110. if(response)
  1111. {
  1112. if(listitem == 0)
  1113. {
  1114. if(GetPlayerMoney(playerid) <300)
  1115. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1116. GivePlayerMoney(playerid, -3000);
  1117. GivePlayerWeapon(playerid,32,30);
  1118. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Tec9! ($3000)");
  1119. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
  1120. }
  1121. if(listitem == 1)
  1122. {
  1123. if(GetPlayerMoney(playerid) <500)
  1124. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1125. GivePlayerMoney(playerid, -5000);
  1126. GivePlayerWeapon(playerid,28,30);
  1127. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Micro SMG! ($5000)");
  1128. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
  1129. }
  1130. }
  1131. return 1;
  1132. }
  1133. if(dialogid == WEAPONSHOP+3)
  1134. {
  1135. if(response)
  1136. {
  1137. if(listitem == 0)
  1138. {
  1139. if(GetPlayerMoney(playerid) <600)
  1140. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1141. GivePlayerMoney(playerid, -6000);
  1142. GivePlayerWeapon(playerid,25,15);
  1143. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Shotgun! ($6000)");
  1144. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
  1145. }
  1146. if(listitem == 1)
  1147. {
  1148. if(GetPlayerMoney(playerid) <800)
  1149. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1150. GivePlayerMoney(playerid, -8000);
  1151. GivePlayerWeapon(playerid,26,15);
  1152. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Sawnoff Shotgun (8000$)");
  1153. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
  1154. }
  1155. if(listitem == 2)
  1156. {
  1157. if(GetPlayerMoney(playerid) <1000)
  1158. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1159. GivePlayerMoney(playerid, -1000);
  1160. GivePlayerWeapon(playerid,27,15);
  1161. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Combat Shotgun (1000$)");
  1162. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
  1163. }
  1164. }
  1165. return 1;
  1166. }
  1167. if(dialogid == WEAPONSHOP+4)
  1168. {
  1169. if(response)
  1170. {
  1171. if(listitem == 0)
  1172. {
  1173. if(GetPlayerMoney(playerid) <200)
  1174. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1175. GivePlayerMoney(playerid, -1200);
  1176. SetPlayerArmour(playerid, 100);
  1177. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a Armour! ($1200)");
  1178. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
  1179. }
  1180.  
  1181. }
  1182. return 1;
  1183. }
  1184. if(dialogid == WEAPONSHOP+5)
  1185. {
  1186. if(response)
  1187. {
  1188. if(listitem == 0)
  1189. {
  1190. if(GetPlayerMoney(playerid) <2000)
  1191. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1192. GivePlayerMoney(playerid, -2000);
  1193. GivePlayerWeapon(playerid,29,30);
  1194. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a MP5 (2000$)");
  1195. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
  1196. }
  1197.  
  1198. }
  1199. return 1;
  1200. }
  1201. if(dialogid == WEAPONSHOP+6)
  1202. {
  1203. if(response)
  1204. {
  1205. if(listitem == 0)
  1206. {
  1207. if(GetPlayerMoney(playerid) <3500)
  1208. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1209. GivePlayerMoney(playerid, -3500);
  1210. GivePlayerWeapon(playerid,30,120);
  1211. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a AK47 (3500$)");
  1212. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
  1213. }
  1214. if(listitem == 1)
  1215. {
  1216. if(GetPlayerMoney(playerid) <4500)
  1217. return SendClientMessage(playerid, COLOR_RED, "You don't have enough money to purchase this item!");
  1218. GivePlayerMoney(playerid, -4500);
  1219. GivePlayerWeapon(playerid,31,120);
  1220. SendClientMessage(playerid, COLOR_GREEN, "Thank you for purchasing a M4 (4500$)");
  1221. ShowPlayerDialog(playerid, WEAPONSHOP, DIALOG_STYLE_LIST, "AmmuNation", "{F9B857}Pistols\n{F9B857}Sub-Machine Gun\n{FAFA52}Shotguns\n{C77D87}Armours\n{B8FF02}SMG\n{F300FF}Assault", "Select", "Cancel");
  1222. }
  1223.  
  1224. }
  1225. return 1;
  1226. }
  1227.  
  1228. return 1;
  1229. }
  1230.  
  1231. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1232. {
  1233. return 1;
  1234. }
  1235. //These are the dm's
  1236. CMD:dm1(playerid,params[])
  1237. {
  1238. new string[256], pname[MAX_PLAYER_NAME];
  1239. SetPlayerInterior(playerid, 0);
  1240. SetPlayerHealth(playerid, 100);
  1241. SetPlayerArmour(playerid, 100);
  1242. SetPlayerPos(playerid,879.2659,-1247.3887,15.6097);
  1243. ResetPlayerWeapons(playerid);
  1244. GivePlayerWeapon(playerid, 24, 1337);
  1245. GivePlayerWeapon(playerid, 27, 1337);
  1246. SetPlayerVirtualWorld(playerid, 0);
  1247. PlayerPlaySound(playerid, 1039, 0, 0, 0);
  1248. GetPlayerName(playerid, pname, sizeof(pname));
  1249. format(string, sizeof(string), " %s has went to DeatMach 1 [/Dm1] (Deagle,Spaz Combo)", pname);
  1250. SendClientMessageToAll(0xF79709C8, string);
  1251. return 1;
  1252. }
  1253. //NEW HERE 0xF79709C8
  1254. //0x1555EAC8
  1255. CMD:dm2(playerid,params[])
  1256. {
  1257. new string[256], pname[MAX_PLAYER_NAME];
  1258. SetPlayerInterior(playerid, 0);
  1259. SetPlayerHealth(playerid, 100);
  1260. SetPlayerArmour(playerid, 100);
  1261. SetPlayerPos(playerid,1012.0277,-2172.6189,12.9878);
  1262. ResetPlayerWeapons(playerid);
  1263. GivePlayerWeapon(playerid, 24, 1337);
  1264. GivePlayerWeapon(playerid, 34, 1337);
  1265. SetPlayerVirtualWorld(playerid, 0);
  1266. PlayerPlaySound(playerid, 1039, 0, 0, 0);
  1267. GetPlayerName(playerid, pname, sizeof(pname));
  1268. format(string, sizeof(string), " %s has went to DeatMach 2 [/Dm2] (Deagle,Sniper Combo)", pname);
  1269. SendClientMessageToAll(0xF79709C8, string);
  1270. return 1;
  1271. }
  1272. CMD:dm3(playerid,params[])
  1273. {
  1274. new string[256], pname[MAX_PLAYER_NAME];
  1275. SetPlayerInterior(playerid, 0);
  1276. SetPlayerHealth(playerid, 100);
  1277. SetPlayerArmour(playerid, 100);
  1278. SetPlayerPos(playerid,1584.4813,-1717.9739,6.2188);
  1279. ResetPlayerWeapons(playerid);
  1280. GivePlayerWeapon(playerid, 31, 1337);
  1281. GivePlayerWeapon(playerid, 29, 1337);
  1282. SetPlayerVirtualWorld(playerid, 0);
  1283. PlayerPlaySound(playerid, 1039, 0, 0, 0);
  1284. GetPlayerName(playerid, pname, sizeof(pname));
  1285. format(string, sizeof(string), " %s has went to DeatMach 3 [/Dm3] (M4,MP5 Combo)", pname);
  1286. SendClientMessageToAll(0xF79709C8, string);
  1287. return 1;
  1288. }
  1289. CMD:dm4(playerid,params[])
  1290. {
  1291. new string[256], pname[MAX_PLAYER_NAME];
  1292. SetPlayerInterior(playerid, 0);
  1293. SetPlayerHealth(playerid, 100);
  1294. SetPlayerInterior(playerid, 16);
  1295. SetPlayerArmour(playerid, 100);
  1296. SetPlayerPos(playerid,1600.9838,1581.1826,10.8203);
  1297. ResetPlayerWeapons(playerid);
  1298. GivePlayerWeapon(playerid, 34, 1337);
  1299. GivePlayerWeapon(playerid, 25, 1337);
  1300. SetPlayerVirtualWorld(playerid, 0);
  1301. PlayerPlaySound(playerid, 1039, 0, 0, 0);
  1302. GetPlayerName(playerid, pname, sizeof(pname));
  1303. format(string, sizeof(string), " %s has went to DeatMach 3 [/Dm3] (Shotgun,Sniper Combo)", pname);
  1304. SendClientMessageToAll(0xF79709C8, string);
  1305. return 1;
  1306. }
  1307. CMD:dm5(playerid,params[])
  1308. {
  1309. new string[256], pname[MAX_PLAYER_NAME];
  1310. SetPlayerInterior(playerid, 0);
  1311. SetPlayerHealth(playerid, 100);
  1312. SetPlayerInterior(playerid, 16);
  1313. SetPlayerArmour(playerid, 100);
  1314. SetPlayerPos(playerid,-1396.54, 1276.64, 1039.86);
  1315. ResetPlayerWeapons(playerid);
  1316. GivePlayerWeapon(playerid, 30, 1337);
  1317. GivePlayerWeapon(playerid, 24, 1337);
  1318. SetPlayerVirtualWorld(playerid, 0);
  1319. SetPlayerInterior(playerid, 16);
  1320. PlayerPlaySound(playerid, 1039, 0, 0, 0);
  1321. GetPlayerName(playerid, pname, sizeof(pname));
  1322. format(string, sizeof(string), " %s has went to DeatMach 3 [/Dm5] (Deagle,AK-47 Combo)", pname);
  1323. SendClientMessageToAll(0xF79709C8, string);
  1324. return 1;
  1325. }
  1326. CMD:dm6(playerid,params[])
  1327. {
  1328. new string[256], pname[MAX_PLAYER_NAME];
  1329. SetPlayerInterior(playerid, 0);
  1330. SetPlayerHealth(playerid, 100);
  1331. SetPlayerInterior(playerid, 16);
  1332. SetPlayerArmour(playerid, 100);
  1333. SetPlayerPos(playerid,1389.0695,2120.5022,11.0234);
  1334. ResetPlayerWeapons(playerid);
  1335. GivePlayerWeapon(playerid, 26, 1337);
  1336. GivePlayerWeapon(playerid, 32, 1337);
  1337. SetPlayerVirtualWorld(playerid, 0);
  1338. SetPlayerInterior(playerid, 16);
  1339. PlayerPlaySound(playerid, 1039, 0, 0, 0);
  1340. GetPlayerName(playerid, pname, sizeof(pname));
  1341. format(string, sizeof(string), " %s has went to DeatMach 3 [/Dm6] (Tec9,Sawn-Off Combo)", pname);
  1342. SendClientMessageToAll(0xF79709C8, string);
  1343. return 1;
  1344. }
  1345. CMD:help(playerid,params[])
  1346. {
  1347. SendClientMessage(playerid,msg,"This is a A/D TDM Server");
  1348. SendClientMessage(playerid,msg,"You can Kill people in this server for Cash");
  1349. SendClientMessage(playerid,msg,"Train your A/D Skills and become the Best");
  1350. SendClientMessage(playerid,msg,"You Spawn At your Team Base In Los Santos");
  1351. SendClientMessage(playerid,msg,"With Spaz,Dealge,Sniper and M4. Enjoy and Have fun");
  1352. return 1;
  1353. }
  1354. CMD:credits(playerid,params[])
  1355. {
  1356. SendClientMessage(playerid,msg,"This GameMode Was Created by ChronicaL_");
  1357. SendClientMessage(playerid,msg,"Special Thanks: Blunt,LST Community and K4L");
  1358. return 1;
  1359. }
  1360. CMD:dmlist(playerid,params[])
  1361. {
  1362. SendClientMessage(playerid,msg,"To go to a Deathmatch arena here are the commands");
  1363. SendClientMessage(playerid,msg,"/Dm1-6 ");
  1364. return 1;
  1365. }
  1366. CMD:serverhelp(playerid,params[])
  1367. {
  1368. SendClientMessage(playerid,0x42CC33C8,"California A/D | ServerHelp");
  1369. SendClientMessage(playerid,0x4066BFC8,"To TeamChat Type ! Before a Message");
  1370. SendClientMessage(playerid,0x4066BFC8,"/Heal to Heal yourself.");
  1371. return 1;
  1372. }
  1373. CMD:rules(playerid,params[])
  1374. {
  1375. SendClientMessage(playerid,msg,"California A/D | Rules");
  1376. SendClientMessage(playerid,msg,"1.No teamkilling");
  1377. SendClientMessage(playerid,msg,"2.No Hacking/Cheating");
  1378. SendClientMessage(playerid,msg,"3.Dont use hack Mods suck as SuperMan,etc Weapon mods allowed see more /mods");
  1379. SendClientMessage(playerid,msg,"4.Dont Advertise your server, You can advertise your clan and your clan website");
  1380. return 1;
  1381. }
  1382. CMD:q(playerid,params[])
  1383. {
  1384. SendClientMessage(playerid,msg,"Why you Leave? Rage Quit?");
  1385. return 1;
  1386. }
  1387. CMD:cmds(playerid,params[])
  1388. {
  1389. SendClientMessage(playerid,msg,"California A/D | Commands");
  1390. SendClientMessage(playerid,msg,"/Rules /dm1-6 /credits /heal /forum");
  1391. return 1;
  1392. }
  1393. CMD:forum(playerid,params[])
  1394. {
  1395. SendClientMessage(playerid,msg,"Right your forum name here");
  1396. return 1;
  1397. }
  1398. CMD:heal(playerid,params[])
  1399. {
  1400. if(HealTimer[playerid] == 1)
  1401. return SendClientMessage(playerid, acolor, "You can use this command once every 5 minutes!");
  1402. SetPlayerHealth(playerid,100);
  1403. HealTimer[playerid] = 1;
  1404. HealPlayTimer[playerid]= SetTimerEx("HealReal", 300000, false, "d", playerid);
  1405. return 1;
  1406. }
  1407. forward HealReal(playerid);
  1408. public HealReal(playerid)
  1409. {
  1410. HealTimer[playerid] = 0; // here he's able to use /search again.
  1411. SendClientMessage(playerid,0x42CC33C8, "Now you can use the command /heal again.");
  1412. return 1;
  1413. }
  1414.  
  1415.  
  1416.  
  1417. //See how it says "msg" because thats a defined color i placed at the top of the script.
  1418. /* Okay Blunt if you want to Make a command.
  1419.  
  1420. Do the following steps below.
  1421.  
  1422. Just write this
  1423.  
  1424. CMD:yourcmd(playerid,params[])
  1425. {
  1426. //Function goes here. like setplayerpos, setplayerhealth , SendClientmessage
  1427. return 1; // This tells the script to end the command. if not it will have major errors
  1428. } // dont ever remove this
  1429. */
  1430.  
  1431. /* GameMode was Made By chronic On Saturday , August 11th , 2012 */
  1432.  
  1433. //---Random Message System ---//
  1434. public SendRandomMessage()
  1435. {
  1436. static lastmessage = 0;
  1437. new rand = random(CURRENT_MESSAGES);
  1438. while(rand == lastmessage && CURRENT_MESSAGES != 1) { rand = random(CURRENT_MESSAGES); }
  1439. lastmessage = rand;
  1440. SendClientMessageToAll(MESSAGE_COLOR, RM[lastmessage]);
  1441. }
  1442.  
  1443. stock AddRandomMessage(text[])
  1444. {
  1445. for(new m; m < CURRENT_MESSAGES; m++)
  1446. {
  1447. if(!strlen(RM[m]))
  1448. {
  1449. strmid(RM[m], text, 0, 127);
  1450. return 1;
  1451. }
  1452. }
  1453. return 0;
  1454. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement