Jopsonee_

Dynamic Pickup!

Oct 14th, 2012
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.38 KB | None | 0 0
  1. /*
  2. 0000000000 0000000000 0000000000 00000000000 0000000000 00 00 0000000000 0000000000
  3. 00 00 00 00 00 00 00 00 00 00 00 00
  4. 00 00 00 00 00 00 00 00 00 00 00 00
  5. 00 00 00 0000000000 0000000000 00 00 00 00 0000000 0000000
  6. 00 00 00 00 00 00 00 0000 00 00 00
  7. 00 00 00 00 00 00 00 00 00 00 00 00
  8. 0000000000 0000000000 00 0000000000 0000000000 00 0000 0000000000 0000000000*/
  9.  
  10. #include <a_samp>
  11. #include <zcmd>
  12. #define FILTERSCRIPT
  13.  
  14.  
  15.  
  16. public OnFilterScriptInit()
  17. {
  18. print("\n--------------------------------------");
  19. print(" FS: JOPSONEE_PICKUPS STARTED! ");
  20. print("--------------------------------------\n");
  21. return 1;
  22. }
  23.  
  24. new j_string[256];
  25.  
  26. forward J_pickup(string[]);
  27. public J_pickup(string[])
  28. {
  29. new entry[128];
  30. format(entry, sizeof(entry), "%s\n",string);
  31. new File:hFile;
  32. hFile = fopen("/J_pickup.log", io_append);
  33. fwrite(hFile, entry);
  34. fclose(hFile);
  35. }
  36.  
  37. CMD:napravipickup(playerid,params[])
  38. {
  39. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xC9C9C9, " (greska!) Niste ovlasteni da koristite ovu komandu!");
  40. {
  41. ShowPlayerDialog(playerid,0,DIALOG_STYLE_LIST, "Izaberi pickup:", "Health\nArmour\nInfo icon\nBlue house\nGreen house\nCash\nAdrenaline\nBribe\nGTA III sign\nBomb from GTA III\nPhoto op\nSkull\nMoney icon\nBlue t-shirt\nSave disk\n2 Skulls\n2 Players icon\nTiki statue\nParachute (with leg straps)\nDown arrow\nDrug bundle", "Postavi", "Napusti");
  42. TogglePlayerControllable(playerid,0);
  43. }
  44. return 1;
  45. }
  46.  
  47. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  48. {
  49. new Float:x, Float:y, Float:z;
  50. if(!response)
  51. {
  52. SendClientMessage(playerid,0xDABB3EAA,"J_pickup {FFFFFF} | Za ponovo pokretanje dinamickog sustava za pravljenje pickupa upisi: /napravipickup");
  53. }
  54. if(response)
  55. {
  56. switch(dialogid)
  57. {
  58. case 0:
  59. {
  60. switch(listitem)
  61. {
  62. case 0:
  63. {
  64. TogglePlayerControllable(playerid,1);
  65. GetPlayerPos(playerid, x, y, z);
  66. CreatePickup(1240, 1, x, y, z);
  67. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Health , ID pickupa : 1240!");
  68. format(j_string, sizeof(j_string), "AddStaticPickup(1240,1,%f,%f,%f);\r\n", x,y,z);
  69. J_pickup(j_string);
  70. GameTextForPlayer(playerid," ~w~ pickup:~b~Health", 2000, 1);
  71. print(" Pickup kreiran | Vrsta pickupa : Health , ID pickupa : 1240!");
  72. }
  73. case 1:
  74. {
  75. TogglePlayerControllable(playerid,1);
  76. GetPlayerPos(playerid, x, y, z);
  77. CreatePickup(1242, 1, x, y, z);
  78. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Armour , ID pickupa : 1242!");
  79. format(j_string, sizeof(j_string), "AddStaticPickup(1242,1,%f,%f,%f);\r\n", x,y,z);
  80. J_pickup(j_string);
  81. GameTextForPlayer(playerid," ~w~ pickup:~b~Armour", 2000, 1);
  82. print(" Pickup kreiran | Vrsta pickupa : Armour , ID pickupa : 1242!");
  83. }
  84. case 2:
  85. {
  86. TogglePlayerControllable(playerid,1);
  87. GetPlayerPos(playerid, x, y, z);
  88. CreatePickup(1239, 1, x, y, z);
  89. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Info icon , ID pickupa : 1239!");
  90. format(j_string, sizeof(j_string), "AddStaticPickup(1239,1,%f,%f,%f);\r\n", x,y,z);
  91. J_pickup(j_string);
  92. GameTextForPlayer(playerid," ~w~ pickup:~b~Info icon", 2000, 1);
  93. print(" Pickup kreiran | Vrsta pickupa : Info icon , ID pickupa : 1239!");
  94. }
  95. case 3:
  96. {
  97. TogglePlayerControllable(playerid,1);
  98. GetPlayerPos(playerid, x, y, z);
  99. CreatePickup(1272, 1, x, y, z);
  100. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Blue house , ID pickupa : 1272!");
  101. format(j_string, sizeof(j_string), "AddStaticPickup(1272,1,%f,%f,%f);\r\n", x,y,z);
  102. J_pickup(j_string);
  103. GameTextForPlayer(playerid," ~w~ pickup:~b~Blue house", 2000, 1);
  104. print(" Pickup kreiran | Vrsta pickupa : Blue house , ID pickupa : 1272!");
  105. }
  106. case 4:
  107. {
  108. TogglePlayerControllable(playerid,1);
  109. GetPlayerPos(playerid, x, y, z);
  110. CreatePickup(1273, 1, x, y, z);
  111. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Green house , ID pickupa : 1273!");
  112. format(j_string, sizeof(j_string), "AddStaticPickup(1273,1,%f,%f,%f);\r\n", x,y,z);
  113. J_pickup(j_string);
  114. GameTextForPlayer(playerid," ~w~ pickup:~b~Green house", 2000, 1);
  115. print(" Pickup kreiran | Vrsta pickupa : Green house , ID pickupa : 1273!");
  116. }
  117. case 5:
  118. {
  119. TogglePlayerControllable(playerid,1);
  120. GetPlayerPos(playerid, x, y, z);
  121. CreatePickup(1212, 1, x, y, z);
  122. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Cash , ID pickupa : 1212!");
  123. format(j_string, sizeof(j_string), "AddStaticPickup(1212,1,%f,%f,%f);\r\n", x,y,z);
  124. J_pickup(j_string);
  125. GameTextForPlayer(playerid," ~w~ pickup:~b~Cash", 2000, 1);
  126. print(" Pickup kreiran | Vrsta pickupa : Cash , ID pickupa : 1212!");
  127. }
  128. case 6:
  129. {
  130. TogglePlayerControllable(playerid,1);
  131. GetPlayerPos(playerid, x, y, z);
  132. CreatePickup(1241, 1, x, y, z);
  133. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Adrenaline , ID pickupa : 1241!");
  134. format(j_string, sizeof(j_string), "AddStaticPickup(1241,1,%f,%f,%f);\r\n", x,y,z);
  135. J_pickup(j_string);
  136. GameTextForPlayer(playerid," ~w~ pickup:~b~Adrenaline", 2000, 1);
  137. print(" Pickup kreiran | Vrsta pickupa : Adrenaline , ID pickupa : 1241!");
  138. }
  139. case 7:
  140. {
  141. TogglePlayerControllable(playerid,1);
  142. GetPlayerPos(playerid, x, y, z);
  143. CreatePickup(1247, 1, x, y, z);
  144. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Bribe , ID pickupa : 1247!");
  145. format(j_string, sizeof(j_string), "AddStaticPickup(1247,1,%f,%f,%f);\r\n", x,y,z);
  146. J_pickup(j_string);
  147. GameTextForPlayer(playerid," ~w~ pickup:~b~Bribe", 2000, 1);
  148. print(" Pickup kreiran | Vrsta pickupa : Bribe , ID pickupa : 1247!");
  149. }
  150. case 8:
  151. {
  152. TogglePlayerControllable(playerid,1);
  153. GetPlayerPos(playerid, x, y, z);
  154. CreatePickup(1248, 1, x, y, z);
  155. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : GTA III sign , ID pickupa : 1248!");
  156. format(j_string, sizeof(j_string), "AddStaticPickup(1248,1,%f,%f,%f);\r\n", x,y,z);
  157. J_pickup(j_string);
  158. GameTextForPlayer(playerid," ~w~ pickup:~b~GTA 3 sign", 2000, 1);
  159. print(" Pickup kreiran | Vrsta pickupa : GTA III sign , ID pickupa : 1248!");
  160. }
  161. case 9:
  162. {
  163. TogglePlayerControllable(playerid,1);
  164. GetPlayerPos(playerid, x, y, z);
  165. CreatePickup(1252, 1, x, y, z);
  166. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Bomb from GTA III , ID pickupa : 1252!");
  167. format(j_string, sizeof(j_string), "AddStaticPickup(1252,1,%f,%f,%f);\r\n", x,y,z);
  168. J_pickup(j_string);
  169. GameTextForPlayer(playerid," ~w~ pickup:~b~Bomb from gta 3", 2000, 1);
  170. print(" Pickup kreiran | Vrsta pickupa : Bomb from GTA III , ID pickupa : 1252!");
  171. }
  172. case 10:
  173. {
  174. TogglePlayerControllable(playerid,1);
  175. GetPlayerPos(playerid, x, y, z);
  176. CreatePickup(1253, 1, x, y, z);
  177. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Photo op , ID pickupa : 1253!");
  178. format(j_string, sizeof(j_string), "AddStaticPickup(1253,1,%f,%f,%f);\r\n", x,y,z);
  179. J_pickup(j_string);
  180. GameTextForPlayer(playerid,"~w~pickup:~b~Photo op", 2000, 1);
  181. print(" Pickup kreiran | Vrsta pickupa : Photo op , ID pickupa : 1253!");
  182. }
  183. case 11:
  184. {
  185. TogglePlayerControllable(playerid,1);
  186. GetPlayerPos(playerid, x, y, z);
  187. CreatePickup(1254, 1, x, y, z);
  188. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Skull , ID pickupa : 1254!");
  189. format(j_string, sizeof(j_string), "AddStaticPickup(1254,1,%f,%f,%f);\r\n", x,y,z);
  190. J_pickup(j_string);
  191. GameTextForPlayer(playerid,"~w~pickup:~b~Skull", 2000, 1);
  192. print(" Pickup kreiran | Vrsta pickupa : Skull , ID pickupa : 1254!");
  193. }
  194. case 12:
  195. {
  196. TogglePlayerControllable(playerid,1);
  197. GetPlayerPos(playerid, x, y, z);
  198. CreatePickup(1274, 1, x, y, z);
  199. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Money icon , ID pickupa : 1274!");
  200. format(j_string, sizeof(j_string), "AddStaticPickup(1274,1,%f,%f,%f);\r\n", x,y,z);
  201. J_pickup(j_string);
  202. GameTextForPlayer(playerid,"~w~pickup:~b~Money icon", 2000, 1);
  203. print(" Pickup kreiran | Vrsta pickupa : Money icon , ID pickupa : 1274!");
  204. }
  205. case 13:// The first item listed
  206. {
  207. TogglePlayerControllable(playerid,1);
  208. GetPlayerPos(playerid, x, y, z);
  209. CreatePickup(1275, 1, x, y, z);
  210. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Blue t-shirt , ID pickupa : 1275!");
  211. format(j_string, sizeof(j_string), "AddStaticPickup(1275,1,%f,%f,%f);\r\n", x,y,z);
  212. J_pickup(j_string);
  213. GameTextForPlayer(playerid,"~w~pickup:~b~Blue t-shirt", 2000, 1);
  214. print(" Pickup kreiran | Vrsta pickupa : Blue t-shirt , ID pickupa : 1275!");
  215. }
  216. case 14:
  217. {
  218. TogglePlayerControllable(playerid,1);
  219. GetPlayerPos(playerid, x, y, z);
  220. CreatePickup(1277, 1, x, y, z);
  221. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Save disk , ID pickupa : 1277!");
  222. format(j_string, sizeof(j_string), "AddStaticPickup(1277,1,%f,%f,%f);\r\n", x,y,z);
  223. J_pickup(j_string);
  224. GameTextForPlayer(playerid,"~w~pickup:~b~Save disk", 2000, 1);
  225. print(" Pickup kreiran | Vrsta pickupa : Save disk , ID pickupa : 1277!");
  226. }
  227. case 15:
  228. {
  229. TogglePlayerControllable(playerid,1);
  230. GetPlayerPos(playerid, x, y, z);
  231. CreatePickup(1313, 1, x, y, z);
  232. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : 2 Skulls , ID pickupa : 1313!");
  233. format(j_string, sizeof(j_string), "AddStaticPickup(1313,1,%f,%f,%f);\r\n", x,y,z);
  234. J_pickup(j_string);
  235. GameTextForPlayer(playerid,"~w~pickup:~b~2 Skulls", 2000, 1);
  236. print(" Pickup kreiran | Vrsta pickupa : 2 Skulls , ID pickupa : 1313!");
  237. }
  238. case 16:
  239. {
  240. TogglePlayerControllable(playerid,1);
  241. GetPlayerPos(playerid, x, y, z);
  242. CreatePickup(1314, 1, x, y, z);
  243. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : 2 Players icon , ID pickupa : 1314!");
  244. format(j_string, sizeof(j_string), "AddStaticPickup(1314,1,%f,%f,%f);\r\n", x,y,z);
  245. J_pickup(j_string);
  246. GameTextForPlayer(playerid,"~w~pickup:~b~2 Player icon", 2000, 1);
  247. print(" Pickup kreiran | Vrsta pickupa : 2 Players icon , ID pickupa : 1314!");
  248. }
  249. case 17:
  250. {
  251. TogglePlayerControllable(playerid,1);
  252. GetPlayerPos(playerid, x, y, z);
  253. CreatePickup(1276, 1, x, y, z);
  254. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Tiki statue , ID pickupa : 1276!");
  255. format(j_string, sizeof(j_string), "AddStaticPickup(1276,1,%f,%f,%f);\r\n", x,y,z);
  256. J_pickup(j_string);
  257. GameTextForPlayer(playerid,"~w~pickup:~b~Tiki statue", 2000, 1);
  258. print(" Pickup kreiran | Vrsta pickupa : Tiki statue , ID pickupa : 1276!");
  259. }
  260. case 18:
  261. {
  262. TogglePlayerControllable(playerid,1);
  263. GetPlayerPos(playerid, x, y, z);
  264. CreatePickup(1310, 1, x, y, z);
  265. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Parachute (with leg straps) , ID pickupa : 1310!");
  266. format(j_string, sizeof(j_string), "AddStaticPickup(1310,1,%f,%f,%f);\r\n", x,y,z);
  267. J_pickup(j_string);
  268. GameTextForPlayer(playerid,"~w~pickup:~b~Parachute (with leg straps)", 2000, 1);
  269. print(" Pickup kreiran | Vrsta pickupa : Parachute (with leg straps) , ID pickupa : 1310!");
  270. }
  271. case 19:
  272. {
  273. TogglePlayerControllable(playerid,1);
  274. GetPlayerPos(playerid, x, y, z);
  275. CreatePickup(1318, 1, x, y, z);
  276. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Down arrow , ID pickupa : 1318!");
  277. format(j_string, sizeof(j_string), "AddStaticPickup(1318,1,%f,%f,%f);\r\n", x,y,z);
  278. J_pickup(j_string);
  279. GameTextForPlayer(playerid,"~w~pickup:~b~Down arrow", 2000, 1);
  280. print(" Pickup kreiran | Vrsta pickupa : Down arrow , ID pickupa : 1318!");
  281. }
  282. case 20:
  283. {
  284. TogglePlayerControllable(playerid,1);
  285. GetPlayerPos(playerid, x, y, z);
  286. CreatePickup(1279, 1, x, y, z);
  287. SendClientMessage(playerid,0x83BFBFFF," Pickup kreiran {FFFFFF} | Vrsta pickupa : Drug bundle , ID pickupa : 1279!");
  288. format(j_string, sizeof(j_string), "AddStaticPickup(1279,1,%f,%f,%f);\r\n", x,y,z);
  289. J_pickup(j_string);
  290. GameTextForPlayer(playerid,"~w~pickup:~b~Drug bundle", 2000, 1);
  291. print(" Pickup kreiran | Vrsta pickupa : Drug bundle , ID pickupa : 1279!");
  292. }
  293. }
  294. }
  295. }
  296. }
  297. }
Advertisement
Add Comment
Please, Sign In to add comment