Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Music stream fs by AaronKillz
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Music FS by Killz");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Blank Gamemode by your name here");
- print("----------------------------------\n");
- }
- #endif
- CMD:radio(playerid, params[])
- {
- ShowPlayerDialog(playerid, 12345, DIALOG_STYLE_LIST, "Pick a music genre", "Hip Hop\nDubstep\nElectronic\nPop\nRock", "Choose", "Cancel");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid) {
- case 12345:
- {
- if(!response) return SendClientMessage(playerid, 0xFF330000, "No music selected.");
- switch(listitem) {
- case 0:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
- return 1;
- }
- case 1:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=161884");
- return 1;
- }
- case 2:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=577749");
- return 1;
- }
- case 3:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=106390");
- return 1;
- }
- case 4:
- {
- PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1274063");
- return 1;
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement