Advertisement
DominikMarvLisy

Online Radio Player 2.0

Nov 26th, 2013
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 18.58 KB | None | 0 0
  1. /*
  2.  * Online Radio Player 2.0
  3.  * © by Dominik 'MARV' Lisy
  4.  * Prosím, neprepisovať autora.
  5.  *
  6.  */
  7.  
  8. #include a_samp
  9. #include infobox //By isigar
  10. #include zcmd //By Y_Less
  11.  
  12. //=Public=======================================================================
  13. public OnPlayerConnect(playerid)
  14. {
  15.     InfoBoxInit(playerid);
  16.     return 1;
  17. }
  18.  
  19. public OnPlayerDisconnect(playerid)
  20. {
  21.     InfoBoxExit(playerid);
  22.     return 1;
  23. }
  24.  
  25. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  26. {
  27.     new auto = GetPlayerVehicleID(playerid);
  28.     if (newkeys & KEY_SUBMISSION)
  29.     {
  30.         if (GetPlayerState(playerid) == 2)
  31.         {
  32.             if(GetVehicleModel(auto) == 481 || GetVehicleModel(auto) == 509 || GetVehicleModel(auto) == 510)
  33.             {
  34.                 ShowInfoBox(playerid,"Online Radio","Toto vozidlo nepodporuje radio!",5000);
  35.             }
  36.             else
  37.             {
  38.                 ShowPlayerDialog(playerid,100,DIALOG_STYLE_LIST,"**Online Radio**","{3366CC}Slovenske stanice\n{3366CC}Ceske stanice\n{288150}Nahodny vyber\n{FF3333}Vypnut radio","Vyber","Koniec");
  39.             }
  40.         }
  41.         else
  42.         {
  43.             ShowInfoBox(playerid,"Online Radio","Niesi vodič!",5000);
  44.         }
  45.     }
  46.     return 1;
  47. }
  48.  
  49. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  50. {  
  51.     ShowInfoBox(playerid,"Online Radio","Radio si zapnes tlacitkom +",5000);
  52.     return 1;
  53. }
  54.  
  55. public OnPlayerExitVehicle(playerid, vehicleid)
  56. {
  57.     StopAudioStreamForPlayer(playerid);
  58.     return 1;
  59. }
  60. //=Dialog=======================================================================
  61. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  62. {
  63.     switch(dialogid)
  64.     {
  65.     case 100:
  66.     {
  67.         if(response)
  68.         {
  69.             if(listitem == 0)
  70.             {
  71.                 ShowPlayerDialog(playerid,101,DIALOG_STYLE_LIST,"{0033FF}**Online Radio**","Europa 2\nFunRadio\nFox Radio\nRadio Expres\nJemne Melodie\nRadio Slovensko\nRegina BA\nRegina BB\nRegina KE\nInternacional\nKlasika\nJunior\nViva\nLumen\nPatria","Vyber","Koniec");
  72.             }
  73.  
  74.             if(listitem == 1)
  75.             {
  76.                 ShowPlayerDialog(playerid,102,DIALOG_STYLE_LIST,"{0033FF}**Online Radio**","Europa 2\nFajn Radio\nKiss\nRock Zone\nImpuls\nDance\nBlanik\nBeat\nHumor\nHipHopVibes\nMetalica\nCountry\nDepeche Mode\nClubbeat\nGroovy House","Vyber","Koniec");
  77.             }
  78.            
  79.             if(listitem == 2)
  80.             {
  81.                 switch(random(29))
  82.                 {
  83.                     case 0:
  84.                     {
  85.                         StopAudioStreamForPlayer(playerid);
  86.                         PlayAudioStreamForPlayer(playerid,"http://ice2.europa2.sk/fm-europa2sk-128");// Europa 2
  87.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Europu 2", 5000, 1);
  88.                     }
  89.  
  90.                     case 1:
  91.                     {
  92.                         StopAudioStreamForPlayer(playerid);
  93.                         PlayAudioStreamForPlayer(playerid,"http://icecast3.play.cz/evropa2-128.mp3.m3u");// Europa 2
  94.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Europa 2", 5000, 1);
  95.                     }
  96.  
  97.                     case 2:
  98.                     {
  99.                         StopAudioStreamForPlayer(playerid);
  100.                         PlayAudioStreamForPlayer(playerid,"http://stream.funradio.sk:8000/fun128.mp3");// FunRadio
  101.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ FunRadio", 5000, 1);
  102.                     }
  103.  
  104.                     case 3:
  105.                     {
  106.                         StopAudioStreamForPlayer(playerid);
  107.                         PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz:8000/fajn128.mp3");// Fajn Radio
  108.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Fajn Radio", 5000, 1);
  109.                     }
  110.  
  111.                     case 4:
  112.                     {
  113.                         StopAudioStreamForPlayer(playerid);
  114.                         PlayAudioStreamForPlayer(playerid,"http://sc.foxradio.cz:8888/");// Fox Radio
  115.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Fox Radio", 5000, 1);
  116.                     }
  117.  
  118.                     case 5:
  119.                     {
  120.                         StopAudioStreamForPlayer(playerid);
  121.                         PlayAudioStreamForPlayer(playerid,"http://85.159.106.242:8000/kissmp3_128.mp3");// Radio Kiss
  122.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Kiss", 5000, 1);
  123.                     }
  124.  
  125.                     case 6:
  126.                     {
  127.                         StopAudioStreamForPlayer(playerid);
  128.                         PlayAudioStreamForPlayer(playerid,"http://85.248.7.162:8000/96.mp3");// Radio Expres
  129.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Expres", 5000, 1);
  130.                     }
  131.  
  132.                     case 7:
  133.                     {
  134.                         StopAudioStreamForPlayer(playerid);
  135.                         PlayAudioStreamForPlayer(playerid,"http://icecast6.play.cz/fm-impuls-128.mp3");// Radio Impuls
  136.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Impuls", 5000, 1);
  137.                     }
  138.  
  139.                     case 8:
  140.                     {
  141.                         StopAudioStreamForPlayer(playerid);
  142.                         PlayAudioStreamForPlayer(playerid,"http://www.jemnemelodie.sk:8000");// Jemne Melodie
  143.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Jemne Melodie", 5000, 1);
  144.                     }
  145.  
  146.                     case 9:
  147.                     {
  148.                         StopAudioStreamForPlayer(playerid);
  149.                         PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/dance128.mp3");// Radio Dance
  150.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Dance", 5000, 1);
  151.                     }
  152.  
  153.                     case 10:
  154.                     {
  155.                         StopAudioStreamForPlayer(playerid);
  156.                         PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/slovensko/slovensko_128.mp3.m3u");// Radio Slovensko
  157.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Slovensko", 5000, 1);
  158.                     }
  159.  
  160.                     case 11:
  161.                     {
  162.                         StopAudioStreamForPlayer(playerid);
  163.                         PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/blanikfm128.mp3");// Radio Blanik
  164.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Blanik", 5000, 1);
  165.                     }
  166.  
  167.                     case 12:
  168.                     {
  169.                         StopAudioStreamForPlayer(playerid);
  170.                         PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginaba/regina_ba_128.mp3.m3u");// Radio Regina BA
  171.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina BA", 5000, 1);
  172.                     }
  173.  
  174.                     case 13:
  175.                     {
  176.                         StopAudioStreamForPlayer(playerid);
  177.                         PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz:8000/beat128.mp3");// Radio Beat
  178.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Beat", 5000, 1);
  179.                     }
  180.  
  181.                     case 14:
  182.                     {
  183.                         StopAudioStreamForPlayer(playerid);
  184.                         PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginabb/regina_bb_128.mp3.m3u");// Radio Regina BB
  185.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina BB", 5000, 1);
  186.                     }
  187.  
  188.                     case 15:
  189.                     {
  190.                         StopAudioStreamForPlayer(playerid);
  191.                         PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/humor128.mp3");// Radio Humor
  192.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Humor", 5000, 1);
  193.                     }
  194.  
  195.                     case 16:
  196.                     {
  197.                         StopAudioStreamForPlayer(playerid);
  198.                         PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginake/regina_ke_128.mp3.m3u");// Radio Regina KE
  199.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina KE", 5000, 1);
  200.                     }
  201.  
  202.                     case 17:
  203.                     {
  204.                         StopAudioStreamForPlayer(playerid);
  205.                         PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/hiphopvibes128.mp3");// Radio HipHopVibes
  206.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio HipHopVibes", 5000, 1);
  207.                     }
  208.  
  209.                     case 18:
  210.                     {
  211.                         StopAudioStreamForPlayer(playerid);
  212.                         PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/rsi/rsi_128.mp3.m3u");// Radio Internacional
  213.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Internacional", 5000, 1);
  214.                     }
  215.  
  216.                     case 19:
  217.                     {
  218.                         StopAudioStreamForPlayer(playerid);
  219.                         PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/metallica128.mp3");// Radio Metalica
  220.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Metalica", 5000, 1);
  221.                     }
  222.  
  223.                     case 20:
  224.                     {
  225.                         StopAudioStreamForPlayer(playerid);
  226.                         PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/klasika/klasika_128.mp3.m3u");// Radio Klasika
  227.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Klasika", 5000, 1);
  228.                     }
  229.  
  230.                     case 21:
  231.                     {
  232.                         StopAudioStreamForPlayer(playerid);
  233.                         PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/country128.mp3");// Radio Country
  234.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Country", 5000, 1);
  235.                     }
  236.  
  237.                     case 22:
  238.                     {
  239.                         StopAudioStreamForPlayer(playerid);
  240.                         PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/junior/junior_128.mp3.m3u");// Radio Junior
  241.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Junior", 5000, 1);
  242.                     }
  243.  
  244.                     case 23:
  245.                     {
  246.                         StopAudioStreamForPlayer(playerid);
  247.                         PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/depeche128.mp3");// Radio Depeche Mode
  248.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Depeche Mode", 5000, 1);
  249.                     }
  250.  
  251.                     case 24:
  252.                     {
  253.                         StopAudioStreamForPlayer(playerid);
  254.                         PlayAudioStreamForPlayer(playerid,"http://85.159.106.242:8000/vivastream64.mp3");// Radio Viva
  255.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Viva", 5000, 1);
  256.                     }
  257.  
  258.                     case 25:
  259.                     {
  260.                         StopAudioStreamForPlayer(playerid);
  261.                         PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/clubbeat128.mp3");// Radio Clubbeat
  262.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Clubbeat", 5000, 1);
  263.                     }
  264.  
  265.                     case 26:
  266.                     {
  267.                         StopAudioStreamForPlayer(playerid);
  268.                         PlayAudioStreamForPlayer(playerid,"http://audio.lumen.sk:8000/live128.mp3");// Radio Lumen
  269.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Lumen", 5000, 1);
  270.                     }
  271.  
  272.                     case 27:
  273.                     {
  274.                         StopAudioStreamForPlayer(playerid);
  275.                         PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/ghouse128.mp3");// Radio Groovy House
  276.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Groovy House", 5000, 1);
  277.                     }
  278.  
  279.                     case 28:
  280.                     {
  281.                         StopAudioStreamForPlayer(playerid);
  282.                         PlayAudioStreamForPlayer(playerid,"http://live.slovakradio.sk:8000/Patria_128.mp3");// Radio Patria
  283.                         GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Patria", 5000, 1);
  284.                     }
  285.                 }
  286.             }
  287.            
  288.             if(listitem == 3)
  289.             {
  290.                 StopAudioStreamForPlayer(playerid);
  291.                 ShowInfoBox(playerid,"Online Radio","Radio vypnute!",5000);
  292.             }
  293.             }
  294.         }
  295. //-SK Stanice-------------------------------------------------------------------
  296.     case 101:
  297.     {
  298.         if(response)
  299.         {
  300.             if(listitem == 0)
  301.             {
  302.                 StopAudioStreamForPlayer(playerid);
  303.                 PlayAudioStreamForPlayer(playerid,"http://ice2.europa2.sk/fm-europa2sk-128");// Europa 2
  304.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Europu 2", 5000, 1);
  305.             }
  306.  
  307.             if(listitem == 1)
  308.             {
  309.                 StopAudioStreamForPlayer(playerid);
  310.                 PlayAudioStreamForPlayer(playerid,"http://stream.funradio.sk:8000/fun128.mp3");// FunRadio
  311.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ FunRadio", 5000, 1);
  312.             }
  313.            
  314.             if(listitem == 2)
  315.             {
  316.                 StopAudioStreamForPlayer(playerid);
  317.                 PlayAudioStreamForPlayer(playerid,"http://sc.foxradio.cz:8888/");// Fox Radio
  318.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Fox Radio", 5000, 1);
  319.             }
  320.  
  321.             if(listitem == 3)
  322.             {
  323.                 StopAudioStreamForPlayer(playerid);
  324.                 PlayAudioStreamForPlayer(playerid,"http://85.248.7.162:8000/96.mp3");// Radio Expres
  325.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Expres", 5000, 1);
  326.             }
  327.  
  328.             if(listitem == 4)
  329.             {
  330.                 StopAudioStreamForPlayer(playerid);
  331.                 PlayAudioStreamForPlayer(playerid,"http://www.jemnemelodie.sk:8000");// Jemne Melodie
  332.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Jemne Melodie", 5000, 1);
  333.             }
  334.  
  335.             if(listitem == 5)
  336.             {
  337.                 StopAudioStreamForPlayer(playerid);
  338.                 PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/slovensko/slovensko_128.mp3.m3u");// Radio Slovensko
  339.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Slovensko", 5000, 1);
  340.             }
  341.  
  342.             if(listitem == 6)
  343.             {
  344.                 StopAudioStreamForPlayer(playerid);
  345.                 PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginaba/regina_ba_128.mp3.m3u");// Radio Regina BA
  346.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina BA", 5000, 1);
  347.             }
  348.  
  349.             if(listitem == 7)
  350.             {
  351.                 StopAudioStreamForPlayer(playerid);
  352.                 PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginabb/regina_bb_128.mp3.m3u");// Radio Regina BB
  353.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina BB", 5000, 1);
  354.             }
  355.  
  356.             if(listitem == 8)
  357.             {
  358.                 StopAudioStreamForPlayer(playerid);
  359.                 PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginake/regina_ke_128.mp3.m3u");// Radio Regina KE
  360.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina KE", 5000, 1);
  361.             }
  362.            
  363.             if(listitem == 9)
  364.             {
  365.                 StopAudioStreamForPlayer(playerid);
  366.                 PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/rsi/rsi_128.mp3.m3u");// Radio Internacional
  367.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Internacional", 5000, 1);
  368.             }
  369.  
  370.             if(listitem == 10)
  371.             {
  372.                 StopAudioStreamForPlayer(playerid);
  373.                 PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/klasika/klasika_128.mp3.m3u");// Radio Klasika
  374.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Klasika", 5000, 1);
  375.             }
  376.  
  377.             if(listitem == 11)
  378.             {
  379.                 StopAudioStreamForPlayer(playerid);
  380.                 PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/junior/junior_128.mp3.m3u");// Radio Junior
  381.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Junior", 5000, 1);
  382.             }
  383.  
  384.             if(listitem == 12)
  385.             {
  386.                 StopAudioStreamForPlayer(playerid);
  387.                 PlayAudioStreamForPlayer(playerid,"http://85.159.106.242:8000/vivastream64.mp3");// Radio Viva
  388.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Viva", 5000, 1);
  389.             }
  390.  
  391.             if(listitem == 13)
  392.             {
  393.                 StopAudioStreamForPlayer(playerid);
  394.                 PlayAudioStreamForPlayer(playerid,"http://audio.lumen.sk:8000/live128.mp3");// Radio Lumen
  395.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Lumen", 5000, 1);
  396.             }
  397.  
  398.             if(listitem == 14)
  399.             {
  400.                 StopAudioStreamForPlayer(playerid);
  401.                 PlayAudioStreamForPlayer(playerid,"http://live.slovakradio.sk:8000/Patria_128.mp3");// Radio Patria
  402.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Patria", 5000, 1);
  403.             }
  404.             }
  405.         }
  406. //-CZ Stanice-------------------------------------------------------------------
  407.     case 102:
  408.     {
  409.         if(response)
  410.         {
  411.             if(listitem == 0)
  412.             {
  413.                 StopAudioStreamForPlayer(playerid);
  414.                 PlayAudioStreamForPlayer(playerid,"http://icecast3.play.cz/evropa2-128.mp3.m3u");// Europa 2
  415.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Europa 2", 5000, 1);
  416.             }
  417.  
  418.             if(listitem == 1)
  419.             {
  420.                 StopAudioStreamForPlayer(playerid);
  421.                 PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz:8000/fajn128.mp3");// Fajn Radio
  422.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Fajn Radio", 5000, 1);
  423.             }
  424.  
  425.             if(listitem == 2)
  426.             {
  427.                 StopAudioStreamForPlayer(playerid);
  428.                 PlayAudioStreamForPlayer(playerid,"http://85.159.106.242:8000/kissmp3_128.mp3");// Radio Kiss
  429.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Kiss", 5000, 1);
  430.             }
  431.  
  432.             if(listitem == 3)
  433.             {
  434.                 StopAudioStreamForPlayer(playerid);
  435.                 PlayAudioStreamForPlayer(playerid,"http://icecast5.play.cz/rockzone128.mp3");// Radio Rock Zone
  436.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Rock Zone", 5000, 1);
  437.             }
  438.  
  439.             if(listitem == 4)
  440.             {
  441.                 StopAudioStreamForPlayer(playerid);
  442.                 PlayAudioStreamForPlayer(playerid,"http://icecast6.play.cz/fm-impuls-128.mp3");// Radio Impuls
  443.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Impuls", 5000, 1);
  444.             }
  445.  
  446.             if(listitem == 5)
  447.             {
  448.                 StopAudioStreamForPlayer(playerid);
  449.                 PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/dance128.mp3");// Radio Dance
  450.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Dance", 5000, 1);
  451.             }
  452.  
  453.             if(listitem == 6)
  454.             {
  455.                 StopAudioStreamForPlayer(playerid);
  456.                 PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/blanikfm128.mp3");// Radio Blanik
  457.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Blanik", 5000, 1);
  458.             }
  459.  
  460.             if(listitem == 7)
  461.             {
  462.                 StopAudioStreamForPlayer(playerid);
  463.                 PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz:8000/beat128.mp3");// Radio Beat
  464.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Beat", 5000, 1);
  465.             }
  466.  
  467.             if(listitem == 8)
  468.             {
  469.                 StopAudioStreamForPlayer(playerid);
  470.                 PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/humor128.mp3");// Radio Humor
  471.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Humor", 5000, 1);
  472.             }
  473.  
  474.             if(listitem == 9)
  475.             {
  476.                 StopAudioStreamForPlayer(playerid);
  477.                 PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/hiphopvibes128.mp3");// Radio HipHopVibes
  478.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio HipHopVibes", 5000, 1);
  479.             }
  480.  
  481.             if(listitem == 10)
  482.             {
  483.                 StopAudioStreamForPlayer(playerid);
  484.                 PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/metallica128.mp3");// Radio Metalica
  485.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Metalica", 5000, 1);
  486.             }
  487.  
  488.             if(listitem == 11)
  489.             {
  490.                 StopAudioStreamForPlayer(playerid);
  491.                 PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/country128.mp3");// Radio Country
  492.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Country", 5000, 1);
  493.             }
  494.  
  495.             if(listitem == 12)
  496.             {
  497.                 StopAudioStreamForPlayer(playerid);
  498.                 PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/depeche128.mp3");// Radio Depeche Mode
  499.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Depeche Mode", 5000, 1);
  500.             }
  501.  
  502.             if(listitem == 13)
  503.             {
  504.                 StopAudioStreamForPlayer(playerid);
  505.                 PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/clubbeat128.mp3");// Radio Clubbeat
  506.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Clubbeat", 5000, 1);
  507.             }
  508.  
  509.             if(listitem == 14)
  510.             {
  511.                 StopAudioStreamForPlayer(playerid);
  512.                 PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/ghouse128.mp3");// Radio Groovy House
  513.                 GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Groovy House", 5000, 1);
  514.             }
  515.             }
  516.         }
  517.     }
  518.     return 1;
  519. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement