Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #define radio 1
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Radio system by [RIP]TheNewFuture");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- CMD:radio(playerid,params[])
- {
- ShowPlayerDialog(playerid,radio,DIALOG_STYLE_LIST,"{00FF00}Live Radio","{FFFFFF}Trap Radio\nDubstep Radio\nDance Radio\nParty Radio\nHip Hop\nHard House\nStop radio","Select","Cancel");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == radio)
- {
- if(!response) return 1;
- switch(listitem)
- {
- case 0:
- {
- PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=165934");
- }
- case 1:
- {
- PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=338128");
- }
- case 2:
- {
- PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=17998");
- }
- case 3:
- {
- PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=694819");
- }
- case 4:
- {
- PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=312306");
- }
- case 5:
- {
- PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=881390");
- }
- case 6:
- {
- StopAudioStreamForPlayer(playerid);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment