Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Radio System Mysterio
- //10 Radiosender beim aussteigen geht er aus
- //beim Ausloggen geht er auch Aus
- //Viel Spaß! ;)
- #include <a_samp>
- #define DIALOG_RADIO 1 //Hier deine DIALOG ID
- #define COLOR_RED 0xFF0000FF
- #if defined FILTERSCRIPT
- #endif
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Radio System Mysterio");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- StopAudioStreamForPlayer(playerid);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext,"/radio", true)==0)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- ShowPlayerDialog(playerid,DIALOG_RADIO,DIALOG_STYLE_LIST,"Radio","Ausschalten\nTechnobase.fm\nHardbase.fm\nRPR1\n1LIVE\nYouFM\nYouFM Black\nYouFM Rock\nYouFM Club\nRadio N1\nAntenne Bayern","Abspielen","Ausschalten");
- }
- else
- {
- SendClientMessage(playerid,COLOR_RED,"Du bist in keinen Fahrzeug!");
- }
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid==DIALOG_RADIO)
- {
- if(response==1)
- switch(listitem)
- {
- case 0:{StopAudioStreamForPlayer(playerid);}
- case 1:{PlayAudioStreamForPlayer(playerid,"http://listen.technobase.fm/dsl.pls");}
- case 2:{PlayAudioStreamForPlayer(playerid,"http://listen.hardbase.fm/dsl.pls");}
- case 3: {PlayAudioStreamForPlayer(playerid, "http://rpr1.fmstreams.de/stream1");}
- case 4: {PlayAudioStreamForPlayer(playerid, "http://gffstream.ic.llnwd.net/stream/gffstream_stream_wdr_einslive_a");}
- case 5: {PlayAudioStreamForPlayer(playerid, "http://gffstream.ic.llnwd.net/stream/gffstream_mp3_w72a");}
- case 6:{PlayAudioStreamForPlayer(playerid,"http://gffstream.ic.llnwd.net/stream/gffstream_mp3_w75a");}
- case 7:{PlayAudioStreamForPlayer(playerid,"http://gffstream.ic.llnwd.net/stream/gffstream_mp3_w77a");}
- case 8: {PlayAudioStreamForPlayer(playerid, "http://gffstream.ic.llnwd.net/stream/gffstream_mp3_w76a");}
- case 9: {PlayAudioStreamForPlayer(playerid, "http://webradio1.hitradion1.de:8000");}
- case 10: {PlayAudioStreamForPlayer(playerid, "http://www.antenne.de/webradio/antenne.m3u");}
- }
- if(response==0){StopAudioStreamForPlayer(playerid);}
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment