Jump to content
  • 0

pomoc [Help]Radio


matajus

Dotaz

Čus, potřebuju poradit s radiem

OnPlayerCommandText

	if (strcmp("/radio", cmdtext, true, 10) == 0)
{
    ShowPlayerDialog(playerid, 4105, DIALOG_STYLE_LIST, "Vyber si stanici:", "Vypnout\nFajn Radio Black\nFajn Radio Club\nHelax\nDance Radio\nHipHopVibes\nEvropa 2\nFun 1 Rádio\nClubBeat", "Vybrat", "Zrušit");
   	return 1;
}

 

a

 

OnDialogResponse

if(dialogid == 4105)
{
if(response)
   {
   switch(dialogid)
       {
	case 1:
   	    {
          	switch(listitem)
       	{
       	    case 0:
       	    {
       	        StopAudioStreamForPlayer(playerid);
       	    }
       	    case 1:
       	    {
       	        //StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/fajnclub128.mp3");
       	    }
       	    case 2:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/helax128.mp3");
       	    }
       	    case 3:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/dance128.mp3");
       	    }
       	    case 4:
       	    {
       	       StopAudioStreamForPlayer(playerid);
       	       PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/fajnblack128.mp3");
       	    }
       	    case 5:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/hiphopvibes128.mp3");
       	    }
       	    case 6:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://www.play.cz/radio/evropa2-32.aac.m3u");
       	    }
       	    case 7:
       	    {
       	        StopAudioStreamForPlayer(playerid);
				PlayAudioStreamForPlayer(playerid, "http://86.49.93.190:8000/fun1-32");
       	    }
       	    case 8:
       	    {
       	       StopAudioStreamForPlayer(playerid);
       	       PlayAudioStreamForPlayer(playerid, "http://mp3stream4.abradio.cz:8000/clubbeat128.mp3");
       	    }
       	}
   	    }
}
   }
   }

 

Nevíte někdo proč nehraje hudba? :(

Link to comment
Share on other sites

6 odpovědí na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...