(Fs) Радио система в диалогах

Готовые решения скриптов, filterScript

Moderator: SJplayer

Avatar
Topic author
Дим M
Администратор
Администратор
Posts: 1319
With us: 7 years 5 months

(Fs) Радио система в диалогах

Post #1by Дим » 12 Jan 2014, 13:12

Image

Автор: Pro_LiZzy
Это простенькая радио система с диалогами.

Code: Select all

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print("Pro_LiZzy's Radio System");
        print("--------------------------------------\n");
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/radio", true)== 0)
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "{00FF00}Radio System By Pro_LiZzy", "{FFFFFF}Metal\n{FFFFFF}[Radio] Hit-104\n{FFFFFF}977.Hits\n{FFFFFF}[Radio] Party 181.FM\n{FFFFFF}PULSE87_SC\n{FFFFFF}Techno\n{FF0000}Off radio", "Okay", "Close");
        return 1;
    }


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response)
    {
        switch(dialogid)
        {
            case 1:
            {
                switch(listitem)
                {
                    case 0:
                    {
                        PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=558051");
                    }
                    
                    case 1
:
                    {
                        PlayAudioStreamForPlayer(playerid,"http://tuner.hit104.com:80");
                    }
                    
                    case 2
:
                    {
                        PlayAudioStreamForPlayer(playerid,"http://7609.live.streamtheworld.com:80/977_HITS_SC");
                    }
                    
                    case 3
:
                    {
                        PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=508962");
                    }
                    
                    case 4
:
                    {
                        PlayAudioStreamForPlayer(playerid,"http://1591.live.streamtheworld.com:443/PULSE87_SC");
                    }
                    
                    case 5
:
                    {
                        PlayAudioStreamForPlayer(playerid,"http://yp.shoutcast.com/sbin/tunein-station.pls?id=1564322");
                    }
                    
                    case 6
:
                    {
                        StopAudioStreamForPlayer(playerid);
                    }
                }
            }
        }
    }
    
    return 1
;
}
i love you mxIni Mysql

! ! !


  • Similar Topics
    Replies
    Views
    Last post

Return to “Скрипты / FS”

Who is online

Users browsing this forum: 1 guest