Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Online Radio Player 2.0
- * © by Dominik 'MARV' Lisy
- * Prosím, neprepisovať autora.
- *
- */
- #include a_samp
- #include infobox //By isigar
- #include zcmd //By Y_Less
- //=Public=======================================================================
- public OnPlayerConnect(playerid)
- {
- InfoBoxInit(playerid);
- return 1;
- }
- public OnPlayerDisconnect(playerid)
- {
- InfoBoxExit(playerid);
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- new auto = GetPlayerVehicleID(playerid);
- if (newkeys & KEY_SUBMISSION)
- {
- if (GetPlayerState(playerid) == 2)
- {
- if(GetVehicleModel(auto) == 481 || GetVehicleModel(auto) == 509 || GetVehicleModel(auto) == 510)
- {
- ShowInfoBox(playerid,"Online Radio","Toto vozidlo nepodporuje radio!",5000);
- }
- else
- {
- 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");
- }
- }
- else
- {
- ShowInfoBox(playerid,"Online Radio","Niesi vodič!",5000);
- }
- }
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- ShowInfoBox(playerid,"Online Radio","Radio si zapnes tlacitkom +",5000);
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- //=Dialog=======================================================================
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- case 100:
- {
- if(response)
- {
- if(listitem == 0)
- {
- 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");
- }
- if(listitem == 1)
- {
- 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");
- }
- if(listitem == 2)
- {
- switch(random(29))
- {
- case 0:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice2.europa2.sk/fm-europa2sk-128");// Europa 2
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Europu 2", 5000, 1);
- }
- case 1:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://icecast3.play.cz/evropa2-128.mp3.m3u");// Europa 2
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Europa 2", 5000, 1);
- }
- case 2:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://stream.funradio.sk:8000/fun128.mp3");// FunRadio
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ FunRadio", 5000, 1);
- }
- case 3:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz:8000/fajn128.mp3");// Fajn Radio
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Fajn Radio", 5000, 1);
- }
- case 4:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://sc.foxradio.cz:8888/");// Fox Radio
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Fox Radio", 5000, 1);
- }
- case 5:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://85.159.106.242:8000/kissmp3_128.mp3");// Radio Kiss
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Kiss", 5000, 1);
- }
- case 6:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://85.248.7.162:8000/96.mp3");// Radio Expres
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Expres", 5000, 1);
- }
- case 7:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://icecast6.play.cz/fm-impuls-128.mp3");// Radio Impuls
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Impuls", 5000, 1);
- }
- case 8:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.jemnemelodie.sk:8000");// Jemne Melodie
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Jemne Melodie", 5000, 1);
- }
- case 9:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/dance128.mp3");// Radio Dance
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Dance", 5000, 1);
- }
- case 10:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/slovensko/slovensko_128.mp3.m3u");// Radio Slovensko
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Slovensko", 5000, 1);
- }
- case 11:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/blanikfm128.mp3");// Radio Blanik
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Blanik", 5000, 1);
- }
- case 12:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginaba/regina_ba_128.mp3.m3u");// Radio Regina BA
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina BA", 5000, 1);
- }
- case 13:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz:8000/beat128.mp3");// Radio Beat
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Beat", 5000, 1);
- }
- case 14:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginabb/regina_bb_128.mp3.m3u");// Radio Regina BB
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina BB", 5000, 1);
- }
- case 15:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/humor128.mp3");// Radio Humor
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Humor", 5000, 1);
- }
- case 16:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginake/regina_ke_128.mp3.m3u");// Radio Regina KE
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina KE", 5000, 1);
- }
- case 17:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/hiphopvibes128.mp3");// Radio HipHopVibes
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio HipHopVibes", 5000, 1);
- }
- case 18:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/rsi/rsi_128.mp3.m3u");// Radio Internacional
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Internacional", 5000, 1);
- }
- case 19:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/metallica128.mp3");// Radio Metalica
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Metalica", 5000, 1);
- }
- case 20:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/klasika/klasika_128.mp3.m3u");// Radio Klasika
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Klasika", 5000, 1);
- }
- case 21:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/country128.mp3");// Radio Country
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Country", 5000, 1);
- }
- case 22:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/junior/junior_128.mp3.m3u");// Radio Junior
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Junior", 5000, 1);
- }
- case 23:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/depeche128.mp3");// Radio Depeche Mode
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Depeche Mode", 5000, 1);
- }
- case 24:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://85.159.106.242:8000/vivastream64.mp3");// Radio Viva
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Viva", 5000, 1);
- }
- case 25:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/clubbeat128.mp3");// Radio Clubbeat
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Clubbeat", 5000, 1);
- }
- case 26:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://audio.lumen.sk:8000/live128.mp3");// Radio Lumen
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Lumen", 5000, 1);
- }
- case 27:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/ghouse128.mp3");// Radio Groovy House
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Groovy House", 5000, 1);
- }
- case 28:
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://live.slovakradio.sk:8000/Patria_128.mp3");// Radio Patria
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Patria", 5000, 1);
- }
- }
- }
- if(listitem == 3)
- {
- StopAudioStreamForPlayer(playerid);
- ShowInfoBox(playerid,"Online Radio","Radio vypnute!",5000);
- }
- }
- }
- //-SK Stanice-------------------------------------------------------------------
- case 101:
- {
- if(response)
- {
- if(listitem == 0)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice2.europa2.sk/fm-europa2sk-128");// Europa 2
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Europu 2", 5000, 1);
- }
- if(listitem == 1)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://stream.funradio.sk:8000/fun128.mp3");// FunRadio
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ FunRadio", 5000, 1);
- }
- if(listitem == 2)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://sc.foxradio.cz:8888/");// Fox Radio
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Fox Radio", 5000, 1);
- }
- if(listitem == 3)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://85.248.7.162:8000/96.mp3");// Radio Expres
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Expres", 5000, 1);
- }
- if(listitem == 4)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.jemnemelodie.sk:8000");// Jemne Melodie
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Jemne Melodie", 5000, 1);
- }
- if(listitem == 5)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/slovensko/slovensko_128.mp3.m3u");// Radio Slovensko
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Slovensko", 5000, 1);
- }
- if(listitem == 6)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginaba/regina_ba_128.mp3.m3u");// Radio Regina BA
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina BA", 5000, 1);
- }
- if(listitem == 7)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginabb/regina_bb_128.mp3.m3u");// Radio Regina BB
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina BB", 5000, 1);
- }
- if(listitem == 8)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/reginake/regina_ke_128.mp3.m3u");// Radio Regina KE
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Regina KE", 5000, 1);
- }
- if(listitem == 9)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/rsi/rsi_128.mp3.m3u");// Radio Internacional
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Internacional", 5000, 1);
- }
- if(listitem == 10)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/klasika/klasika_128.mp3.m3u");// Radio Klasika
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Klasika", 5000, 1);
- }
- if(listitem == 11)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://www.rozhlas.sk/stream/junior/junior_128.mp3.m3u");// Radio Junior
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Junior", 5000, 1);
- }
- if(listitem == 12)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://85.159.106.242:8000/vivastream64.mp3");// Radio Viva
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Viva", 5000, 1);
- }
- if(listitem == 13)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://audio.lumen.sk:8000/live128.mp3");// Radio Lumen
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Lumen", 5000, 1);
- }
- if(listitem == 14)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://live.slovakradio.sk:8000/Patria_128.mp3");// Radio Patria
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Patria", 5000, 1);
- }
- }
- }
- //-CZ Stanice-------------------------------------------------------------------
- case 102:
- {
- if(response)
- {
- if(listitem == 0)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://icecast3.play.cz/evropa2-128.mp3.m3u");// Europa 2
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Europa 2", 5000, 1);
- }
- if(listitem == 1)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz:8000/fajn128.mp3");// Fajn Radio
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Fajn Radio", 5000, 1);
- }
- if(listitem == 2)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://85.159.106.242:8000/kissmp3_128.mp3");// Radio Kiss
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Kiss", 5000, 1);
- }
- if(listitem == 3)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://icecast5.play.cz/rockzone128.mp3");// Radio Rock Zone
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Rock Zone", 5000, 1);
- }
- if(listitem == 4)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://icecast6.play.cz/fm-impuls-128.mp3");// Radio Impuls
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Impuls", 5000, 1);
- }
- if(listitem == 5)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/dance128.mp3");// Radio Dance
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Dance", 5000, 1);
- }
- if(listitem == 6)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/blanikfm128.mp3");// Radio Blanik
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Blanik", 5000, 1);
- }
- if(listitem == 7)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz:8000/beat128.mp3");// Radio Beat
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Beat", 5000, 1);
- }
- if(listitem == 8)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/humor128.mp3");// Radio Humor
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Humor", 5000, 1);
- }
- if(listitem == 9)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/hiphopvibes128.mp3");// Radio HipHopVibes
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio HipHopVibes", 5000, 1);
- }
- if(listitem == 10)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/metallica128.mp3");// Radio Metalica
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Metalica", 5000, 1);
- }
- if(listitem == 11)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/country128.mp3");// Radio Country
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Country", 5000, 1);
- }
- if(listitem == 12)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/depeche128.mp3");// Radio Depeche Mode
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Depeche Mode", 5000, 1);
- }
- if(listitem == 13)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://mp3stream4.abradio.cz:8000/clubbeat128.mp3");// Radio Clubbeat
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Clubbeat", 5000, 1);
- }
- if(listitem == 14)
- {
- StopAudioStreamForPlayer(playerid);
- PlayAudioStreamForPlayer(playerid,"http://ice.abradio.cz/ghouse128.mp3");// Radio Groovy House
- GameTextForPlayer(playerid, "~y~Naladil si si~g~ Radio Groovy House", 5000, 1);
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement