Guest User

Radio Streamer

a guest
Jun 2nd, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.12 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define FILTERSCRIPT
  4.  
  5. #define Stream 1
  6.  
  7. #define RED 0xFF0900FF
  8. #define BLUE 0x009BFFFF
  9.  
  10. public OnPlayerCommandText(playerid, cmdtext[])
  11. {
  12.     if (strcmp("/stream", cmdtext, true, 10) == 0)
  13.     {
  14.         ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Radio-Streamliste","Techno4EverFM\nYouFM\nDubstepFM\nTechnobaseFM\nNJoy\n1Live\nHardbaseFM\nI Love Radio\nI Love 2 Dance\nI Love Mashup","Anhören","Abbrechen");
  15.         return 1;
  16.     }
  17.  
  18.     if (strcmp("/stopstream", cmdtext, true, 10) == 0)
  19.     {
  20.         StopAudioStreamForPlayer(playerid);
  21.         GameTextForPlayer(playerid,"Der Stream wurde gestoppt !", 3000, 3);
  22.         return 1;
  23.     }
  24.     return 0;
  25. }
  26.  
  27. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  28. {
  29.     if(dialogid == 1)
  30.     {
  31.         if(response == 0)
  32.         {
  33.             SendClientMessage(playerid,RED,"Du hast Abgebrochen !");
  34.             return 1;
  35.         }
  36.  
  37.         if(response == 1)
  38.         {
  39.             if(listitem == 0)
  40.             {
  41.                 PlayAudioStreamForPlayer(playerid, "http://tunein.t4e.dj/main.pls");
  42.                 GameTextForPlayer(playerid,"Du hoerst nun Techno4EverFM !", 3000, 3);
  43.             }
  44.  
  45.             if(listitem == 1)
  46.             {
  47.                 PlayAudioStreamForPlayer(playerid, "http://metafiles.gl-systemhaus.de/hr/youfm_2.m3u");
  48.                 GameTextForPlayer(playerid,"Du hoerst nun YouFM !", 3000, 3);
  49.             }
  50.  
  51.             if(listitem == 2)
  52.             {
  53.                 PlayAudioStreamForPlayer(playerid, "http://www.dubstep.fm/listen.pls");
  54.                 GameTextForPlayer(playerid,"Du hoerst nun DubstepFM !", 3000, 3);
  55.             }
  56.  
  57.             if(listitem == 3)
  58.             {
  59.                 PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/dsl.pls");
  60.                 GameTextForPlayer(playerid,"Du hoerst nun TechnobaseFM !", 3000, 3);
  61.             }
  62.  
  63.             if(listitem == 4)
  64.             {
  65.                 PlayAudioStreamForPlayer(playerid, "http://www.ndr.de/resources/metadaten/audio/m3u/n-joy.m3u");
  66.                 GameTextForPlayer(playerid,"Du hoerst nun NJoy !", 3000, 3);
  67.             }
  68.  
  69.             if(listitem == 5)
  70.             {
  71.                 PlayAudioStreamForPlayer(playerid, "http://www.wdr.de/wdrlive/media/einslive.m3u");
  72.                 GameTextForPlayer(playerid,"Du hoerst nun 1Live !", 3000, 3);
  73.             }
  74.  
  75.             if(listitem == 6)
  76.             {
  77.                 PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/dsl.pls");
  78.                 GameTextForPlayer(playerid,"Du hoerst nun HardbaseFM !", 3000, 3);
  79.             }
  80.  
  81.             if(listitem == 7)
  82.             {
  83.                 PlayAudioStreamForPlayer(playerid, "http://www.iloveradio.de//listen.m3u");
  84.                 GameTextForPlayer(playerid,"Du hoerst nun I Love Radio !", 3000, 3);
  85.             }
  86.  
  87.             if(listitem == 8)
  88.             {
  89.                 PlayAudioStreamForPlayer(playerid, "http://87.230.53.70/iloveradio2.mp3");
  90.                 GameTextForPlayer(playerid,"Du hoerst nun I Love 2 Dance !", 3000, 3);
  91.             }
  92.  
  93.             if(listitem == 9)
  94.             {
  95.                 PlayAudioStreamForPlayer(playerid, "http://80.237.158.62/iloveradio5.mp3");
  96.                 GameTextForPlayer(playerid,"Du hoerst nun I Love Mashup !", 3000, 3);
  97.             }
  98.  
  99.             return 1;
  100.         }
  101.     }
  102.     return 1;
  103. }
Add Comment
Please, Sign In to add comment