Advertisement
Guest User

ZH3r0

a guest
Mar 16th, 2008
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.56 KB | None | 0 0
  1. //----------------|*****************************************|-----------------||
  2. //----------------|^_^|-{[(FS)]}***"castle death Match"-|^_^|-----------------||
  3. //----------------|^_^|-Created By Zh3r0 From Timisoara-|^_^|-----------------||
  4. //----------------|^_^|-UPDATE BY KARLIP----------------|^_^|-----------------||
  5. //----------------|^_^|-Contact Me At Y Vlady_vialpando-|^_^|-----------------||
  6. //----------------|^_^|-And Enjoy And Have A Nice Play-|^_^|-----------------||
  7. //----------------|*****************************************|-----------------||
  8. //##############################################################################
  9. // I Have Maked It For My Self So Don't Try To Sell It The I'm Gonna Make You Die
  10. //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  11. //##############################################################################
  12. /* BY ZH3r0 */
  13. // ^^^^^^^^^^^^^^The Begin Of The Script^^^^^^^^^^^^
  14. // Includes//
  15. #include <a_samp>
  16. // Filterscript define//
  17. #define FILTERSCRIPT
  18.  
  19. //Colors Defines
  20. #define COLOR_BLUE 0x0000FFAA
  21. #define COLOR_GREY 0xAFAFAFAA
  22. #define COLOR_GREEN 0x33AA33AA
  23. #define COLOR_RED 0xAA3333AA
  24. #define COLOR_YELLOW 0xFFFF00AA
  25. #define COLOR_WHITE 0xFFFFFFAA
  26. #define COLOR_PURPLE 0x9900FFAA
  27. #define COLOR_BROWN 0x993300AA
  28. #define COLOR_ORANGE 0xFF9933AA
  29. #define COLOR_CYAN 0x99FFFFAA
  30. #define COLOR_TAN 0xFFFFCCAA
  31. #define COLOR_PINK 0xFF66FFAA
  32. #define COLOR_KHAKI 0x999900AA
  33. #define COLOR_LIME 0x99FF00AA
  34. #define COLOR_BLACK 0x000000AA
  35. #define COLOR_TURQ 0x00A3C0AA
  36.  
  37. new sniper1;
  38. new deagle;
  39. new deagle2;
  40. new armour;
  41. new armour2;
  42. new health;
  43. new health1;
  44. new health2;
  45. new health3;
  46. new m4;
  47. new ak;
  48. new m4_2;
  49.  
  50. // Filterscript start //
  51. public OnFilterScriptExit()
  52. {
  53. return 1;
  54. }
  55.  
  56. public OnFilterScriptInit()
  57. {
  58. print("\n**************************************");
  59. print(" :.:.:-Castle Death Match-:.:.:");
  60. print(" :.:.:-LoAdEd-:.:.:");
  61. print("**************************************\n");
  62.  
  63. //*****************************XOBJECTS*****************************************
  64. //******************************************************************************
  65. CreateObject(987, 2295.150879, 1034.457642, 9.820313, 0.0000, 0.0000, 56.2501);
  66. CreateObject(987, 2301.855469, 1044.414917, 9.820313, 0.0000, 0.0000, 56.2501);
  67. CreateObject(987, 2308.551514, 1054.351563, 9.820313, 0.0000, 0.0000, 56.2501);
  68. CreateObject(987, 2315.253174, 1064.255981, 9.820313, 0.0000, 0.0000, 56.2501);
  69. CreateObject(987, 2321.981689, 1074.067139, 9.820313, 0.0000, 0.0000, 90.0002);
  70. CreateObject(1649, 2178.680420, 1114.209717, 24.001680, 0.0000, 0.0000, 243.2028);
  71. CreateObject(13749, 2141.281494, 1136.492065, 18.469070, 304.9961, 27.5020, 104.5334);
  72. CreateObject(1649, 2196.026855, 1111.271729, 26.693871, 0.0000, 0.0000, 243.2028);
  73. CreateObject(1649, 2228.562988, 1094.013062, 41.406487, 0.0000, 0.0000, 243.2028);
  74. CreateObject(1649, 2226.719971, 1090.311279, 41.404396, 0.0000, 0.0000, 243.2028);
  75. CreateObject(1649, 2233.947754, 1096.072876, 41.462616, 0.0000, 0.0000, 153.2028);
  76. CreateObject(1649, 2237.855713, 1094.163086, 41.464413, 0.0000, 0.0000, 153.2028);
  77. CreateObject(1649, 2238.082275, 1089.413574, 41.462616, 0.0000, 0.0000, 63.2028);
  78. CreateObject(1649, 2236.083496, 1085.521240, 41.462616, 0.0000, 0.0000, 63.2028);
  79. CreateObject(1649, 2231.545654, 1084.747681, 41.462616, 0.0000, 0.0000, 333.2028);
  80. CreateObject(1649, 2227.689209, 1086.713257, 41.462616, 0.0000, 0.0000, 333.2028);
  81. CreateObject(1649, 2231.836426, 1084.629028, 41.462616, 0.0000, 0.0000, 153.2028);
  82. CreateObject(1649, 2227.969482, 1086.571655, 41.470901, 0.0000, 0.0000, 153.2028);
  83. CreateObject(1649, 2228.604004, 1094.094482, 41.484055, 0.0000, 0.0000, 63.2029);
  84. CreateObject(1649, 2226.761719, 1090.394043, 41.529827, 0.0000, 0.0000, 63.2029);
  85. CreateObject(1649, 2233.959717, 1096.066895, 41.475266, 0.0000, 0.0000, 333.2028);
  86. CreateObject(1649, 2237.911865, 1094.130859, 41.462616, 0.0000, 0.0000, 333.2028);
  87. CreateObject(1649, 2238.326660, 1089.958130, 41.462616, 0.0000, 0.0000, 243.2029);
  88. CreateObject(1649, 2236.326660, 1086.005615, 41.462616, 0.0000, 0.0000, 243.2029);
  89. CreateObject(626, 2179.377197, 1116.467773, 24.384533, 0.0000, 0.0000, 0.0000);
  90. CreateObject(626, 2177.157959, 1112.589600, 24.384533, 0.0000, 0.0000, 0.0000);
  91. CreateObject(3279, 2227.568115, 1081.677612, 23.774054, 0.0000, 0.0000, 247.5001);
  92. CreateObject(3277, 2232.242432, 1090.453491, 40.569469, 0.0000, 0.0000, 0.0000);
  93. CreateObject(3277, 2284.335205, 1081.245728, 29.147593, 0.0000, 0.0000, 0.0000);
  94. CreateObject(3277, 2284.296143, 1081.268188, 29.662495, 0.0000, 0.0000, 0.0000);
  95. CreateObject(1457, 2228.925781, 1045.486572, 34.187866, 0.0000, 0.0000, 135.0000);
  96. CreateObject(9321, 2261.262695, 1097.090088, 33.988770, 0.0000, 0.0000, 243.2027);
  97. CreateObject(1697, 2256.025635, 1122.596924, 34.125317, 0.0000, 0.0000, 329.6104);
  98. CreateObject(1697, 2252.342773, 1124.914185, 34.125317, 0.0000, 0.0000, 326.0953);
  99. CreateObject(1697, 2248.633057, 1127.415161, 34.125317, 0.0000, 0.0000, 326.2500);
  100. CreateObject(3659, 2236.477783, 1100.113525, 33.534157, 0.0000, 0.0000, 337.5000);
  101. CreateObject(3659, 2217.428955, 1139.267456, 61.103561, 0.0000, 0.0000, 270.0000);
  102. CreateObject(3659, 2238.343750, 1100.416138, 33.509155, 0.0000, 0.0000, 247.5000);
  103. CreateObject(3659, 2237.333496, 1101.935425, 33.534157, 0.0000, 0.0000, 157.5000);
  104. CreateObject(3659, 2234.870605, 1101.590454, 33.534157, 0.0000, 0.0000, 292.5000);
  105. CreateObject(3659, 2234.844727, 1103.766724, 33.534157, 0.0000, 0.0000, 247.5000);
  106. CreateObject(3659, 2235.817627, 1106.139648, 33.534157, 0.0000, 0.0000, 247.5000);
  107. CreateObject(3659, 2237.139648, 1103.908203, 33.534157, 0.0000, 0.0000, 247.5000);
  108. CreateObject(3659, 2237.277100, 1107.068237, 33.534157, 0.0000, 0.0000, 157.5000);
  109. CreateObject(3659, 2239.445557, 1106.170776, 33.534157, 0.0000, 0.0000, 157.5000);
  110. CreateObject(3659, 2239.356934, 1102.863647, 33.534157, 0.0000, 0.0000, 67.5000);
  111. CreateObject(3659, 2240.268066, 1101.692871, 33.534157, 0.0000, 0.0000, 315.0000);
  112. CreateObject(3659, 2240.435547, 1099.983154, 33.534157, 0.0000, 0.0000, 247.5001);
  113. CreateObject(3659, 2241.043213, 1103.546753, 33.534157, 0.0000, 0.0000, 164.4529);
  114. CreateObject(3659, 2241.406006, 1105.168457, 33.534157, 0.0000, 0.0000, 151.4065);
  115. CreateObject(3659, 2241.862305, 1103.907227, 35.220352, 0.0000, 0.0000, 78.7500);
  116. CreateObject(1225, 2234.637695, 1094.334229, 40.202629, 0.0000, 0.0000, 0.0000);
  117. CreateObject(1225, 2271.391846, 1157.043701, 78.960442, 0.0000, 0.0000, 0.0000);
  118. CreateObject(1225, 2236.541504, 1089.771240, 40.202629, 0.0000, 0.0000, 0.0000);
  119. CreateObject(1225, 2277.756836, 1159.252686, 78.960442, 0.0000, 0.0000, 0.0000);
  120. CreateObject(1225, 2238.472656, 1103.720825, 32.929192, 0.0000, 0.0000, 0.0000);
  121. CreateObject(1225, 2281.788330, 1051.773926, 26.108879, 0.0000, 0.0000, 0.0000);
  122. CreateObject(1225, 2291.584473, 1054.307251, 26.108879, 0.0000, 0.0000, 0.0000);
  123. CreateObject(1225, 2279.942871, 1070.407227, 28.780754, 0.0000, 0.0000, 0.0000);
  124. CreateObject(1225, 2269.179199, 1081.132446, 28.784746, 0.0000, 0.0000, 0.0000);
  125. CreateObject(1225, 2264.285889, 1054.868408, 28.780754, 0.0000, 0.0000, 0.0000);
  126. CreateObject(1225, 2228.784180, 1045.242920, 32.934196, 0.0000, 0.0000, 0.0000);
  127. CreateObject(1225, 2224.007813, 1105.596191, 63.958649, 0.0000, 0.0000, 0.0000);
  128. CreateObject(1225, 2243.201904, 1119.122314, 32.929192, 0.0000, 0.0000, 0.0000);
  129. CreateObject(1225, 2198.157227, 1066.387573, 28.784733, 0.0000, 0.0000, 0.0000);
  130. CreateObject(1225, 2215.400391, 1077.340820, 29.036530, 0.0000, 0.0000, 0.0000);
  131. CreateObject(1225, 2208.361328, 1093.510254, 28.904865, 0.0000, 0.0000, 0.0000);
  132. CreateObject(1225, 2215.397461, 1120.568970, 28.855133, 0.0000, 0.0000, 0.0000);
  133. CreateObject(1225, 2233.423096, 1122.556030, 28.926331, 0.0000, 0.0000, 0.0000);
  134. CreateObject(1225, 2160.252930, 1140.826050, 22.741692, 0.0000, 0.0000, 0.0000);
  135. CreateObject(1225, 2189.146240, 1131.178223, 22.741692, 0.0000, 0.0000, 0.0000);
  136. CreateObject(1225, 2151.330566, 1114.399048, 22.734009, 0.0000, 0.0000, 0.0000);
  137. CreateObject(1225, 2174.529541, 1100.465820, 22.734009, 0.0000, 0.0000, 0.0000);
  138. CreateObject(3504, 2241.723877, 1058.623901, 33.870808, 0.0000, 0.0000, 11.2500);
  139. CreateObject(3615, 2279.718262, 1098.495850, 30.337557, 0.0000, 0.0000, 78.7501);
  140. CreateObject(1383, 2276.821289, 1091.734497, 39.184269, 329.9197, 353.9839, 353.1245);
  141. CreateObject(1391, 2234.944092, 1111.117432, 52.378609, 329.9197, 355.7028, 87.6540);
  142. CreateObject(1394, 2260.622070, 1097.463135, 60.111877, 0.0000, 0.0000, 123.7501);
  143. CreateObject(1394, 2231.775635, 1009.359009, 69.912674, 347.1084, 0.0000, 22.5000);
  144. CreateObject(3502, 2253.183838, 1086.913940, 34.452080, 0.0000, 0.0000, 202.5001);
  145. CreateObject(3502, 2247.737061, 1083.825928, 34.452080, 0.0000, 0.0000, 112.5001);
  146. CreateObject(3502, 2245.004150, 1076.300171, 34.452080, 0.0000, 0.0000, 90.0001);
  147. CreateObject(1225, 2221.298828, 1111.441284, 64.083733, 0.0000, 0.0000, 0.0000);
  148. CreateObject(16337, 2234.543213, 996.210632, 79.439407, 0.0000, 0.0000, 22.5000);
  149. CreateObject(16337, 2204.792480, 995.347595, 79.822220, 0.0000, 0.0000, 22.5000);
  150. CreateObject(16337, 2174.772949, 1077.734131, 79.439407, 0.0000, 0.0000, 22.5000);
  151. CreateObject(1384, 2180.134766, 1097.906860, 79.862747, 0.0000, 0.0000, 333.9849);
  152. CreateObject(16337, 2278.030518, 1171.597656, 79.439346, 0.0000, 0.0000, 22.5000);
  153. CreateObject(16337, 2305.501465, 1162.224854, 79.822220, 0.0000, 0.0000, 22.5000);
  154. CreateObject(16337, 2320.550537, 1090.610474, 79.439407, 0.0000, 0.0000, 22.5000);
  155. CreateObject(1384, 2300.207520, 1042.000000, 79.098373, 0.0000, 0.0000, 333.9849);
  156. CreateObject(16337, 2286.478027, 1024.347534, 79.439331, 0.0000, 0.0000, 22.5000);
  157. CreateObject(7073, 2244.147461, 1150.801758, 96.396416, 0.0000, 0.0000, 292.5000);
  158. CreateObject(7073, 2259.485596, 1016.636658, 96.546425, 0.0000, 0.0000, 285.1606);
  159. CreateObject(7392, 2192.810547, 1048.469482, 86.449684, 0.0000, 0.0000, 20.7038);
  160. CreateObject(7392, 2310.767822, 1114.559937, 86.424667, 0.0000, 0.0000, 11.2501);
  161. CreateObject(1485, 2149.150146, 1124.761719, 24.067518, 0.0000, 0.0000, 0.0000);
  162. CreateObject(16337, 2230.919678, 994.725098, 83.052521, 0.0000, 77.3493, 22.5000);
  163. CreateObject(16337, 2289.445557, 1025.770020, 82.579826, 2.5783, 292.2084, 25.8339);
  164. CreateObject(16337, 2321.831055, 1087.210938, 83.254944, 273.1970, 0.0000, 22.5000);
  165. CreateObject(16337, 2280.924561, 1172.719727, 83.254883, 273.1970, 0.0000, 111.7774);
  166. CreateObject(16337, 2208.291504, 1143.483521, 79.439407, 0.0000, 0.0000, 22.5000);
  167. CreateObject(16337, 2205.749756, 1142.027344, 83.441910, 273.1970, 0.0000, 300.8536);
  168. CreateObject(16337, 2173.740234, 1080.609619, 83.311707, 273.1970, 359.1406, 199.6036);
  169. CreateObject(16337, 2196.532227, 1006.292542, 79.439407, 0.0000, 0.0000, 22.5000);
  170. CreateObject(16337, 2197.797607, 1003.296387, 83.301559, 273.1970, 359.1406, 23.0413);
  171. CreateObject(16337, 2291.417725, 1172.986328, 79.822220, 0.0000, 0.0000, 22.5000);
  172. CreateObject(16337, 2310.010254, 1149.100586, 79.439407, 0.0000, 0.0000, 22.5000);
  173. CreateObject(16337, 2308.676025, 1152.199097, 82.998268, 273.1970, 0.0000, 202.5000);
  174. CreateObject(16337, 2221.606689, 990.346191, 79.822220, 0.0000, 0.0000, 22.5000);
  175. CreateObject(1649, 2178.711182, 1113.995972, 24.001680, 0.0000, 0.0000, 63.2028);
  176. CreateObject(1649, 2196.218750, 1111.529053, 26.743877, 0.0000, 0.0000, 63.2028);
  177. CreateObject(9321, 2254.473877, 1100.611572, 33.988770, 0.0000, 0.0000, 243.2027);
  178. CreateObject(9321, 2257.899902, 1098.886475, 35.988770, 0.0000, 0.0000, 243.2027);
  179. CreateObject(1853, 2252.985596, 1087.401245, 33.266743, 0.0000, 0.0000, 0.0000);
  180. CreateObject(1853, 2227.174072, 1043.609741, 32.841526, 0.0000, 0.0000, 0.0000);
  181. CreateObject(1853, 2222.315918, 1113.488403, 63.861115, 0.0000, 0.0000, 0.0000);
  182. CreateObject(1853, 2274.932861, 1111.109741, 70.914032, 0.0000, 0.0000, 0.0000);
  183. CreateObject(1853, 2281.739990, 1060.863892, 26.216183, 0.0000, 0.0000, 0.0000);
  184. CreateObject(1853, 2230.395020, 1091.108154, 41.449863, 0.0000, 0.0000, 0.0000);
  185. CreateObject(1853, 2204.269287, 1058.243774, 28.967035, 0.0000, 0.0000, 0.0000);
  186. CreateObject(1853, 2213.154541, 1124.594727, 29.039635, 0.0000, 0.0000, 0.0000);
  187. CreateObject(1853, 2170.935303, 1075.829712, 79.217796, 0.0000, 0.0000, 0.0000);
  188. CreateObject(1862, 2192.598389, 1049.213745, 79.071228, 0.0000, 0.0000, 0.0000);
  189. CreateObject(1862, 2261.801025, 1017.846558, 79.121231, 0.0000, 0.0000, 0.0000);
  190. CreateObject(1862, 2311.375244, 1111.316284, 78.571198, 0.0000, 0.0000, 0.0000);
  191. CreateObject(1862, 2238.742920, 1148.080200, 79.146156, 0.0000, 0.0000, 0.0000);
  192. CreateObject(1248, 2176.593994, 1112.849243, 22.974705, 0.0000, 0.0000, 236.2501);
  193. CreateObject(1248, 2178.918701, 1116.609375, 22.829212, 0.0000, 0.0000, 236.2501);
  194. CreateObject(1851, 2236.756836, 1101.031372, 34.118877, 0.0000, 0.0000, 0.0000);
  195. // Pickups //
  196. sniper1 = CreatePickup(358,19,2274.6436,1158.5956,79.5547);
  197. armour = CreatePickup(1242,2,2212.0979,993.3729,79.9375);
  198. armour2 = CreatePickup(1242,2,2255.6375,1110.8226,29.3750);
  199. ak = CreatePickup(355,2,2311.3569,1160.3815,85.9375);
  200. m4 = CreatePickup(356,2,2202.8032,1139.9376,85.9375);
  201. m4_2 = CreatePickup(356,2,2278.4863,1099.4291,33.5367);
  202. deagle = CreatePickup(348,2,2253.8430,1014.7814,79.5547);
  203. health = CreatePickup(1240,2,2311.7766,1111.2633,79.5547);
  204. health1 = CreatePickup(1240,2,2192.3789,1049.1841,79.5547);
  205. health2 = CreatePickup(1240,2,2274.8630,1111.2650,71.5665);
  206. health3 = CreatePickup(1240,2,2229.7019,1046.3953,33.5284);
  207. deagle2 = CreatePickup(348,2,2241.8325,1057.7316,33.5284);
  208. }
  209. //------------------------------------------------------------------------------
  210. // Pickups
  211. public OnPlayerPickUpPickup(playerid, pickupid)
  212. {
  213. if (pickupid == deagle){
  214. GivePlayerWeapon(playerid,24,150);
  215. SendClientMessage(playerid,COLOR_GREEN, "Picked Up::Desert Eagle.");}
  216. if (pickupid == deagle2){
  217. GivePlayerWeapon(playerid,24,150);
  218. SendClientMessage(playerid,COLOR_GREEN, "Picked Up::Desert Eagle.");}
  219. if (pickupid == m4){
  220. GivePlayerWeapon(playerid,31,150);
  221. SendClientMessage(playerid,COLOR_GREEN, "Picked Up:: M4.");}
  222. if (pickupid == m4_2){
  223. GivePlayerWeapon(playerid,31,150);
  224. SendClientMessage(playerid,COLOR_GREEN, "Picked Up:: M4");}
  225. if (pickupid == sniper1){
  226. GivePlayerWeapon(playerid,34,35);
  227. SendClientMessage(playerid,COLOR_GREEN, "Picked Up:: Sniper");}
  228. if (pickupid == armour){
  229. SetPlayerArmour(playerid,100);
  230. SendClientMessage(playerid,COLOR_GREEN, "Armour Filled!");}
  231. if (pickupid == armour2){
  232. SetPlayerArmour(playerid,100);
  233. SendClientMessage(playerid,COLOR_GREEN, "Armour Filled!");}
  234. if (pickupid == ak){
  235. GivePlayerWeapon(playerid,30,150);
  236. SendClientMessage(playerid,COLOR_GREEN, "Picked Up: Ak47.");}
  237. if (pickupid == health){
  238. SetPlayerHealth(playerid, 100);
  239. SendClientMessage(playerid,COLOR_GREEN, "Health Filled!");}
  240. if (pickupid == health1){
  241. SetPlayerHealth(playerid, 100);
  242. SendClientMessage(playerid,COLOR_GREEN, "Health Filled!");}
  243. if (pickupid == health2){
  244. SetPlayerHealth(playerid, 100);
  245. SendClientMessage(playerid,COLOR_GREEN, "Health Filled!");}
  246. if (pickupid == health3){
  247. SetPlayerHealth(playerid, 100);
  248. SendClientMessage(playerid,COLOR_GREEN, "Health Filled!");
  249. }
  250. return 1;
  251. }
  252. public OnPlayerDeath(playerid, killerid, reason)
  253. {
  254. SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
  255. return 1;
  256. }
  257.  
  258. //Teleport Command//
  259. public OnPlayerCommandText(playerid, cmdtext[]){
  260. new name[MAX_PLAYER_NAME+1];
  261. new string[256];
  262. if (strcmp(cmdtext, "/cdm", true)==0){
  263. SetPlayerPos(playerid, 2236.753906, 1101.085815, 33.523437);
  264. SetPlayerFacingAngle(playerid, 146.413253);
  265. GetPlayerName(playerid, name, sizeof(name));
  266. format(string, sizeof(string), "%s has entered the Castle Death Match.(/cdm)", name);
  267. SendClientMessageToAll(0x0000FFAA, string);
  268. SendClientMessage(playerid,COLOR_GREEN, "Welcome To Castle DeathMatch");
  269. SendClientMessage(playerid,COLOR_RED, "Made By Zh3r0.");
  270. SendClientMessage(playerid,COLOR_GREEN, "Enjoy~!");
  271. SetPlayerInterior(playerid, 0);
  272. ResetPlayerWeapons(playerid);
  273. GivePlayerWeapon(playerid, 22, 2000);
  274. GivePlayerWeapon(playerid, 30, 2000);
  275. GivePlayerWeapon(playerid, 32, 2000);
  276. SetPlayerArmour(playerid, 100);
  277. SetPlayerHealth(playerid, 100);
  278. return 1;
  279. }
  280. return 0;
  281. }
  282. //------------------------------------------------------------------------------
  283. // ^^^^^^^^^^End Of The Script^^^^^^^^^^^^
  284.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement