Advertisement
aaronnot4u

music

Jul 23rd, 2012
2,137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.96 KB | None | 0 0
  1. // Music stream fs by AaronKillz
  2. #define FILTERSCRIPT
  3.  
  4. #include <a_samp>
  5. #include <zcmd>
  6. #if defined FILTERSCRIPT
  7.  
  8. public OnFilterScriptInit()
  9. {
  10.     print("\n--------------------------------------");
  11.     print(" Music FS by Killz");
  12.     print("--------------------------------------\n");
  13.     return 1;
  14. }
  15.  
  16. public OnFilterScriptExit()
  17. {
  18.     return 1;
  19. }
  20.  
  21. #else
  22.  
  23. main()
  24. {
  25.     print("\n----------------------------------");
  26.     print(" Blank Gamemode by your name here");
  27.     print("----------------------------------\n");
  28. }
  29.  
  30. #endif
  31.  
  32. CMD:radio(playerid, params[])
  33. {
  34.         ShowPlayerDialog(playerid, 12345, DIALOG_STYLE_LIST, "Pick a music genre", "Hip Hop\nDubstep\nElectronic\nPop\nRock", "Choose", "Cancel");
  35.         return 1;
  36. }
  37.  
  38. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  39. {
  40.     switch(dialogid) {
  41.         case 12345:
  42.         {
  43.             if(!response) return SendClientMessage(playerid, 0xFF330000, "No music selected.");
  44.             switch(listitem) {
  45.                 case 0:
  46.                 {
  47.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
  48.                     return 1;
  49.                 }
  50.                 case 1:
  51.                 {
  52.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=161884");
  53.                     return 1;
  54.                 }
  55.                 case 2:
  56.                 {
  57.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=577749");
  58.                     return 1;
  59.                 }
  60.                 case 3:
  61.                 {
  62.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=106390");
  63.                     return 1;
  64.                 }
  65.                 case 4:
  66.                 {
  67.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1274063");
  68.                     return 1;
  69.                 }
  70.             }
  71.         }
  72.     }
  73.     return 1;
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement