/music MP3 Player

Description: Готовые команды
Moderator: SJplayer

Дим M
Topic author, Администратор
Администратор
Avatar
Дим M
Topic author, Администратор
Администратор
Posts: 1612
Joined: 5 Apr 2013
With us: 11 years 6 months

#1by Дим » 17 Apr 2013, 9:36

MP3 Player
Автор: Domenic_Capone

1.jpg
1.jpg (25.29 KiB) Viewed 1124 times


В public OnPlayerCommandsText:

Code: Select all

    if(strcmp(cmdtext"/music"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            
ShowPlayerDialog(playerid,2112,DIALOG_STYLE_LIST,"{FF6600}Проигрыватель","Радио Record\nРадио Zaycev FM\nРадио Real-FM\nРадио Official Euro\nРадио Jazz\nРадио Hits FM\nРадио Record-Dubster\nВыключить проигрователь","Выбрать","Закрыть");
        }
        return 
true;
    }   


В public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]):

Code: Select all

    if(dialogid == 2112)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
PlayAudioStreamForPlayer(playerid,"http://vsyaka-vsyachina.ru/m3u/rr192-28kbps.m3u");
            }
            if(
listitem == 1)
            {
                
PlayAudioStreamForPlayer(playerid,"http://www.zaycev.fm:9001/rnb/ZaycevFM(128)");
            }
            if(
listitem == 2)
            {
                
PlayAudioStreamForPlayer(playerid,"http://rp-mygame.my1.ru/MG/real.pls");
            }
            if(
listitem == 3)
            {
                
PlayAudioStreamForPlayer(playerid,"http://rp-mygame.my1.ru/MG/mg-fm.m3u");
            }
            if(
listitem == 4)
            {
                
PlayAudioStreamForPlayer(playerid,"http://rp-mygame.my1.ru/MG/mg-fm.m3u");
            }
            if(
listitem == 5)
            {
                
PlayAudioStreamForPlayer(playerid,"http://rp-mygame.my1.ru/MG/hits.pls");
            }
            if(
listitem == 6)
            {
                
PlayAudioStreamForPlayer(playerid,"http://online.radiorecord.ru:8102/dub_128");
            }
            if(
listitem == 7)
            {
                
StopAudioStreamForPlayer(playerid);
                
SendClientMessage(playerid,COLOR_WHITE,"Проигрыватель отключен");
            }
        }
        else { }
    }   
[center]i love you [s]mxIni[/s] Mysql[/center]


Return to “Команды”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest