Kyriakos123

Untitled

Feb 22nd, 2015
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4. #include <zcmd>
  5.  
  6. #define radio 1
  7.  
  8. #if defined FILTERSCRIPT
  9.  
  10. public OnFilterScriptInit()
  11. {
  12. print("\n--------------------------------------");
  13. print(" Radio system by [RIP]TheNewFuture");
  14. print("--------------------------------------\n");
  15. return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20. return 1;
  21. }
  22.  
  23. #else
  24.  
  25. #endif
  26.  
  27. CMD:radio(playerid,params[])
  28. {
  29. ShowPlayerDialog(playerid,radio,DIALOG_STYLE_LIST,"{00FF00}Live Radio","{FFFFFF}Trap Radio\nDubstep Radio\nDance Radio\nParty Radio\nHip Hop\nHard House\nStop radio","Select","Cancel");
  30. return 1;
  31. }
  32.  
  33. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  34. {
  35. if(dialogid == radio)
  36. {
  37. if(!response) return 1;
  38. switch(listitem)
  39. {
  40. case 0:
  41. {
  42. PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=165934");
  43. }
  44. case 1:
  45. {
  46. PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=338128");
  47. }
  48. case 2:
  49. {
  50. PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=17998");
  51. }
  52. case 3:
  53. {
  54. PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=694819");
  55. }
  56. case 4:
  57. {
  58. PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=312306");
  59. }
  60. case 5:
  61. {
  62. PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=881390");
  63. }
  64. case 6:
  65. {
  66. StopAudioStreamForPlayer(playerid);
  67. }
  68. }
  69. }
  70. return 1;
  71. }
Advertisement
Add Comment
Please, Sign In to add comment