/music MP3 Player

Готовые команды

Moderator: SJplayer

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

/music MP3 Player

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

MP3 Player
Автор: Domenic_Capone

1.jpg
1.jpg (25.29 KiB) Viewed 636 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 { }
    }   
i love you mxIni Mysql

! ! !


  • Similar Topics
    Replies
    Views
    Last post

Return to “Команды”

Who is online

Users browsing this forum: 1 guest