BoxBoy

Untitled

Feb 15th, 2014
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.34 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //////////////////////////////////////////////////////
  4. // //
  5. // Audio Stream Filter Script //
  6. // //
  7. // BY //
  8. // //
  9. // BoxBonik(BoxBoy) //
  10. // //
  11. //////////////////////////////////////////////////////
  12. #define COLOR_YELLOW 0xFFFF00AA
  13. #define FILTERSCRIPT
  14. #define DIALOG_MUSIC 12
  15. #define DIALOG_MUSIC_PLAYLISTS 13
  16. #define DIALOG_MUSIC_MP3 14
  17. #define DIALOG_MUSIC_HITS 15
  18.  
  19. #include <a_samp>
  20. #include <zcmd>
  21.  
  22. #if defined FILTERSCRIPT
  23.  
  24. public OnFilterScriptInit()
  25. {
  26. print("\n--------------------------------------");
  27. print(" NewAudioFS V.1");
  28. print("By BoxBonik(BoxBoy)");
  29. print("--------------------------------------\n");
  30. return 1;
  31. }
  32.  
  33. public OnFilterScriptExit()
  34. {
  35. return 1;
  36. }
  37.  
  38. #else
  39.  
  40. main()
  41. {
  42. print("\n----------------------------------");
  43. print(" Blank Gamemode by your name here");
  44. print("----------------------------------\n");
  45. }
  46.  
  47. #endif
  48.  
  49. public OnGameModeInit()
  50. {
  51. // Don't use these lines if it's a filterscript
  52. SetGameModeText("Blank Script");
  53. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  54. return 1;
  55. }
  56.  
  57. public OnGameModeExit()
  58. {
  59. return 1;
  60. }
  61.  
  62. public OnPlayerRequestClass(playerid, classid)
  63. {
  64. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  65. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  66. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  67. return 1;
  68. }
  69.  
  70. public OnPlayerConnect(playerid)
  71. {
  72. return 1;
  73. }
  74.  
  75. public OnPlayerDisconnect(playerid, reason)
  76. {
  77. return 1;
  78. }
  79.  
  80. public OnPlayerSpawn(playerid)
  81. {
  82. return 1;
  83. }
  84.  
  85. public OnPlayerDeath(playerid, killerid, reason)
  86. {
  87. return 1;
  88. }
  89.  
  90. public OnVehicleSpawn(vehicleid)
  91. {
  92. return 1;
  93. }
  94.  
  95. public OnVehicleDeath(vehicleid, killerid)
  96. {
  97. return 1;
  98. }
  99.  
  100. public OnPlayerText(playerid, text[])
  101. {
  102. return 1;
  103. }
  104. public OnPlayerCommandText(playerid, cmdtext[])
  105. {
  106. return 1;
  107. }
  108. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  109. {
  110. return 1;
  111. }
  112.  
  113. public OnPlayerExitVehicle(playerid, vehicleid)
  114. {
  115. return 1;
  116. }
  117.  
  118. public OnPlayerStateChange(playerid, newstate, oldstate)
  119. {
  120. return 1;
  121. }
  122.  
  123. public OnPlayerEnterCheckpoint(playerid)
  124. {
  125. return 1;
  126. }
  127.  
  128. public OnPlayerLeaveCheckpoint(playerid)
  129. {
  130. return 1;
  131. }
  132.  
  133. public OnPlayerEnterRaceCheckpoint(playerid)
  134. {
  135. return 1;
  136. }
  137.  
  138. public OnPlayerLeaveRaceCheckpoint(playerid)
  139. {
  140. return 1;
  141. }
  142.  
  143. public OnRconCommand(cmd[])
  144. {
  145. return 1;
  146. }
  147.  
  148. public OnPlayerRequestSpawn(playerid)
  149. {
  150. return 1;
  151. }
  152.  
  153. public OnObjectMoved(objectid)
  154. {
  155. return 1;
  156. }
  157.  
  158. public OnPlayerObjectMoved(playerid, objectid)
  159. {
  160. return 1;
  161. }
  162.  
  163. public OnPlayerPickUpPickup(playerid, pickupid)
  164. {
  165. return 1;
  166. }
  167.  
  168. public OnVehicleMod(playerid, vehicleid, componentid)
  169. {
  170. return 1;
  171. }
  172.  
  173. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  174. {
  175. return 1;
  176. }
  177.  
  178. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  179. {
  180. return 1;
  181. }
  182.  
  183. public OnPlayerSelectedMenuRow(playerid, row)
  184. {
  185. return 1;
  186. }
  187.  
  188. public OnPlayerExitedMenu(playerid)
  189. {
  190. return 1;
  191. }
  192.  
  193. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  194. {
  195. return 1;
  196. }
  197.  
  198. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  199. {
  200. return 1;
  201. }
  202.  
  203. public OnRconLoginAttempt(ip[], password[], success)
  204. {
  205. return 1;
  206. }
  207.  
  208. public OnPlayerUpdate(playerid)
  209. {
  210. return 1;
  211. }
  212.  
  213. public OnPlayerStreamIn(playerid, forplayerid)
  214. {
  215. return 1;
  216. }
  217.  
  218. public OnPlayerStreamOut(playerid, forplayerid)
  219. {
  220. return 1;
  221. }
  222.  
  223. public OnVehicleStreamIn(vehicleid, forplayerid)
  224. {
  225. return 1;
  226. }
  227.  
  228. public OnVehicleStreamOut(vehicleid, forplayerid)
  229. {
  230. return 1;
  231. }
  232.  
  233. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  234. {
  235. if(dialogid == DIALOG_MUSIC)
  236. {
  237. if(response)
  238. {
  239. switch(listitem)
  240. {
  241. case 0:
  242. {
  243. ShowPlayerDialog(playerid, DIALOG_MUSIC_PLAYLISTS, DIALOG_STYLE_LIST, "Radio Stations", "Mixed Rock", "Play","Cancel");
  244. }
  245. case 1:
  246. {
  247. ShowPlayerDialog(playerid, DIALOG_MUSIC_HITS, DIALOG_STYLE_LIST, "2014 Hit Songs", "Lady Gaga - Applause\nLana Del Rey - Summertime Sadness\nLorde - Royals\nMiley Cyrus - Wrecking Ball\nWake Me Up -- Avicii ft. Aloe Blacc\nBlurred Lines - Robin Thicke\nCapital Cities - Safe & Sound\nDrake - Hold On We're Going Home\nJay Z FT Justin Timberlake - Holy Grail\nKaty Perry - Roar", "Play", "Back");
  248. }
  249. }
  250. }
  251. }
  252. if(dialogid == DIALOG_MUSIC_PLAYLISTS)
  253. {
  254. if(response)
  255. {
  256. switch(listitem)
  257. {
  258. case 0:
  259. {
  260. PlayAudioStreamForPlayer(playerid, "http://www.radioparadise.com/musiclinks/rp_128.m3u");
  261. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  262. }
  263. }
  264. }
  265. else return ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music", "1.Radio Playlists\n3.2014 Hit Songs", "Open", "Cancel");
  266. }
  267. if(dialogid == DIALOG_MUSIC_HITS)
  268. {
  269. if(response)
  270. {
  271. switch(listitem)
  272. {
  273. case 0:
  274. {
  275. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/2c77kaegt5/Lady_Gaga_-_Applause_Official_.mp3");
  276. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  277. }
  278. case 1:
  279. {
  280. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/1v4l82x4nu/Lana_Del_Rey_-_Summertime_Sadness.mp3");
  281. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  282. }
  283. case 2:
  284. {
  285. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/11os4ugqn1/Lorde_-_Royals.mp3");
  286. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  287. }
  288. case 3:
  289. {
  290. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/i803retrlq/Miley_Cyrus_-_Wrecking_Ball.mp3");
  291. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  292. }
  293. case 4:
  294. {
  295. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/hgfd63p8n8/Wake_Me_Up_--_Avicii_ft._Aloe_Blacc_Lyrics.mp3");
  296. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  297. }
  298. case 5:
  299. {
  300. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/a7fl3k6hr3/Blurred_Lines_-_Robin_Thicke_Lyrics.mp3");
  301. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  302. }
  303. case 6:
  304. {
  305. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/ub1g2zvsj8/Capital_Cities_-_Safe_and_Sound.mp3");
  306. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  307. }
  308. case 7:
  309. {
  310. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/66h4m2mg7p/Drake_-_Hold_On_We_re_Going_Home_Lyrics_.mp3");
  311. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  312. }
  313. case 8:
  314. {
  315. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/wldmg72u3z/JAY_Z_and_quot_Holy_Grail_and_quot_featuring_Justin_Timberlake.mp3");
  316. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  317. }
  318. case 9:
  319. {
  320. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/olwfhi7yxh/Katy_Perry_-_Roar_Official_.mp3");
  321. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  322. }
  323. }
  324. }
  325. else return ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music", "1.Radio Playlists\n3.2014 Hit Songs", "Open", "Cancel");
  326. }
  327. return 1;
  328. }
  329. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  330. {
  331. return 1;
  332. }
  333. CMD:music(playerid, params[])
  334. {
  335. ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music", "Radio Stations\n2014 Hit Songs", "Open", "Cancel");
  336. return 1;
  337. }
  338. CMD:stopmusic(playerid, params[])
  339. {
  340. StopAudioStreamForPlayer(playerid);
  341. SendClientMessage(playerid, COLOR_YELLOW, "You have stopped the audio stream!");
  342. return 1;
  343. }
Advertisement
Add Comment
Please, Sign In to add comment