[FilterScript] Radio filterscript
#4

This is a bloat code FS take out all the crap that you don't need.

pawn Код:
// Music stream fs by coolmark1995

#include <a_samp>
#include <zcmd>

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Music FS by coolmark1995");
        print("--------------------------------------\n");
        return 1;
}

CMD:radio(playerid, params[])
{
    ShowPlayerDialog(playerid, 12345, DIALOG_STYLE_LIST, "Pick a music station", "Country108\ndubstep.fm\nB98 Today's Best Country\nNashville FM\nStop the music", "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://tuner.country108.com/listen.pls");
                case 1: PlayAudioStreamForPlayer(playerid, "http://dubstep.fm/listen.pls");
                case 2: PlayAudioStreamForPlayer(playerid, "http://uplink.duplexfx.com:8018/listen.pls");
                case 3: PlayAudioStreamForPlayer(playerid, "http://server-14.stream-server.nl:8300/listen.pls");
                case 4: StopAudioStreamForPlayer(playerid);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Radio filterscript v2 is out - by coolmark1995 - 09.03.2014, 09:01
Re: Radio filterscript - by DartanCZ - 09.03.2014, 10:16
Re: Radio filterscript - by coolmark1995 - 09.03.2014, 11:04
Re: Radio filterscript - by Pottus - 09.03.2014, 13:29
Re: Radio filterscript - by coolmark1995 - 10.03.2014, 00:43
Re: Radio filterscript - by DeathKing - 10.03.2014, 01:44
Re: Radio filterscript - by coolmark1995 - 10.03.2014, 04:11
Re: Radio filterscript - by coolmark1995 - 13.03.2014, 12:46
Re: Radio filterscript - by zDbruno - 13.03.2014, 13:42
Re: Radio filterscript - by coolmark1995 - 21.03.2014, 12:57

Forum Jump:


Users browsing this thread: 1 Guest(s)