[FilterScript] Radio filterscript
#1

Hello this is my first script /radio to use it please let me know what you think below download link is at bottom of thread.
to add a radio stream add this code below.
Attention v3 comes with 19 radio stations if there are any problems please let me know


Код:
"Country108\ndubstep.fm\nB98 Today's Best Country\nNashville FM\nStop the music\your content here"
Here is the full filterscript below
Код:
// 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\nCountry 105 Calgary's #1 radio station\nB98 Today's Best Country\nNashville FM\nVirgin Radio Calgary 98.5\nCJAY 92 Calgary\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://live.leanstream.co/CKRYFM-MP3?tunein");
                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: PlayAudioStreamForPlayer(playerid, "http://cibk-mp3.akacast.akamaistream.net/7/326/102120/v1/astral.akacast.akamaistream.net/cibk-mp3");
				case 5: PlayAudioStreamForPlayer(playerid, "http://cjay-mp3.akacast.akamaistream.net/7/741/102120/v1/astral.akacast.akamaistream.net/cjay-mp3");
				case 6: StopAudioStreamForPlayer(playerid);
            }
        }
    }
    return 1;
}
V3 Download link:https://db.tt/PAopwqhS
Reply
#2

Nice, i'll try it out
Reply
#3

Quote:
Originally Posted by DartanCZ
Посмотреть сообщение
Nice, i'll try it out
haha thanks let me know how it works
Reply
#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
#5

does it really matter how it was scripted?
Reply
#6

well no.... just showing you that there are codes that is shorter than your code but again even i choose your method cause i usually get lost even on my own script..... anyways GJ
Reply
#7

....
Reply
#8

anyone else have any comments?
Reply
#9

esse sistema pega tipo pra todos ouvirem to a procura de um fas tempo e nao acho e q que quero com varias opзao de radios
Reply
#10

anymore comments?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)