(FS) Radio System With Dialogs

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

Moderator: SJplayer

Avatar
Topic author
SJplayer M
Модератор
Модератор
Posts: 191
With us: 7 years 5 months

(FS) Radio System With Dialogs

Post #1by SJplayer » 26 Dec 2013, 21:10

Radio System With Dialogs

Image


Code: Select all

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

public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/radio"true)== 0)
    {
        
ShowPlayerDialog(playerid1DIALOG_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(playeriddialogidresponselistiteminputtext[])
{
    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;

! ! !


  • Similar Topics
    Replies
    Views
    Last post

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

Who is online

Users browsing this forum: 1 guest