Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //credits by Richard_Price
- #include <a_samp>
- #include <ocmd>
- #pragma tabsize 0
- #define blau 0x00C3FFFF
- #define FILTERSCRIPT
- #define Radio 501
- #define Techno 502
- #define Normal 503
- #define Minimal 504
- #define Metal/Rock 505
- #define Country 506
- #define Info 507
- #define Christmas 508
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("$$ Richard_Price's RadioFilterscript V 1.4 loaded $$");
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 0;
- }
- ocmd:radio(playerid,params[])
- {
- if(IsPlayerInAnyVehicle(playerid)) ShowPlayerDialog(playerid, Radio , DIALOG_STYLE_LIST, "{00EEFF}Radio", "Techno\nMinimal\nNormal\nMetal/Rock\nCountry\nInfo\nRadio aus", "Okay", "Abbrechen");
- else SendClientMessage(playerid,0x00FF00AA,"Du bist in keinem Fahrzeug");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
- if (dialogid == Radio)
- {
- if (response)
- {
- if(listitem == 0){ShowPlayerDialog(playerid, Techno, DIALOG_STYLE_LIST,"Techno etc.","Technobase.FM\nHoustime.FM\nSunshineLive\nTechno4ever\n<---","Wählen","Abbruch");
- }
- if(listitem == 1){ShowPlayerDialog(playerid, Minimal, DIALOG_STYLE_LIST,"Minimal","ClubTime.FM\n{BB00FF}Rautemusik-Progressive\nMinimalstation\n<---","Wählen","Abbruch");
- }
- if(listitem == 2){ShowPlayerDialog(playerid, Normal, DIALOG_STYLE_LIST,"Normal","89.0RTL\nSAMP-Radio\nBlackBeats.FM\nKronehit.at\nTop100Stationen\nWelle1(AT)\nBreakz.us\nAntenne Bayern\n<---","Wählen","Abbruch");
- }
- if(listitem == 3){ShowPlayerDialog(playerid, Metal/Rock, DIALOG_STYLE_LIST,"Metal/Rock","Metal Only\nRadio21 - Classic-Rock\n<---","Wählen","Abbruch");
- }
- if(listitem == 4){ShowPlayerDialog(playerid, Country, DIALOG_STYLE_LIST,"Country","Country 108\nCOUNTRYMUSIC 24\nCountry Power Station\n<----","Wählen","Abbruch");
- }
- if(listitem == 5){ShowPlayerDialog(playerid, Info, DIALOG_STYLE_MSGBOX,"Informationen","Mit /audiomsg könnt ihr die Streamanzeigen im Chat ausschalten","OK","");
- }
- if(listitem == 7){SendClientMessage(playerid,blau,"Radio ausgeschaltet.");StopAudioStreamForPlayer(playerid);
- }
- }
- }
- if(dialogid == Info) {
- if(response) {
- ShowPlayerDialog(playerid, Radio , DIALOG_STYLE_LIST, "{00EEFF}Radio", "Techno\nMinimal\nNormal\nMetal/Rock\nCountry\nInfo\nRadio aus", "Okay", "Abbrechen");
- } else {
- SendClientMessage(playerid,0xFFFFFFFF,"");
- }
- return 1;
- }
- if (dialogid == Techno)
- {
- if (response)
- {
- if(listitem == 0){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Technobase.FM.");PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/dsl.pls");
- }
- if(listitem == 1){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Housetime.FM.");PlayAudioStreamForPlayer(playerid, "http://listen.housetime.fm/dsl.pls");
- }
- if(listitem == 2){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst SunshineLive.");PlayAudioStreamForPlayer(playerid, "http://62.27.47.15/sunshinelive/livestream.mp3");
- }
- if(listitem == 3){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Techno4Ever.");PlayAudioStreamForPlayer(playerid, "http://listen.to.techno4ever.fm");
- }
- if(listitem == 4){StopAudioStreamForPlayer(playerid);ShowPlayerDialog(playerid, Radio , DIALOG_STYLE_LIST, "{00EEFF}Radio", "Techno\nMinimal\nNormal\nMetal/Rock\nCountry\nInfo\nRadio aus", "Okay", "Abbrechen");
- }
- }
- }
- if (dialogid == Minimal)
- {
- if (response)
- {
- if(listitem == 0){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Clubtime.FM.");PlayAudioStreamForPlayer(playerid, "http://listen.clubtime.fm/dsl.pls");
- }
- if(listitem == 1){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst den Rautemusik Progressive Stream.");PlayAudioStreamForPlayer(playerid, "http://progressive-high.rautemusik.fm/listen.pls");
- }
- if(listitem == 2){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst den MinimalStation.");PlayAudioStreamForPlayer(playerid, "http://s6.streammonster.com/tunein.php/stsimons/playlist.pls");
- }
- if(listitem == 3){StopAudioStreamForPlayer(playerid);ShowPlayerDialog(playerid, Radio , DIALOG_STYLE_LIST, "{00EEFF}Radio", "Techno\nMinimal\nNormal\nMetal/Rock\nCountry\nInfo\nRadio aus", "Okay", "Abbrechen");
- }
- }
- }
- if (dialogid == Metal/Rock)
- {
- if (response)
- {
- if(listitem == 0){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Metal-Only.");PlayAudioStreamForPlayer(playerid, "http://metal-only.blitz-stream.de/listen.m3u");
- }
- if(listitem == 1){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Radio21-Classic Rock.");PlayAudioStreamForPlayer(playerid, "http://www.radio21.de/livestream/livestream.m3u");
- }
- if(listitem == 2){StopAudioStreamForPlayer(playerid);ShowPlayerDialog(playerid, Radio , DIALOG_STYLE_LIST, "{00EEFF}Radio", "Techno\nMinimal\nNormal\nMetal/Rock\nCountry\nInfo\nRadio aus", "Okay", "Abbrechen");
- }
- }
- }
- if (dialogid == Country)
- {
- if (response)
- {
- if(listitem == 0){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Country 108.");PlayAudioStreamForPlayer(playerid, "http://www.country108.com/listen.pls");
- }
- if(listitem == 1){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst COUNTRYMUSIC24.");PlayAudioStreamForPlayer(playerid, "http://www.countrymusic24.com/listen.pls");
- }
- if(listitem == 2){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Country Power Station.");PlayAudioStreamForPlayer(playerid, "http://cast.sc9.shoutcaststreaming.us/tunein.php/cps/playlist.pls");
- }
- if(listitem == 3){StopAudioStreamForPlayer(playerid);ShowPlayerDialog(playerid, Radio , DIALOG_STYLE_LIST, "{00EEFF}Radio", "Techno\nMinimal\nNormal\nMetal/Rock\nCountry\nInfo\nRadio aus", "Okay", "Abbrechen");
- }
- }
- }
- if (dialogid == Normal)
- {
- if (response)
- {
- if(listitem == 0){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst 89.0RTL.");PlayAudioStreamForPlayer(playerid, "http://www.89.0rtl.de/webradio/rtl-high.m3u");
- }
- if(listitem == 1){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst SAMP-Radio.");PlayAudioStreamForPlayer(playerid, "http://samp-radio.com/stream.pls");
- }
- if(listitem == 2){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst BlackBeats.FM.");PlayAudioStreamForPlayer(playerid, "http://blackbeats.fm/listen.m3u");
- }
- if(listitem == 3){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Kronehit.at.");PlayAudioStreamForPlayer(playerid, "http://onair.krone.at/kronehit.mp3.m3u");
- }
- if(listitem == 4){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Top100Station.");PlayAudioStreamForPlayer(playerid, "http://www.top100station.de/switch/r3472.pls");
- }
- if(listitem == 5){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Welle 1(AT).");PlayAudioStreamForPlayer(playerid, "http://live.welle1.at:8128/listen.pls");
- }
- if(listitem == 6){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Breakz.us.");PlayAudioStreamForPlayer(playerid, "http://breakz.us/radio/listen.pls");
- }
- if(listitem == 7){StopAudioStreamForPlayer(playerid);SendClientMessage(playerid,blau,"Du hörst Antenne Bayern.");PlayAudioStreamForPlayer(playerid, "http://www.antenne.de/webradio/antenne.m3u");
- }
- if(listitem == 8){StopAudioStreamForPlayer(playerid);ShowPlayerDialog(playerid, Radio , DIALOG_STYLE_LIST, "{00EEFF}Radio", "Techno\nMinimal\nNormal\nMetal/Rock\nCountry\nInfo\nRadio aus", "Okay", "Abbrechen");
- }
- }
- }
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- for(new playerid = 0; playerid < GetMaxPlayers(); playerid++)
- {
- StopAudioStreamForPlayer(playerid);
- }
- return 1;
- }
- public OnPlayerDeath(playerid)
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(newstate == PLAYER_STATE_ONFOOT || newstate == PLAYER_STATE_ONFOOT)
- {
- StopAudioStreamForPlayer(playerid);
- }
- else if(oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER)
- {
- StopAudioStreamForPlayer(playerid);
- }
- return 0;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment