Advertisement
Guest User

iPhone Admin Meny *-->* by HY

a guest
Oct 22nd, 2014
630
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  
  3. MADE BY : HY
  4. DATE: 21/10/2014
  5. CREDITS: HY, ZEEX [Thanks for ZCMD Zeex]
  6.  
  7. • Don't remove credits !
  8. • Feel free to edit him and post on your server as yours !
  9.  
  10. */
  11.  
  12. #include <a_samp>
  13. #include <zcmd>
  14.  
  15. new Text:Textdraw0;
  16. new Text:Textdraw1;
  17. new Text:Textdraw2;
  18. new Text:Textdraw3;
  19. new Text:Textdraw4;
  20. new Text:Textdraw5;
  21. new Text:Textdraw6;
  22. new Text:Textdraw7;
  23. new Text:Textdraw8;
  24. new Text:Textdraw9;
  25. new Text:Textdraw10;
  26. new Text:Textdraw11;
  27.  
  28. public OnGameModeInit()
  29. {
  30. Textdraw0 = TextDrawCreate(641.199951, 206.833343, "usebox");
  31. TextDrawLetterSize(Textdraw0, 0.000000, 26.563331);
  32. TextDrawTextSize(Textdraw0, 446.800018, 0.000000);
  33. TextDrawAlignment(Textdraw0, 1);
  34. TextDrawColor(Textdraw0, 0);
  35. TextDrawUseBox(Textdraw0, true);
  36. TextDrawBoxColor(Textdraw0, 255);
  37. TextDrawSetShadow(Textdraw0, 0);
  38. TextDrawSetOutline(Textdraw0, 0);
  39. TextDrawFont(Textdraw0, 0);
  40.  
  41. Textdraw1 = TextDrawCreate(464.799987, 219.520004, "LD_SPAC:white");
  42. TextDrawLetterSize(Textdraw1, 0.000000, 0.000000);
  43. TextDrawTextSize(Textdraw1, 162.400024, 212.799972);
  44. TextDrawAlignment(Textdraw1, 1);
  45. TextDrawColor(Textdraw1, -1);
  46. TextDrawSetShadow(Textdraw1, 0);
  47. TextDrawSetOutline(Textdraw1, 0);
  48. TextDrawFont(Textdraw1, 4);
  49.  
  50. Textdraw2 = TextDrawCreate(472.000030, 246.399978, "hud:radar_girlfriend");
  51. TextDrawLetterSize(Textdraw2, 0.000000, 0.000000);
  52. TextDrawTextSize(Textdraw2, 43.200019, 29.866680);
  53. TextDrawAlignment(Textdraw2, 1);
  54. TextDrawColor(Textdraw2, -1);
  55. TextDrawSetShadow(Textdraw2, 0);
  56. TextDrawSetOutline(Textdraw2, 0);
  57. TextDrawFont(Textdraw2, 4);
  58. TextDrawSetSelectable(Textdraw2, true);
  59.  
  60. Textdraw3 = TextDrawCreate(567.199890, 247.893386, "hud:radar_ZERO");
  61. TextDrawLetterSize(Textdraw3, 0.000000, 0.000000);
  62. TextDrawTextSize(Textdraw3, 35.999984, 29.119995);
  63. TextDrawAlignment(Textdraw3, 1);
  64. TextDrawColor(Textdraw3, -1);
  65. TextDrawSetShadow(Textdraw3, 0);
  66. TextDrawSetOutline(Textdraw3, 0);
  67. TextDrawFont(Textdraw3, 4);
  68. TextDrawSetSelectable(Textdraw3, true);
  69.  
  70. Textdraw4 = TextDrawCreate(503.199890, 292.693450, "Clearchat");
  71. TextDrawLetterSize(Textdraw4, 0.449999, 1.600000);
  72. TextDrawAlignment(Textdraw4, 1);
  73. TextDrawColor(Textdraw4, 16777215);
  74. TextDrawSetShadow(Textdraw4, 0);
  75. TextDrawSetOutline(Textdraw4, 1);
  76. TextDrawBackgroundColor(Textdraw4, 51);
  77. TextDrawFont(Textdraw4, 1);
  78. TextDrawSetProportional(Textdraw4, 1);
  79. TextDrawSetSelectable(Textdraw4, true);
  80.  
  81. Textdraw5 = TextDrawCreate(501.599945, 324.799926, "GodMode");
  82. TextDrawLetterSize(Textdraw5, 0.449999, 1.600000);
  83. TextDrawAlignment(Textdraw5, 1);
  84. TextDrawColor(Textdraw5, -16776961);
  85. TextDrawSetShadow(Textdraw5, 0);
  86. TextDrawSetOutline(Textdraw5, 1);
  87. TextDrawBackgroundColor(Textdraw5, 51);
  88. TextDrawFont(Textdraw5, 1);
  89. TextDrawSetProportional(Textdraw5, 1);
  90. TextDrawSetSelectable(Textdraw5, true);
  91.  
  92. Textdraw6 = TextDrawCreate(500.799896, 355.413299, "Weapons");
  93. TextDrawLetterSize(Textdraw6, 0.449999, 1.600000);
  94. TextDrawAlignment(Textdraw6, 1);
  95. TextDrawColor(Textdraw6, 65535);
  96. TextDrawSetShadow(Textdraw6, 0);
  97. TextDrawSetOutline(Textdraw6, 1);
  98. TextDrawBackgroundColor(Textdraw6, 51);
  99. TextDrawFont(Textdraw6, 1);
  100. TextDrawSetProportional(Textdraw6, 1);
  101. TextDrawSetSelectable(Textdraw6, true);
  102.  
  103. Textdraw7 = TextDrawCreate(498.731445, 383.623382, "Spawn me");
  104. TextDrawLetterSize(Textdraw7, 0.449999, 1.600000);
  105. TextDrawAlignment(Textdraw7, 1);
  106. TextDrawColor(Textdraw7, -5963521);
  107. TextDrawSetShadow(Textdraw7, 0);
  108. TextDrawSetOutline(Textdraw7, 1);
  109. TextDrawBackgroundColor(Textdraw7, 51);
  110. TextDrawFont(Textdraw7, 1);
  111. TextDrawSetProportional(Textdraw7, 1);
  112. TextDrawSetSelectable(Textdraw7, true);
  113.  
  114. Textdraw8 = TextDrawCreate(515.200012, 203.839935, "iPhone");
  115. TextDrawLetterSize(Textdraw8, 0.449999, 1.600000);
  116. TextDrawAlignment(Textdraw8, 1);
  117. TextDrawColor(Textdraw8, -1);
  118. TextDrawSetShadow(Textdraw8, 0);
  119. TextDrawSetOutline(Textdraw8, 1);
  120. TextDrawBackgroundColor(Textdraw8, 51);
  121. TextDrawFont(Textdraw8, 1);
  122. TextDrawSetProportional(Textdraw8, 1);
  123.  
  124. Textdraw9 = TextDrawCreate(578.400268, 217.279968, "15:38");
  125. TextDrawLetterSize(Textdraw9, 0.449999, 1.600000);
  126. TextDrawAlignment(Textdraw9, 1);
  127. TextDrawColor(Textdraw9, -16711681);
  128. TextDrawSetShadow(Textdraw9, 0);
  129. TextDrawSetOutline(Textdraw9, 1);
  130. TextDrawBackgroundColor(Textdraw9, 51);
  131. TextDrawFont(Textdraw9, 1);
  132. TextDrawSetProportional(Textdraw9, 1);
  133.  
  134. Textdraw10 = TextDrawCreate(469.600097, 222.506607, "LD_SPAC:white");
  135. TextDrawLetterSize(Textdraw10, 0.000000, 0.000000);
  136. TextDrawTextSize(Textdraw10, 36.800006, 7.466674);
  137. TextDrawAlignment(Textdraw10, 1);
  138. TextDrawColor(Textdraw10, 16711935);
  139. TextDrawSetShadow(Textdraw10, 0);
  140. TextDrawSetOutline(Textdraw10, 0);
  141. TextDrawFont(Textdraw10, 4);
  142.  
  143. Textdraw11 = TextDrawCreate(534.400085, 432.319946, "ld_pool:ball");
  144. TextDrawLetterSize(Textdraw11, 0.000000, 0.000000);
  145. TextDrawTextSize(Textdraw11, 23.200010, 15.679999);
  146. TextDrawAlignment(Textdraw11, 1);
  147. TextDrawColor(Textdraw11, -1);
  148. TextDrawSetShadow(Textdraw11, 0);
  149. TextDrawSetOutline(Textdraw11, 0);
  150. TextDrawFont(Textdraw11, 4);
  151. //==========================================================================
  152. TextDrawSetSelectable(Textdraw2, true);
  153. TextDrawSetSelectable(Textdraw3, true);
  154. TextDrawSetSelectable(Textdraw4, true);
  155. TextDrawSetSelectable(Textdraw5, true);
  156. TextDrawSetSelectable(Textdraw6, true);
  157. TextDrawSetSelectable(Textdraw7, true);
  158. return 1;
  159. }
  160.  
  161. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  162. {
  163. if(clickedid == Textdraw2)
  164. {
  165. SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}You have been healed !");
  166. SetPlayerHealth(playerid, 100);
  167. }
  168. if(clickedid == Textdraw3)
  169. {
  170. SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}You received armour !");
  171. SetPlayerArmour(playerid, 100);
  172. }
  173. if(clickedid == Textdraw4)
  174. {
  175. SendClientMessageToAll(-1, " ");
  176. SendClientMessageToAll(-1, " ");
  177. SendClientMessageToAll(-1, " ");
  178. SendClientMessageToAll(-1, " ");
  179. SendClientMessageToAll(-1, " ");
  180. SendClientMessageToAll(-1, " ");
  181. SendClientMessageToAll(-1, " ");
  182. SendClientMessageToAll(-1, " ");
  183. SendClientMessageToAll(-1, " ");
  184. SendClientMessageToAll(-1, " ");
  185. SendClientMessageToAll(-1, " ");
  186. SendClientMessageToAll(-1, " ");
  187. SendClientMessageToAll(-1, " ");
  188. SendClientMessageToAll(-1, " ");
  189. SendClientMessageToAll(-1, " ");
  190. SendClientMessageToAll(-1, " ");
  191. SendClientMessageToAll(-1, " ");
  192. SendClientMessageToAll(-1, " ");
  193. SendClientMessageToAll(-1, " ");
  194. SendClientMessageToAll(-1, " ");
  195. SendClientMessageToAll(-1, " ");
  196. SendClientMessageToAll(-1, " ");
  197. SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}You have cleared the {FFFF00}chat !");
  198. }
  199. if(clickedid == Textdraw6)
  200. {
  201. SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}You received {FFFF00}Weapons Pack !");
  202. GivePlayerWeapon(playerid, 24, 9999);
  203. GivePlayerWeapon(playerid, 28, 9999);
  204. GivePlayerWeapon(playerid, 29, 9999);
  205. GivePlayerWeapon(playerid, 30, 9999);
  206. GivePlayerWeapon(playerid, 31, 9999);
  207. GivePlayerWeapon(playerid, 34, 9999);
  208. }
  209. if(clickedid == Textdraw5)
  210. {
  211. SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}Now, you have {FFFF00}infinity life !");
  212. GivePlayerWeapon(playerid, 24, 9999);
  213. GivePlayerWeapon(playerid, 28, 9999);
  214. GivePlayerWeapon(playerid, 29, 9999);
  215. GivePlayerWeapon(playerid, 30, 9999);
  216. GivePlayerWeapon(playerid, 31, 9999);
  217. GivePlayerWeapon(playerid, 34, 9999);
  218. }
  219. if(clickedid == Textdraw7)
  220. {
  221. SendClientMessage(playerid, 0xFFFFFFAA, "{FF0000}iPhone: {0066CC}You have been succesfully {FFFF00}spawned !");
  222. SpawnPlayer(playerid);
  223. }
  224. return 1;
  225. }
  226.  
  227. CMD:iphoneon(playerid,params[])
  228. {
  229. TextDrawShowForPlayer(playerid, Textdraw0);
  230. TextDrawShowForPlayer(playerid, Textdraw1);
  231. TextDrawShowForPlayer(playerid, Textdraw2);
  232. TextDrawShowForPlayer(playerid, Textdraw3);
  233. TextDrawShowForPlayer(playerid, Textdraw4);
  234. TextDrawShowForPlayer(playerid, Textdraw5);
  235. TextDrawShowForPlayer(playerid, Textdraw6);
  236. TextDrawShowForPlayer(playerid, Textdraw7);
  237. TextDrawShowForPlayer(playerid, Textdraw8);
  238. TextDrawShowForPlayer(playerid, Textdraw9);
  239. TextDrawShowForPlayer(playerid, Textdraw10);
  240. TextDrawShowForPlayer(playerid, Textdraw11);
  241. SendClientMessage(playerid,-1,"{FF0000}iPhone: {0066CC}You opened {FF0000}iPhone {FFFF00}Admin Menu {0066CC}!");
  242. SelectTextDraw(playerid, 0xA3B4C5FF);
  243. return 1;
  244. }
  245.  
  246. CMD:iphoneoff(playerid,params[])
  247. {
  248. TextDrawHideForPlayer(playerid, Textdraw0);
  249. TextDrawHideForPlayer(playerid, Textdraw1);
  250. TextDrawHideForPlayer(playerid, Textdraw2);
  251. TextDrawHideForPlayer(playerid, Textdraw3);
  252. TextDrawHideForPlayer(playerid, Textdraw4);
  253. TextDrawHideForPlayer(playerid, Textdraw5);
  254. TextDrawHideForPlayer(playerid, Textdraw6);
  255. TextDrawHideForPlayer(playerid, Textdraw7);
  256. TextDrawHideForPlayer(playerid, Textdraw8);
  257. TextDrawHideForPlayer(playerid, Textdraw9);
  258. TextDrawHideForPlayer(playerid, Textdraw10);
  259. TextDrawHideForPlayer(playerid, Textdraw11);
  260. SendClientMessage(playerid,-1,"{FF0000}iPhone: {0066CC}You closed {FF0000}iPhone {FFFF00}Admin Menu {0066CC}!");
  261. return 1;
  262. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement