Advertisement
omgitsgodzilla

online radios V3

Apr 5th, 2012
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2.  
  3. #define FILTERSCRIPT
  4. #define radiodialog 1
  5.  
  6.  
  7.  
  8.  
  9. public OnPlayerCommandText(playerid, cmdtext[])
  10. {
  11.     if (strcmp(cmdtext, "/radio", true) == 0)
  12. {
  13.     ShowPlayerDialog(playerid, radiodialog, DIALOG_STYLE_LIST, "Radio Stations", "Alternative\nClassic rock\nMetal\nTechno\nHiphop\nDubstep\nJazz\nReggae\nDancepunk\nAdultcomedy\nNewage\nFunk\nStopmusic", "Listen", "Cancel");
  14. }
  15.     return 1;
  16. }
  17.  
  18. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  19. {
  20.     if(dialogid == radiodialog)
  21.     {
  22.         if(response)
  23.         {
  24.             if(listitem == 0)
  25.             {
  26.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=237394");
  27.             }
  28.             if(listitem == 1)
  29.             {
  30.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=285516");
  31.             }
  32.             if(listitem == 2)
  33.             {
  34.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2187022");
  35.             }
  36.             if(listitem == 3)
  37.             {
  38.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1377200");
  39.             }
  40.             if(listitem == 4)
  41.             {
  42.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
  43.             }
  44.             if(listitem == 5)
  45.             {
  46.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2057197");
  47.             }
  48.             if(listitem == 6)
  49.             {
  50.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=674096");
  51.             }
  52.             if(listitem == 7)
  53.             {
  54.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280855");
  55.             }
  56.             if(listitem == 8)
  57.             {
  58.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1267576");
  59.             }
  60.             if(listitem == 9)
  61.             {
  62.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=52807");
  63.             }
  64.             if(listitem == 10)
  65.             {
  66.                 PlayAudioStreamForPlayer(playerid, "http://173.193.202.125:15236/listen.mp3?authn5d554f84ea9b43d0eca5f44ff9a3ab1a");
  67.             }
  68.             if(listitem == 11)
  69.             {
  70.                 PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1269641");
  71.             }
  72.             if(listitem == 12)
  73.             {
  74.                 StopAudioStreamForPlayer(playerid);
  75.             }
  76.         }
  77.         return 1;
  78.     }
  79.     return 0;
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement