Advertisement
Fitri_Fahim

Gisland By Guest

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