Fitri_Fahim

GIslandv0.2

May 19th, 2013
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.79 KB | None | 0 0
  1. //GIsland By Guest123 (c) 2013
  2. //
  3.  
  4.  
  5. #include <a_samp>//tnx to sa-mp
  6. #include <zcmd> //tnx to zeek
  7. #include <streamer>//tnx to Incognito
  8. #pragma tabsize 0 // zzz
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. //=============defined===========================================
  16.  
  17.  
  18. #define DialogF 4576 // you can change this if your server bug with dialog
  19.  
  20. #define COLOR_BRIGHTRED 0xE60000FF
  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 COLOUR_PINK 0xFF00FFFF
  30. #define COLOUR_PURPLE 0x800080FF
  31. #define COLOUR_BLACK 0x000000FF
  32. #define COLOR_CYAN 0x99FFFFAA
  33. #define COLOR_TAN 0xFFFFCCAA
  34. #define COLOR_PINK 0xFF66FFAA
  35. #define COLOR_KHAKI 0x999900AA
  36. #define COLOR_LIME 0x99FF00AA
  37. #define COLOR_BLACK 0x000000AA
  38. #define COLOR_TURQ 0x00A3C0AA
  39. #define COLOR_LIGHTBLUE 0x33CCFFAA
  40. #define COLOR_DARKRED 0xAA993333
  41. #define COLOR_VIOLET 0x9955DEEE
  42. #define NICE_BLUE 0xa0d3ffAA
  43. #define GREEN 0x21DD00FF
  44. #define RED 0xE60000FF
  45. #define ADMIN_RED 0xFB0000FF
  46. #define YELLOW 0xFFFF00FF
  47. #define ORANGE 0xF97804FF
  48. #define LIGHTRED 0xFF8080FF
  49. #define LIGHTBLUE 0x00C2ECFF
  50. #define PURPLE 0xB360FDFF
  51. #define PLAYER_COLOR 0xFFFFFFFF
  52. #define LIGHTGREEN 0x38FF06FF
  53. #define DARKPINK 0xE100E1FF
  54. #define DARKGREEN 0x008040FF
  55. #define ANNOUNCEMENT 0x00CACAFB
  56. #define COLOR_SYSTEM 0xEFEFF7AA
  57. #define NICESKY 0x99FFFFAA
  58. #define GRAY 0xCECECEFF
  59. #define red 0xE60000FF
  60. #define yellow 0xFFFF00FF
  61. #define COLOR_ANTIHAX 0xE60000FF
  62.  
  63. #define COLOR_LIGHTBLUE 0x33CCFFAA
  64. #define COLOR_RED 0xAA3333AA
  65. #define COLOR_GREY 0xAFAFAFAA
  66. #define COLOR_YELLOW 0xFFFF00AA
  67. #define COLOR_PINK 0xFF66FFAA
  68. #define COLOR_BLUE 0x0000BBAA
  69. #define COLOR_WHITE 0xFFFFFFAA
  70. #define COLOR_INDIGO 0x4B00B0AA
  71. #define COLOR_VIOLET 0x9955DEEE
  72. #define COLOR_LIGHTRED 0xFF99AADD
  73. #define COLOR_SEAGREEN 0x00EEADDF
  74. #define COLOR_GRAYWHITE 0xEEEEFFC4
  75. #define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
  76. #define COLOR_GREENISHGOLD 0xCCFFDD56
  77. #define COLOR_LIGHTBLUEGREEN 0x0FFDD349
  78. #define COLOR_NEUTRALBLUE 0xABCDEF01
  79. #define COLOR_LIGHTCYAN 0xAAFFCC33
  80. #define COLOR_LEMON 0xDDDD2357
  81. #define COLOR_MEDIUMBLUE 0x63AFF00A
  82. #define COLOR_NEUTRAL 0xABCDEF97
  83. #define COLOR_NEUTRALGREEN 0x81CFAB00
  84. #define COLOR_DARKGREEN 0x12900BBF
  85. #define COLOR_DARKBLUE 0x300FFAAB
  86. #define COLOR_BLUEGREEN 0x46BBAA00
  87. #define COLOR_PINK 0xFF66FFAA
  88. #define COLOR_LIGHTBLUE 0x33CCFFAA
  89. #define COLOR_GRAD1 0xB4B5B7FF
  90. #define COLOR_GRAD2 0xBFC0C2FF
  91. #define COLOR_GREY 0xAFAFAFAA
  92. #define COLOR_GREEN 0x33AA33AA
  93. #define COLOR_RED 0xAA3333AA
  94. #define COLOR_YELLOW 0xFFFF00AA
  95. #define COLOR_WHITE 0xFFFFFFAA
  96. #define COLOR_BROWN 0x993300AA
  97. #define COLOR_CYAN 0x99FFFFAA
  98. #define COLOR_TAN 0xFFFFCCAA
  99. #define COLOR_PINK 0xFF66FFAA
  100. #define COLOR_KHAKI 0x999900AA
  101. #define COLOR_LIME 0x99FF00AA
  102. #define COLOR_SYSTEM 0xEFEFF7AA
  103. #define COLOR_GRAD2 0xBFC0C2FF
  104. #define COLOR_GRAD4 0xD8D8D8FF
  105. #define COLOR_GRAD6 0xF0F0F0FF
  106. #define COLOR_GRAD2 0xBFC0C2FF
  107. #define COLOR_GRAD3 0xCBCCCEFF
  108. #define COLOR_GRAD5 0xE3E3E3FF
  109. #define COLOR_GRAD1 0xB4B5B7FF
  110. #define COLOR_GILE 0x924161FF
  111. // ADDED 6-2-2012 Embed 0.3c
  112. #define COL_EASY "{FFF1AF}"
  113. #define COL_WHITE "{FFFFFF}"
  114. #define COL_BLACK "{0E0101}"
  115. #define COL_GREY "{C3C3C3}"
  116. #define COL_GREEN "{6EF83C}"
  117. #define COL_RED "{F81414}"
  118. #define COL_YELLOW "{F3FF02}"
  119. #define COL_ORANGE "{FFAF00}"
  120. #define COL_LIME "{B7FF00}"
  121. #define ORAN "{FF5500}"
  122. #define GREE "{94ED40}"
  123. #define BLUE "{4097ED}"
  124. #define W "{FFFFFF}"
  125. #define GREY "{C3C3C3}"
  126. #define COL_CYAN "{00FFEE}"
  127. #define COL_LIGHTBLUE "{00C0FF}"
  128. #define COL_BLUE "{0049FF}"
  129. #define COL_MAGENTA "{F300FF}"
  130. #define COL_VIOLET "{B700FF}"
  131. #define COL_PINK "{FF00EA}"
  132. #define COL_MARONE "{A90202}"
  133. #define COL_CMD "{B8FF02}"
  134. #define COL_PARAM "{3FCD02}"
  135. #define COL_SERVER "{AFE7FF}"
  136. #define COL_VALUE "{A3E4FF}"
  137. #define COL_RULE "{F9E8B7}"
  138. #define COL_RULE2 "{FBDF89}"
  139. #define COL_RWHITE "{FFFFFF}"
  140. #define COL_LGREEN "{C9FFAB}"
  141. #define COL_LRED "{FFA1A1}"
  142. #define COL_LRED2 "{C77D87}"
  143.  
  144. #define ADMINFS_MESSAGE_COLOR 0xFF444499
  145. #define PM_INCOMING_COLOR 0xFFFF22AA
  146. #define PM_OUTGOING_COLOR 0xFFCC2299
  147.  
  148.  
  149.  
  150. /*
  151.  
  152. (C)2013
  153.  
  154. GGGGGGGGGGGGGGGGGGGGGGGG GG GG GGGGGGGGGGGGG GGGGGGG GGGGGGGGGGGGGGGGGGG
  155. GG GG GG GG GG GG
  156. GG GG GG GG GG GG
  157. GG GG GG GG GG GG
  158. GG GG GG GG GG GG
  159. GGGGGGGGGGGGGGGGGGGGGGGG GG GG GGGGGGGGGGGGG GG GG
  160. GG GG GG GG GG GG GG
  161. GG GG GG GG GG GG GG
  162. GG GG GG GG GG GG GG
  163. GGGGGGGGGGGGGGGGGG GG GG GG GG GG GG
  164. GGGGGGGGGGGGGGGGGG GG GGGGGGGGGGGGGGGGGGG GGGGGGGGGGGGG GGGGGGGG GG 123
  165.  
  166. */
  167.  
  168.  
  169.  
  170.  
  171. new
  172. SuperPower[MAX_PLAYERS],
  173. jetmax,
  174. ship;
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183. #define PRESSED(%0) \
  184. (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
  185.  
  186. #define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
  187. #define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
  188. #define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
  189.  
  190. public OnFilterScriptInit()
  191. {
  192. print("\n--------------------------------------");
  193. print(" Admin Island By Guest123 Loaded");
  194. print("--------------------------------------\n");
  195.  
  196. jetmax = CreateVehicle(493, 4002.71, 7118.51, -0.71, 345.29, 0, 1, 1);
  197.  
  198. ship = CreateDynamicObject(8493, 4019.662841, 7089.360351, -0.795246, 0.000000, 0.000000, 0.000000);
  199.  
  200. AttachDynamicObjectToVehicle(ship, jetmax, 0.0, 3.0, 17.0, 0.0, 0.0, 0.0);
  201.  
  202.  
  203. //jetty/////////////////////////////////////////////////////////////////////////////////
  204. CreateDynamicObject(3361, 3984.153320, 7084.091796, 2.065238, 0.000000, 0.000000, 0.000000);
  205. CreateDynamicObject(3361, 3980.250732, 7079.830566, 6.041363, 0.000000, 0.000000, 90.000000);
  206. CreateDynamicObject(3361, 3984.628906, 7075.954101, 10.007493, 0.000000, 0.000000, -180.000000);
  207. //////////////////////////////////////////////////////////////////////////////////////////
  208. Create3DTextLabel("{B7FF00}get in to buy\n{FFFFFF}Superpower", 0x008080FF, 3933.9521,7047.5146,12.8733, 40.0, 0, 0);
  209. Create3DTextLabel("{B7FF00}get in to buy\n{FFFFFF}some drinks", 0x008080FF, 3928.3694,7004.1636,15.2896, 40.0, 0, 0);
  210. Create3DTextLabel("{B7FF00}get in to ride\n{FFFFFF}pirate ship", 0x008080FF, 3982.0796,7068.0669,13.2717, 40.0, 0, 0);
  211. CreateDynamicCP(3933.5000,7047.4087,11.5582+0.4, 1.0);//
  212. CreateDynamicCP(3982.0796,7068.0669,12.4418, 1.0);//prirateship
  213. CreateDynamicCP(3928.3694,7004.1636,15.2896-0.9, 1.0);//drinks
  214. CreateDynamicObject(3860, 3982.060302, 7069.787109, 13.251554, 0.000000, 0.000000, 0.000000);
  215. CreateDynamicObject(19376, 3896.152587, 7067.757812, 11.663183, 0.000000, 90.000000, 0.000000);
  216. CreateDynamicObject(19450, 3880.467773, 7075.007812, 9.963175, 0.000000, 0.000000, 0.000000);
  217. CreateDynamicObject(18765, 3885.330322, 7075.101074, 6.446872, 0.000000, 0.000000, 0.000000);
  218. CreateDynamicObject(18228, 3906.336914, 6874.632324, 10.470684, 0.000000, 0.000000, 0.000000);
  219. CreateDynamicObject(739, 3922.720703, 6958.213867, -3.071799, 0.000000, 0.000000, 0.000000);
  220. CreateDynamicObject(18228, 3868.837158, 7056.904785, 6.030786, 0.000000, 0.000000, 90.000000);
  221. CreateDynamicObject(739, 3886.421630, 6983.674804, 3.628458, 0.000000, 0.000000, 0.000000);
  222. CreateDynamicObject(740, 3916.976318, 7051.419921, -29.582838, 0.000000, 0.000000, 0.000000);
  223. CreateDynamicObject(708, 3899.555175, 7043.199707, 8.958831, 0.000000, 0.000000, 0.000000);
  224. CreateDynamicObject(18751, 3911.152832, 7027.870117, 7.958878, 0.000000, 0.000000, 0.000000);
  225. CreateDynamicObject(18751, 3911.152832, 7006.668945, 8.758884, 0.000000, 0.000000, 0.000000);
  226. CreateDynamicObject(708, 3871.141845, 6985.745117, 24.124078, 0.000000, 0.000000, 0.000000);
  227. CreateDynamicObject(7979, 3962.604980, 6920.159667, 15.073265, 0.000000, 0.000000, 180.000000);
  228. CreateDynamicObject(18228, 3868.837158, 6986.904785, 6.030786, 0.000000, 0.000000, 90.000000);
  229. CreateDynamicObject(18228, 3868.837158, 7016.904785, 6.030786, 0.000000, 0.000000, 90.000000);
  230. CreateDynamicObject(18228, 3909.837158, 7056.904785, 6.030786, 0.000000, 0.000000, 180.000000);
  231. CreateDynamicObject(18228, 3898.837158, 6840.904785, 6.030786, 0.000000, 0.000000, 90.000000);
  232. CreateDynamicObject(19450, 3900.132080, 7075.213378, 9.946868, 0.000000, 0.000000, 0.000000);
  233. CreateDynamicObject(19376, 3896.152587, 7077.357421, 11.663183, 0.000000, 90.000000, 0.000000);
  234. CreateDynamicObject(19450, 3900.132080, 7065.612792, 9.946868, 0.000000, 0.000000, 0.000000);
  235. CreateDynamicObject(18649, 3881.412353, 7072.856445, 8.046867, 0.000000, 0.000000, 0.000000);
  236. CreateDynamicObject(1645, 3890.542968, 7079.708007, 12.119426, 0.000000, 0.000000, 180.000000);
  237. CreateDynamicObject(1645, 3892.542968, 7079.708007, 12.119426, 0.000000, 0.000000, 180.000000);
  238. CreateDynamicObject(1609, 3921.208984, 7027.319335, 13.786706, 0.000000, 0.000000, 0.000000);
  239. CreateDynamicObject(1637, 3921.111816, 7021.955566, 14.511653, 0.000000, 0.000000, 0.000000);
  240. CreateDynamicObject(19128, 3886.476562, 7080.145996, 11.749116, 0.000000, 0.000000, 0.000000);
  241. CreateDynamicObject(19128, 3886.476562, 7076.246093, 11.749116, 0.000000, 0.000000, 0.000000);
  242. CreateDynamicObject(19128, 3882.476562, 7080.149902, 11.749116, 0.000000, 0.000000, 0.000000);
  243. CreateDynamicObject(10766, 3962.823242, 6963.056640, 9.927944, 0.000000, 0.000000, 0.000000);
  244. CreateDynamicObject(18765, 3930.395019, 7048.404296, 9.277166, 0.000000, 0.000000, 0.000000);
  245. CreateDynamicObject(18765, 3930.395019, 7054.404296, 9.277166, 0.000000, 0.000000, 0.000000);
  246. CreateDynamicObject(18765, 3920.395019, 7054.404296, 9.277166, 0.000000, 0.000000, 0.000000);
  247. CreateDynamicObject(18765, 3895.330322, 7075.101074, 6.446872, 0.000000, 0.000000, 0.000000);
  248. CreateDynamicObject(19450, 3880.467773, 7065.408203, 9.963175, 0.000000, 0.000000, 0.000000);
  249. CreateDynamicObject(18765, 3920.395019, 7046.404296, 9.277166, 0.000000, 0.000000, 0.000000);
  250. CreateDynamicObject(18765, 3910.496093, 7046.404296, 9.277166, 0.000000, 0.000000, 0.000000);
  251. CreateDynamicObject(18228, 3906.336914, 6964.632324, 10.470684, 0.000000, 0.000000, 90.000000);
  252. CreateDynamicObject(18228, 3906.336914, 6914.632324, 10.470684, 0.000000, 0.000000, 0.000000);
  253. CreateDynamicObject(18228, 4003.161132, 7053.759277, 2.855803, 0.000000, 0.000000, 70.000000);
  254. CreateDynamicObject(18228, 4003.161132, 7023.759277, 2.855803, 0.000000, 0.000000, 70.000000);
  255. CreateDynamicObject(18228, 4003.161132, 6993.759277, 2.855803, 0.000000, 0.000000, 70.000000);
  256. CreateDynamicObject(18228, 4003.161132, 6963.759277, 2.855803, 0.000000, 0.000000, 70.000000);
  257. CreateDynamicObject(18228, 4003.161132, 6963.759277, 12.855804, 0.000000, 0.000000, 70.000000);
  258. CreateDynamicObject(19376, 3895.531494, 7065.405761, 8.877243, 0.000000, 90.000000, 0.000000);
  259. CreateDynamicObject(18228, 4003.161132, 6933.759277, 5.855803, 0.000000, 0.000000, 70.000000);
  260. CreateDynamicObject(18228, 4003.161132, 6903.759277, 5.855803, 0.000000, 0.000000, 70.000000);
  261. CreateDynamicObject(19450, 3885.871826, 7080.088378, 9.946868, 0.000000, 0.000000, 90.000000);
  262. CreateDynamicObject(19376, 3884.802246, 7077.357421, 11.663183, 0.000000, 90.000000, 0.000000);
  263. CreateDynamicObject(19128, 3882.476562, 7076.145996, 11.749116, 0.000000, 0.000000, 0.000000);
  264. CreateDynamicObject(19431, 3881.141357, 7079.954101, 9.946868, 0.000000, 0.000000, 90.000000);
  265. CreateDynamicObject(19376, 3885.753173, 7067.757812, 11.643180, 0.000000, 90.000000, 0.000000);
  266. CreateDynamicObject(18648, 3899.659423, 7072.891601, 7.946865, 0.000000, 0.000000, 0.000000);
  267. CreateDynamicObject(19450, 3895.470458, 7080.088378, 9.946868, 0.000000, 0.000000, 90.000000);
  268. CreateDynamicObject(18228, 4003.161132, 6854.259765, 5.855803, 0.000000, 0.000000, 70.000000);
  269. CreateDynamicObject(18228, 4003.161132, 6873.759277, 5.855803, 0.000000, 0.000000, 70.000000);
  270. CreateDynamicObject(19376, 3885.031005, 7065.405761, 8.877243, 0.000000, 90.000000, 0.000000);
  271. CreateDynamicObject(19128, 3890.415771, 7076.246582, 11.749114, 0.000000, 0.000000, 0.000000);
  272. CreateDynamicObject(19128, 3890.415771, 7080.146484, 11.749114, 0.000000, 0.000000, 0.000000);
  273. CreateDynamicObject(19128, 3890.415771, 7072.246582, 11.749114, 0.000000, 0.000000, 0.000000);
  274. CreateDynamicObject(19128, 3886.415771, 7072.246582, 11.749114, 0.000000, 0.000000, 0.000000);
  275. CreateDynamicObject(19128, 3882.415771, 7072.246582, 11.749114, 0.000000, 0.000000, 0.000000);
  276. CreateDynamicObject(1641, 3889.968750, 7065.510742, 11.729117, 0.000000, 0.000000, 0.000000);
  277. CreateDynamicObject(3267, 3881.155761, 7081.332031, 11.236557, 0.000000, 0.000000, 0.000000);
  278. CreateDynamicObject(3593, 3928.093017, 7052.062988, 12.177164, 0.000000, 0.000000, -90.000000);
  279. CreateDynamicObject(1025, 3926.009521, 7050.855468, 11.977163, 0.000000, 0.000000, 90.000000);
  280. CreateDynamicObject(1025, 3926.009521, 7053.254882, 11.977163, 0.000000, 0.000000, 90.000000);
  281. CreateDynamicObject(1025, 3930.109619, 7053.254882, 11.977163, 0.000000, 0.000000, 90.000000);
  282. CreateDynamicObject(1025, 3930.109619, 7050.854492, 11.977163, 0.000000, 0.000000, 90.000000);
  283. CreateDynamicObject(1010, 3926.773437, 7052.062988, 12.583029, 0.000000, 0.000000, 90.000000);
  284. CreateDynamicObject(3267, 3928.281005, 7051.952636, 11.256845, 0.000000, 0.000000, -90.000000);
  285. CreateDynamicObject(1016, 3924.979492, 7051.980957, 12.497245, 0.000000, 0.000000, -90.000000);
  286. CreateDynamicObject(3461, 3881.125244, 7081.374023, 12.819432, 0.000000, 0.000000, 0.000000);
  287. CreateDynamicObject(3461, 3920.340820, 7024.458007, 17.510089, 0.000000, 0.000000, 0.000000);
  288. CreateDynamicObject(18228, 3913.699951, 6890.208496, 9.168780, 0.000000, 0.000000, 0.000000);
  289. CreateDynamicObject(18228, 3915.966552, 6934.701660, 4.420173, 0.000000, 0.000000, 0.000000);
  290. CreateDynamicObject(18228, 3926.047851, 6900.091796, 1.122084, 0.000000, 0.000000, 0.000000);
  291. CreateDynamicObject(18228, 4005.827636, 6855.205566, 1.564278, 0.000000, 0.000000, 0.000000);
  292. CreateDynamicObject(18228, 4000.495117, 6908.136718, -1.637786, 0.000000, 0.000000, 90.000000);
  293. CreateDynamicObject(18228, 4000.495117, 6878.136718, -1.637786, 0.000000, 0.000000, 90.000000);
  294. CreateDynamicObject(18228, 4000.495117, 6848.136718, -1.637786, 0.000000, 0.000000, 90.000000);
  295. CreateDynamicObject(18228, 4000.495117, 6818.136718, -1.637786, 0.000000, 0.000000, 90.000000);
  296. CreateDynamicObject(18228, 3885.811279, 6955.847656, 5.465898, 0.000000, 0.000000, 0.000000);
  297. CreateDynamicObject(18228, 3865.534179, 6942.634765, 6.242496, 0.000000, 0.000000, 0.000000);
  298. CreateDynamicObject(18228, 3820.024902, 6924.856445, -0.598994, 0.000000, 0.000000, 0.000000);
  299. CreateDynamicObject(18228, 3883.180175, 6907.135253, -2.208491, 0.000000, 0.000000, 0.000000);
  300. CreateDynamicObject(18228, 3901.900634, 6855.564453, 2.103995, 0.000000, 0.000000, 0.000000);
  301. CreateDynamicObject(18228, 3884.182617, 6859.702636, 2.631325, 0.000000, 0.000000, 0.000000);
  302. CreateDynamicObject(18228, 3884.383544, 6874.688476, -3.878170, 0.000000, 0.000000, 0.000000);
  303. CreateDynamicObject(18228, 3786.369140, 6897.225097, -21.496034, 0.000000, 0.000000, 0.000000);
  304. CreateDynamicObject(18228, 3784.922119, 6898.096191, -3.910963, 0.000000, 0.000000, 0.000000);
  305. CreateDynamicObject(18228, 3774.571044, 6869.906738, -3.937015, 0.000000, 0.000000, 90.000000);
  306. CreateDynamicObject(18228, 3799.895019, 6845.703125, -3.022330, 0.000000, 0.000000, 90.000000);
  307. CreateDynamicObject(18228, 3841.406250, 6830.990722, -5.565233, 0.000000, 0.000000, 90.000000);
  308. CreateDynamicObject(18228, 3835.800537, 6836.468261, -9.743188, 0.000000, 0.000000, 90.000000);
  309. CreateDynamicObject(18228, 3830.732666, 6828.148925, -1.292073, 0.000000, 0.000000, 90.000000);
  310. CreateDynamicObject(1730, 3881.306640, 7079.229003, 8.946869, 0.000000, 0.000000, 0.000000);
  311. CreateDynamicObject(1767, 3889.798583, 7073.509765, 8.946869, 0.000000, 0.000000, 0.000000);
  312. CreateDynamicObject(1767, 3890.819091, 7069.752441, 8.963177, 0.000000, 0.000000, 180.000000);
  313. CreateDynamicObject(980, 3962.848876, 6918.198242, 12.078866, 90.000000, 90.000000, 90.000000);
  314. CreateDynamicObject(18765, 3925.262695, 7007.398925, 11.789644, 0.000000, 0.000000, 0.000000);
  315. CreateDynamicObject(18765, 3925.262695, 6997.398925, 11.789644, 0.000000, 0.000000, 0.000000);
  316. CreateDynamicObject(16151, 3926.471923, 7006.456054, 14.589640, 0.000000, 0.000000, 180.000000);
  317. CreateDynamicObject(19377, 3925.054687, 7007.489746, 15.289644, 0.000000, 0.000000, 0.000000);
  318. CreateDynamicObject(3860, 3931.412109, 7047.473144, 12.777166, 0.000000, 0.000000, 90.000000);
  319.  
  320. return 1;
  321. }
  322. //auto off superpowers
  323. public OnPlayerConnect(playerid)
  324. {
  325. SuperPower[playerid] = 0;
  326. return 1;
  327. }
  328.  
  329. public OnPlayerDisconnect(playerid, reason)
  330. {
  331. SuperPower[playerid] = 0;
  332. return 1;
  333. }
  334.  
  335. public OnPlayerEnterCheckpoint(playerid)
  336. {
  337. if(IsPlayerInRangeOfPoint(playerid, 2.0, 3933.5000,7047.4087,11.5582+0.4))
  338. {
  339. ShowPlayerDialog(playerid, DialogF, DIALOG_STYLE_LIST, "Rent A Superpower", "Rent A Superpower<$9999999>(superpower)\nSell<+250000>", "Select", "Cancel");
  340. }
  341. if(IsPlayerInRangeOfPoint(playerid, 2.0, 3982.0796,7068.0669,12.4418))
  342. {
  343. ShowPlayerDialog(playerid, DialogF+2, DIALOG_STYLE_LIST, "Ride A Ship", "Ride The Pirate Ship $2120\nSpawn me", "Select", "Cancel");
  344. }
  345. if(IsPlayerInRangeOfPoint(playerid, 2.0, 3928.3694,7004.1636,15.2896-0.9))
  346. {
  347. ShowPlayerDialog(playerid, DialogF+1, DIALOG_STYLE_LIST, "Buy A Drinks", "Drunk$191\nWine$192\nSprunk$193\nWeed$194\nCiggy$195\nStop Drunk(free)", "Select", "Cancel");
  348. }
  349. return 1;
  350. }
  351.  
  352.  
  353.  
  354. public OnPlayerUpdate(playerid)
  355. {
  356. if(!IsPlayerAdmin(playerid))///IsPlayerLuxAdminLevel
  357. {
  358. if(IsPlayerInRangeOfPoint(playerid, 200.0 ,3933.9521,7047.5146,12.8733))
  359. {
  360. SetTimerEx("Kill",1000,0,"i",playerid);
  361. return 1;
  362. }
  363. }
  364. return 1;
  365. }
  366.  
  367.  
  368.  
  369. CMD:gisland(playerid,params[])
  370. {
  371. if(IsPlayerAdmin(playerid))///IsPlayerLuxAdminLevel
  372. {
  373. SetPlayerPos(playerid,3964.6052,7009.7505,13.2717+3);
  374. TogglePlayerControllable(playerid,0);
  375. SetTimerEx("UnFreeze",1000,0,"i",playerid);
  376. }
  377. else SendClientMessage(playerid, COLOR_WHITE, "ERROR: You are not rcon administrator !");
  378. return 1;
  379. }
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  387. {
  388. switch(dialogid)
  389. {
  390. case DialogF: // The case = our dialog id
  391. {
  392. if(response)
  393. {
  394. switch(listitem)
  395. {
  396. case 0: // If he selects the first option
  397. {
  398. if(GetPlayerMoney(playerid) < 9999999) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this superpower!");
  399. SendClientMessage(playerid, -1, "you have rent superpower in 5 mins >:O");
  400. SuperPower[playerid] = 1;
  401. SetPlayerHealth(playerid,999999.0);//can't die while using superpower lol
  402. SetPlayerArmour(playerid,999999.0);//can't die while using superpower lol
  403. SendClientMessage(playerid, -1, "Superpower has been {00ffff}enabled{ffffff}!");
  404. SetPlayerAttachedObject( playerid, 4, 2976, 15, 0.000000, 0.100000, -0.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  405. SetPlayerAttachedObject( playerid, 2, 18688, 5, -0.300000, 0.200000, -1.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  406. SetTimerEx("cancle1",90000,0,"i",playerid);
  407. }
  408. case 1: // If the user selects the second option
  409. {
  410. if(SuperPower[playerid] == 1)
  411. {
  412. GivePlayerMoney(playerid,25000);
  413. SuperPower[playerid] = 0;
  414. for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
  415. if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
  416. }
  417. else return SendClientMessage(playerid,-1,"you Must Buy superpower to sell it !");
  418. }
  419. }
  420. }
  421. }
  422. case DialogF+2:
  423. {
  424. if(response)
  425. {
  426. switch(listitem)
  427. {
  428. case 0: // If he selects the first option
  429. {
  430. if(GetPlayerMoney(playerid) < 21202) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to ride the prate ship !");
  431. PutPlayerInVehicle(playerid, jetmax, 0);
  432. SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You must change you camera view to ride this by pressing v");
  433. SetPlayerMapIcon( playerid, 12, 3967.0071,7003.5693,13.2645, 35, 0, MAPICON_GLOBAL);
  434. SetPlayerMapIcon( playerid, 13, 830.4406,2896.7056,4.4740, 11, 0, MAPICON_GLOBAL);
  435. SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You must remember you place, you can see the icon at radar");
  436. }
  437. case 1: // If the user selects the second option
  438. {
  439. SpawnPlayer(playerid);
  440. }
  441. }
  442. }
  443. }
  444. case DialogF+1:
  445. {
  446. if(response)
  447. {
  448. switch(listitem)
  449. {
  450. case 0: // If he selects the first option
  451. {
  452. if(GetPlayerMoney(playerid) < 191) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this item!");
  453. SetPlayerDrunkLevel(playerid,50000);
  454. SendClientMessage(playerid, -1, "{FFFFFF}You Was Bought Drunk For $191 ");
  455. SetTimerEx("StopDrunk",10000,0,"i",playerid);
  456. }
  457. case 1: // If the user selects the second option
  458. {
  459. if(GetPlayerMoney(playerid) < 192) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this item!");
  460. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
  461. SendClientMessage(playerid, -1, "{FFFFFF}You Was Bought Wine For $192");
  462. }
  463. case 2: // If the user selects the second option
  464. {
  465. if(GetPlayerMoney(playerid) < 193) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this item!");
  466. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
  467. SendClientMessage(playerid, -1, "{FFFFFF}You Was Bought Sprunk For $193");
  468. }
  469. case 3: // If the user selects the second option
  470. {
  471. if(GetPlayerMoney(playerid) < 194) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this item!");
  472. SetPlayerHoldingObject(playerid, 3027,2,0.0,0.1,0.0,90.0,180.0,90.0);
  473. SendClientMessage(playerid, -1, "{FFFFFF}You Was Bought Weed For $194");
  474. }
  475. case 4: // If the user selects the second option
  476. {
  477. if(GetPlayerMoney(playerid) < 195) return SendClientMessage(playerid, -1, "[ERROR]{FFFFFF}You don't have enough cash to purchase this item!");
  478. SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
  479. SendClientMessage(playerid, -1, "{FFFFFF}You Was Bought Ciggy For $195");
  480. }
  481. case 5: // If the user selects the second option
  482. {
  483. SetPlayerDrunkLevel(playerid,0);
  484. SendClientMessage(playerid, -1, "{FFFFFF}You Are Not Drunk Anymore !!");
  485. }
  486. }
  487. }
  488. }
  489. }
  490. return 1;
  491. }
  492.  
  493.  
  494.  
  495. forward cancle1(playerid);
  496. public cancle1(playerid)
  497. {
  498. for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
  499. if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
  500. SendClientMessage(playerid, -1, "your trade was disable (out date)");
  501. SuperPower[playerid] = 0;
  502. }
  503.  
  504. forward StopDrunk(playerid);
  505. public StopDrunk(playerid)
  506. {
  507. SetPlayerDrunkLevel(playerid,0);
  508. }
  509.  
  510.  
  511. forward Kill(playerid);
  512. public Kill(playerid)
  513. {
  514. SetPlayerHealth(playerid,0);
  515. SetPlayerArmour(playerid,0);
  516. SendClientMessage(playerid,-1,"you was killed by Ghost At Admin Island");
  517. }
  518.  
  519. forward UnFreeze(playerid);
  520. public UnFreeze(playerid)
  521. {
  522. TogglePlayerControllable(playerid,1);
  523. }
  524.  
  525.  
  526.  
  527.  
  528. public OnPlayerDeath(playerid, killerid, reason)
  529. {
  530. SuperPower[playerid] = 0;
  531. RemovePlayerMapIcon( playerid, 12 );
  532. RemovePlayerMapIcon( playerid, 13 );
  533. return 1;
  534. }
  535.  
  536.  
  537.  
  538. CMD:superon(playerid,params[])
  539. {
  540. if(IsPlayerAdmin(playerid))
  541. {
  542. SuperPower[playerid] = 1;
  543. SetPlayerHealth(playerid,999999.0);//can't die while using superpower lol
  544. SetPlayerArmour(playerid,999999.0);//can't die while using superpower lol
  545. SendClientMessage(playerid, -1, "Superpower has been {00ffff}enabled{ffffff}!");
  546. SetPlayerAttachedObject( playerid, 4, 2976, 15, 0.000000, 0.100000, -0.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  547. SetPlayerAttachedObject( playerid, 2, 18688, 5, -0.300000, 0.200000, -1.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  548. }
  549. else
  550. SendClientMessage(playerid,-1,"You Got A Superpower !");
  551. SetPlayerAttachedObject( playerid, 4, 2976, 15, 0.000000, 0.100000, -0.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  552. SetPlayerAttachedObject( playerid, 2, 18688, 5, -0.300000, 0.200000, -1.500000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
  553. return 1;
  554. }
  555.  
  556.  
  557.  
  558.  
  559.  
  560. CMD:superoff(playerid,params[])
  561. {
  562. for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
  563. if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
  564. SuperPower[playerid] = 0;
  565. SetPlayerHealth(playerid,100.0);
  566. SetPlayerArmour(playerid,100.0);
  567. SendClientMessage(playerid, -1, "Superpower has been {00ffff}disable{ffffff}!");
  568. return 1;
  569. }
  570.  
  571. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  572. {
  573. if (PRESSED(KEY_JUMP))
  574. {
  575. if(SuperPower[playerid] == 1)
  576. {
  577. new Float:x , Float:y , Float:z ,Float:x1 , Float:y1 , Float:x2 , Float:y2;
  578. GetPlayerPos(playerid,x,y,z);
  579. GetPlayerPos(playerid,x1,y1,z);
  580. GetPlayerPos(playerid,x2,y2,z);
  581. GetXYInFrontOfPlayer(playerid, x,y, 20);
  582. GetXYInFrontOfPlayer(playerid, x,y, 40);
  583. GetXYInFrontOfPlayer(playerid, x,y, 60);
  584. SetPlayerPos(playerid, x, y, z+1.0);
  585. CreateExplosion(x, y, z, 0, 10.0);
  586. CreateExplosion(x, y, z, 1, 10.0);
  587. CreateExplosion(x, y, z, 2, 10.0);
  588. CreateExplosion(x, y, z, 3, 10.0);
  589. CreateExplosion(x, y, z, 4, 10.0);
  590. CreateExplosion(x, y, z, 4, 10.0);
  591. CreateExplosion(x, y, z, 5, 10.0);
  592. CreateExplosion(x, y, z, 6, 10.0);
  593. CreateExplosion(x, y, z, 7, 10.0);
  594. CreateExplosion(x, y, z, 8, 10.0);
  595. CreateExplosion(x, y, z, 9, 10.0);
  596. CreateExplosion(x, y, z, 10, 10.0);
  597. CreateExplosion(x, y, z, 11, 10.0);
  598. CreateExplosion(x, y, z, 12, 10.0);
  599. CreateExplosion(x, y, z, 13, 10.0);
  600. }
  601. }
  602. return 1;
  603. }
  604.  
  605.  
  606.  
  607.  
  608.  
  609. /*
  610.  
  611. Tnx To Aryzal
  612.  
  613. */
  614. stock GetXYInFrontOfPlayer(playerid, &Float:x2, &Float:y2, Float:distance)
  615. {
  616. new Float:a;
  617.  
  618. GetPlayerPos(playerid, x2, y2, a);
  619. GetPlayerFacingAngle(playerid, a);
  620.  
  621. if(GetPlayerVehicleID(playerid))
  622. {
  623.  
  624. GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
  625. }
  626.  
  627. x2 += (distance * floatsin(-a, degrees));
  628. y2 += (distance * floatcos(-a, degrees));
  629. }
Advertisement
Add Comment
Please, Sign In to add comment