Radio
#4

You can do something like this:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case 90:
        {
            if(!response) return SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog.");
            switch(listitem)
            {
                case 0: PlayAudioStreamForPlayer(playerid, "http://radio02-cn3.akadostream.ru:8814/nrj192.mp3"), SendClientMessage(playerid, 0x42F3F198, "Type /stopradio to stop audio streaming.");
                case 1: PlayAudioStreamForPlayer(playerid, "http://stream.radioactivity.fm:8002/"), SendClientMessage(playerid, 0x42F3F198, "Type /stopradio to stop audio streaming.");
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Radio - by Pawnie - 12.04.2013, 00:58
Re: Radio - by BittleRyan - 12.04.2013, 01:35
Re: Radio - by Pawnie - 12.04.2013, 01:39
Re: Radio - by BittleRyan - 12.04.2013, 01:48
Re: Radio - by Pawnie - 12.04.2013, 02:16

Forum Jump:


Users browsing this thread: 1 Guest(s)