(FS) Radio System With Dialogs

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

SJplayer M
Topic author, Модератор
Модератор
Avatar
SJplayer M
Topic author, Модератор
Модератор
Posts: 196
Joined: 25 May 2013
With us: 11 years 3 months

#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;


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

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest