BoxBoy

Untitled

Feb 15th, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.98 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. #define DIALOG_MUSIC_HITSS 16
  19. #define DIALOG_MUSIC_HITSSS 17
  20.  
  21. #include <a_samp>
  22. #include <zcmd>
  23.  
  24. #if defined FILTERSCRIPT
  25.  
  26. public OnFilterScriptInit()
  27. {
  28. print("\n--------------------------------------");
  29. print(" NewAudioFS V.1");
  30. print("By BoxBonik(BoxBoy)");
  31. print("--------------------------------------\n");
  32. return 1;
  33. }
  34.  
  35. public OnFilterScriptExit()
  36. {
  37. return 1;
  38. }
  39.  
  40. #else
  41.  
  42. main()
  43. {
  44. print("\n----------------------------------");
  45. print(" Blank Gamemode by your name here");
  46. print("----------------------------------\n");
  47. }
  48.  
  49. #endif
  50.  
  51. public OnGameModeInit()
  52. {
  53. // Don't use these lines if it's a filterscript
  54. SetGameModeText("Blank Script");
  55. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  56. return 1;
  57. }
  58.  
  59. public OnGameModeExit()
  60. {
  61. return 1;
  62. }
  63.  
  64. public OnPlayerRequestClass(playerid, classid)
  65. {
  66. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  67. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  68. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  69. return 1;
  70. }
  71.  
  72. public OnPlayerConnect(playerid)
  73. {
  74. return 1;
  75. }
  76.  
  77. public OnPlayerDisconnect(playerid, reason)
  78. {
  79. return 1;
  80. }
  81.  
  82. public OnPlayerSpawn(playerid)
  83. {
  84. return 1;
  85. }
  86.  
  87. public OnPlayerDeath(playerid, killerid, reason)
  88. {
  89. return 1;
  90. }
  91.  
  92. public OnVehicleSpawn(vehicleid)
  93. {
  94. return 1;
  95. }
  96.  
  97. public OnVehicleDeath(vehicleid, killerid)
  98. {
  99. return 1;
  100. }
  101.  
  102. public OnPlayerText(playerid, text[])
  103. {
  104. return 1;
  105. }
  106. public OnPlayerCommandText(playerid, cmdtext[])
  107. {
  108. return 1;
  109. }
  110. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  111. {
  112. return 1;
  113. }
  114.  
  115. public OnPlayerExitVehicle(playerid, vehicleid)
  116. {
  117. return 1;
  118. }
  119.  
  120. public OnPlayerStateChange(playerid, newstate, oldstate)
  121. {
  122. return 1;
  123. }
  124.  
  125. public OnPlayerEnterCheckpoint(playerid)
  126. {
  127. return 1;
  128. }
  129.  
  130. public OnPlayerLeaveCheckpoint(playerid)
  131. {
  132. return 1;
  133. }
  134.  
  135. public OnPlayerEnterRaceCheckpoint(playerid)
  136. {
  137. return 1;
  138. }
  139.  
  140. public OnPlayerLeaveRaceCheckpoint(playerid)
  141. {
  142. return 1;
  143. }
  144.  
  145. public OnRconCommand(cmd[])
  146. {
  147. return 1;
  148. }
  149.  
  150. public OnPlayerRequestSpawn(playerid)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnObjectMoved(objectid)
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerObjectMoved(playerid, objectid)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnPlayerPickUpPickup(playerid, pickupid)
  166. {
  167. return 1;
  168. }
  169.  
  170. public OnVehicleMod(playerid, vehicleid, componentid)
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  181. {
  182. return 1;
  183. }
  184.  
  185. public OnPlayerSelectedMenuRow(playerid, row)
  186. {
  187. return 1;
  188. }
  189.  
  190. public OnPlayerExitedMenu(playerid)
  191. {
  192. return 1;
  193. }
  194.  
  195. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  196. {
  197. return 1;
  198. }
  199.  
  200. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnRconLoginAttempt(ip[], password[], success)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnPlayerUpdate(playerid)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnPlayerStreamIn(playerid, forplayerid)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnPlayerStreamOut(playerid, forplayerid)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnVehicleStreamIn(vehicleid, forplayerid)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnVehicleStreamOut(vehicleid, forplayerid)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  236. {
  237. if(dialogid == DIALOG_MUSIC)
  238. {
  239. if(response)
  240. {
  241. switch(listitem)
  242. {
  243. case 0:
  244. {
  245. ShowPlayerDialog(playerid, DIALOG_MUSIC_PLAYLISTS, DIALOG_STYLE_LIST, "Radio Stations", "Mixed Rock", "Play","Cancel");
  246. }
  247. case 1:
  248. {
  249. ShowPlayerDialog(playerid, DIALOG_MUSIC_HITS, DIALOG_STYLE_LIST, "2013 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");
  250. }
  251. case 2:
  252. {
  253. ShowPlayerDialog(playerid, DIALOG_MUSIC_HITSS, DIALOG_STYLE_LIST, "2012 Hit Songs", "LMFAO - Sexy and i know it\nRack City - Tyga\nTrain - Drive By\nCarly Rae Jepsen - Call Me Maybe\nWhistle - Flo Rida\nDrake ft. Rihanna - Take Care\nYoung, Wild And Free - Wiz Khalifa feat. Snoop Dogg\nFlo Rida - Good Feeling\nJay-Z ft Kanye West - Niggas In Paris\nKaty Perry - The One That Got Away","Play","Back");
  254. }
  255. case 3:
  256. {
  257. ShowPlayerDialog(playerid, DIALOG_MUSIC_HITSSS, DIALOG_STYLE_LIST, "2011 Hit Songs", "Kesha - Blow\nBorn This Way- Lady Gaga\nLupe Fiasco - The Show Goes on\nGrenade-Bruno Mars\nGym Class Heroes - Stereo Hearts\nParty Rock Anthem\nI Need A Doctor - Eminem ft. Dr. Dre And Skylar Grey\nWiz Khalifa - No Sleep\nKaty Perry - ET\nWiz Khalifa- Black and Yellow","Play","Back");
  258. }
  259. }
  260. }
  261. }
  262. if(dialogid == DIALOG_MUSIC_PLAYLISTS)
  263. {
  264. if(response)
  265. {
  266. switch(listitem)
  267. {
  268. case 0:
  269. {
  270. PlayAudioStreamForPlayer(playerid, "http://www.radioparadise.com/musiclinks/rp_128.m3u");
  271. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  272. }
  273. }
  274. }
  275. else return ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music", "1.Radio Playlists\n2.2013 Hit Songs\n3.2012 Hit Songs\n4.2011 Hit Songs", "Open", "Cancel");
  276. }
  277. if(dialogid == DIALOG_MUSIC_HITSSS)
  278. {
  279. if(response)
  280. {
  281. switch(listitem)
  282. {
  283. case 0:
  284. {
  285. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/8ih22w6d45/Kesha_-_Blow_Lyrics.mp3");
  286. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  287. }
  288. case 1:
  289. {
  290. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/ds3c3zkbsz/Born_This_Way-_Lady_Gaga_LYRICS.mp3");
  291. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  292. }
  293. case 2:
  294. {
  295. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/b4nig4ey4g/Lupe_Fiasco_-_The_Show_Goes_on_lyrics_.mp3");
  296. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  297. }
  298. case 3:
  299. {
  300. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/6dd9b7ni9z/Grenade-Bruno_Mars_Lyrics.mp3");
  301. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  302. }
  303. case 4:
  304. {
  305. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/n7mreil6or/Gym_Class_Heroes_-_Stereo_Hearts_Lyrics.mp3");
  306. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  307. }
  308. case 5:
  309. {
  310. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/gvmfdqbhvd/Party_Rock_Anthem_Audio_.mp3");
  311. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  312. }
  313. case 6:
  314. {
  315. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/qylbo15cqc/I_Need_A_Doctor_-_Eminem_ft._Dr._Dre_and_amp_Skylar_Grey_Lyrics.mp3");
  316. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  317. }
  318. case 7:
  319. {
  320. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/ctdfm61y07/Wiz_Khalifa_-_No_Sleep_HD_LYRICS_.mp3");
  321. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  322. }
  323. case 8:
  324. {
  325. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/qgdx9ku18q/Katy_Perry_-_ET_Lyrics..mp3");
  326. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  327. }
  328. case 9:
  329. {
  330. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/dz6reiw0yy/Wiz_Khalifa-_Black_and_Yellow_LYRICS_.mp3");
  331. SendClientMessage(playerid, COLOR_YELLOW, "You have started a AudioSteam");
  332. }
  333. }
  334. }
  335. else return ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music", "1.Radio Playlists\n2.2013 Hit Songs\n3.2012 Hit Songs\n4.2011 Hit Songs", "Open", "Cancel");
  336. }
  337. if(dialogid == DIALOG_MUSIC_HITSS)
  338. {
  339. if(response)
  340. {
  341. switch(listitem)
  342. {
  343. case 0:
  344. {
  345. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/fs33xwhxur/LMFAO_-_Sexy_and_i_know_it_lyrics_NEW.mp3");
  346. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  347. }
  348. case 1:
  349. {
  350. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/u75m71cknm/Rack_City_-_Tyga_-_Lyrics.mp3");
  351. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  352. }
  353. case 2:
  354. {
  355. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/504v3dai7q/Train_-_Drive_By_Lyrics.mp3");
  356. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  357. }
  358. case 3:
  359. {
  360. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/ln8r93xtd8/Carly_Rae_Jepsen_-_Call_Me_Maybe_LYRICS_-_New_Single_.mp3");
  361. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  362. }
  363. case 4:
  364. {
  365. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/ouhqlyxqxe/Whistle_-_Flo_Rida_-_Lyrics.mp3");
  366. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  367. }
  368. case 5:
  369. {
  370. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/lobvxvlgdd/Drake_ft._Rihanna_-_Take_Care_LYRICS_.mp3");
  371. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  372. }
  373. case 6:
  374. {
  375. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/1zbx0r6fo3/Young_Wild_and_amp_Free_Lyrics_-_Wiz_Khalifa_feat._Snoop_Dogg.mp3");
  376. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  377. }
  378. case 7:
  379. {
  380. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/9rydl3npcc/Flo_Rida_-_Good_Feeling_Lyrics_on_screen_.mp3");
  381. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  382. }
  383. case 8:
  384. {
  385. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/v83nunvfef/Jay-Z_ft_Kanye_West_-_Niggas_In_Paris_LYRICS_ON_SCREEN_HD_.mp3");
  386. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  387. }
  388. case 9:
  389. {
  390. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/yczouprm99/Katy_Perry_-_The_One_That_Got_Away_Lyrics.mp3");
  391. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  392. }
  393. }
  394. }
  395. else return ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music", "1.Radio Playlists\n2.2013 Hit Songs\n3.2012 Hit Songs\n4.2011 Hit Songs", "Open", "Cancel");
  396. }
  397. if(dialogid == DIALOG_MUSIC_HITS)
  398. {
  399. if(response)
  400. {
  401. switch(listitem)
  402. {
  403. case 0:
  404. {
  405. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/2c77kaegt5/Lady_Gaga_-_Applause_Official_.mp3");
  406. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  407. }
  408. case 1:
  409. {
  410. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/1v4l82x4nu/Lana_Del_Rey_-_Summertime_Sadness.mp3");
  411. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  412. }
  413. case 2:
  414. {
  415. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/11os4ugqn1/Lorde_-_Royals.mp3");
  416. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  417. }
  418. case 3:
  419. {
  420. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/i803retrlq/Miley_Cyrus_-_Wrecking_Ball.mp3");
  421. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  422. }
  423. case 4:
  424. {
  425. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/hgfd63p8n8/Wake_Me_Up_--_Avicii_ft._Aloe_Blacc_Lyrics.mp3");
  426. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  427. }
  428. case 5:
  429. {
  430. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/a7fl3k6hr3/Blurred_Lines_-_Robin_Thicke_Lyrics.mp3");
  431. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  432. }
  433. case 6:
  434. {
  435. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/ub1g2zvsj8/Capital_Cities_-_Safe_and_Sound.mp3");
  436. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  437. }
  438. case 7:
  439. {
  440. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/66h4m2mg7p/Drake_-_Hold_On_We_re_Going_Home_Lyrics_.mp3");
  441. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  442. }
  443. case 8:
  444. {
  445. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/wldmg72u3z/JAY_Z_and_quot_Holy_Grail_and_quot_featuring_Justin_Timberlake.mp3");
  446. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  447. }
  448. case 9:
  449. {
  450. PlayAudioStreamForPlayer(playerid, "http://k007.kiwi6.com/hotlink/olwfhi7yxh/Katy_Perry_-_Roar_Official_.mp3");
  451. SendClientMessage(playerid, COLOR_YELLOW, "You have started a Audio Stream");
  452. }
  453. }
  454. }
  455. else return ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music", "1.Radio Playlists\n2.2013 Hit Songs\n3.2012 Hit Songs\n4.2011 Hit Songs", "Open", "Cancel");
  456. }
  457. return 1;
  458. }
  459. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  460. {
  461. return 1;
  462. }
  463. CMD:music(playerid, params[])
  464. {
  465. ShowPlayerDialog(playerid, DIALOG_MUSIC, DIALOG_STYLE_LIST, "Music", "Radio Stations\n2014 Hit Songs\n2012 Hit Songs\n2011 Hit Songs", "Open", "Cancel");
  466. return 1;
  467. }
  468. CMD:stopmusic(playerid, params[])
  469. {
  470. StopAudioStreamForPlayer(playerid);
  471. SendClientMessage(playerid, COLOR_YELLOW, "You have stopped the audio stream!");
  472. return 1;
Advertisement
Add Comment
Please, Sign In to add comment