Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define FILTERSCRIPT
- #define Stream 1
- #define RED 0xFF0900FF
- #define BLUE 0x009BFFFF
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/stream", cmdtext, true, 10) == 0)
- {
- 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");
- return 1;
- }
- if (strcmp("/stopstream", cmdtext, true, 10) == 0)
- {
- StopAudioStreamForPlayer(playerid);
- GameTextForPlayer(playerid,"Der Stream wurde gestoppt !", 3000, 3);
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(response == 0)
- {
- SendClientMessage(playerid,RED,"Du hast Abgebrochen !");
- return 1;
- }
- if(response == 1)
- {
- if(listitem == 0)
- {
- PlayAudioStreamForPlayer(playerid, "http://tunein.t4e.dj/main.pls");
- GameTextForPlayer(playerid,"Du hoerst nun Techno4EverFM !", 3000, 3);
- }
- if(listitem == 1)
- {
- PlayAudioStreamForPlayer(playerid, "http://metafiles.gl-systemhaus.de/hr/youfm_2.m3u");
- GameTextForPlayer(playerid,"Du hoerst nun YouFM !", 3000, 3);
- }
- if(listitem == 2)
- {
- PlayAudioStreamForPlayer(playerid, "http://www.dubstep.fm/listen.pls");
- GameTextForPlayer(playerid,"Du hoerst nun DubstepFM !", 3000, 3);
- }
- if(listitem == 3)
- {
- PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/dsl.pls");
- GameTextForPlayer(playerid,"Du hoerst nun TechnobaseFM !", 3000, 3);
- }
- if(listitem == 4)
- {
- PlayAudioStreamForPlayer(playerid, "http://www.ndr.de/resources/metadaten/audio/m3u/n-joy.m3u");
- GameTextForPlayer(playerid,"Du hoerst nun NJoy !", 3000, 3);
- }
- if(listitem == 5)
- {
- PlayAudioStreamForPlayer(playerid, "http://www.wdr.de/wdrlive/media/einslive.m3u");
- GameTextForPlayer(playerid,"Du hoerst nun 1Live !", 3000, 3);
- }
- if(listitem == 6)
- {
- PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/dsl.pls");
- GameTextForPlayer(playerid,"Du hoerst nun HardbaseFM !", 3000, 3);
- }
- if(listitem == 7)
- {
- PlayAudioStreamForPlayer(playerid, "http://www.iloveradio.de//listen.m3u");
- GameTextForPlayer(playerid,"Du hoerst nun I Love Radio !", 3000, 3);
- }
- if(listitem == 8)
- {
- PlayAudioStreamForPlayer(playerid, "http://87.230.53.70/iloveradio2.mp3");
- GameTextForPlayer(playerid,"Du hoerst nun I Love 2 Dance !", 3000, 3);
- }
- if(listitem == 9)
- {
- PlayAudioStreamForPlayer(playerid, "http://80.237.158.62/iloveradio5.mp3");
- GameTextForPlayer(playerid,"Du hoerst nun I Love Mashup !", 3000, 3);
- }
- return 1;
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment