Guest User

Diisel Radio v1.0

a guest
Dec 4th, 2012
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.35 KB | None | 0 0
  1. /*
  2.     Filterscript name:
  3.             » Diisel Radio
  4.  
  5.     Version:
  6.             » 1.0
  7.  
  8.     Last update:
  9.             » 04/12/2012
  10.            
  11.     Made by:
  12.             » Diisel
  13. */
  14.  
  15. #include <a_samp>
  16. #include <zcmd>
  17.  
  18. #pragma tabsize 0
  19.  
  20. #if defined FILTERSCRIPT
  21.  
  22. public OnFilterScriptInit()
  23. {
  24.     print("\n----------------------------------");
  25.     print(" ......:Diisel Radio V1.0:......");
  26.     print("----------------------------------\n");
  27.     return 1;
  28. }
  29.  
  30. public OnFilterScriptExit()
  31. {
  32.     return 1;
  33. }
  34.  
  35. #endif
  36.  
  37. CMD:radio(playerid, params[])
  38. {
  39.     ShowPlayerDialog(playerid,111,DIALOG_STYLE_LIST,"Select radio station:", "{ffffff}Uuno raadio\n{ffffff}Power Hit Radio\n{ffffff}Energy FM\n{ffffff}Raadio Mania\n{ffffff}SkyPlus\n{ffffff}Star FM\n{ffffff}Spin FM\n{ff0000}Stop Radio", "Select", "Cancel");
  40.     return 1;
  41. }
  42.  
  43. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  44. {
  45.     if(dialogid == 111)
  46.     {
  47.          if(response)
  48.          {
  49.                 if(listitem == 0)// (0-Uuno Raadio)
  50.                 {//
  51.                 StopAudioStreamForPlayer(playerid);
  52.                 PlayAudioStreamForPlayer(playerid, "http://striiming.trio.ee/uuno.mp3.m3u");
  53.                 }
  54.                 if(listitem == 1)// (1-Power Hit Radio)
  55.                 {//
  56.                 StopAudioStreamForPlayer(playerid);
  57.                 PlayAudioStreamForPlayer(playerid, "http://194.106.119.241:8500/powerhit_low.mp3.m3u");
  58.                 }
  59.                 if(listitem == 2)// (2-Energy FM)
  60.                 {//
  61.                 StopAudioStreamForPlayer(playerid);
  62.                 PlayAudioStreamForPlayer(playerid, "http://194.106.119.241:8500/energyfm_hi.mp3.m3u");
  63.                 }
  64.                 if(listitem == 3)// (3-Mania Raadio)
  65.                 {
  66.                 StopAudioStreamForPlayer(playerid);
  67.                 PlayAudioStreamForPlayer(playerid, "http://icecast.linxtelecom.com:8000/mania.mp3.m3u");
  68.                 }
  69.                 if(listitem == 4)// (4-SkyPlus)
  70.                 {
  71.                 StopAudioStreamForPlayer(playerid);
  72.                 PlayAudioStreamForPlayer(playerid, "http://194.106.119.241:8500/skyplus_hi.mp3.m3u");
  73.                 }
  74.                 if(listitem == 5)// (5-Star FM)
  75.                 {
  76.                 StopAudioStreamForPlayer(playerid);
  77.                 PlayAudioStreamForPlayer(playerid, "http://194.106.119.241:8500/starfm_hi.mp3.m3u");
  78.                 }
  79.                 if(listitem == 6)// (6-Spin FM)
  80.                 {
  81.                 StopAudioStreamForPlayer(playerid);
  82.                 PlayAudioStreamForPlayer(playerid, "http://striiming.trio.ee/spinfm.mp3.m3u");
  83.                 }
  84.                 if(listitem == 7)// (STOP RADIO)
  85.                 {
  86.                 StopAudioStreamForPlayer(playerid);
  87.             }
  88.         }
  89.     }
  90. }
Advertisement
Add Comment
Please, Sign In to add comment