Jump to content

Question

Posted

[pawn]if (strcmp("/radioon", cmdtext, true, 10) == 0)

    {

SendClientMessage(playerid, COLOR_YELLOW, "Selecteaza un post de radio !");

SendClientMessage(playerid, COLOR_YELLOW, "Pentru a opri radioul foloseste [/radiooff]");

        ShowPlayerDialog(playerid,4112,DIALOG_STYLE_LIST,"Lista Radio","1. Radio ZU\r\n2. Kiss FM\r\n3. Radio 21","Select", "Cancel");

        return 1;

    }

if (strcmp("/radiooff", cmdtext, true, 10) == 0)

    {

SendClientMessage(playerid, COLOR_YELLOW, "Acum numai asculti radio !");

SendClientMessage(playerid, COLOR_YELLOW, "Pentru a porni radioul foloseste [/radioon]");

        StopAudioStreamForPlayer(playerid);

        return 1;

    }[/pawn]

Acum partea cu dialog

[pawn]if(dialogid == 4112) // Radio Dialog

{

if(!response)

        {

            SendClientMessage(playerid, 0x42F3F198, "Ai inchis dialogul.");

            return 1;

        }

if(response)

{

  if(listitem == 0) // RadioZu

{

PlayAudioStreamForPlayer(playerid, "http://www.radiozu.ro/live.m3u");

SendClientMessage(playerid, COLOR_YELLOW, "Pentru a opri radioul foloseste [/radiooff]");

  }

if(listitem == 1) // Kiss FM

{

PlayAudioStreamForPlayer(playerid, "http://80.86.106.136/listen.pls");

SendClientMessage(playerid, COLOR_YELLOW, "Pentru a opri radioul foloseste [/radiooff]");

}

if(listitem == 2) // Radio 21

{

PlayAudioStreamForPlayer(playerid, "http://www.radio21.ro/site/Radio21Live.m3u/");//

                SendClientMessage(playerid, COLOR_YELLOW, "Pentru a opri radioul foloseste [/radiooff]");

  }

}

return 1;

}[/pawn]

Cand selectez radio zu ; kiss fm ; ... Nu imi reda nimic in difuzoare ... (dar impuscaturile si restul sunetelor SA:MP mi le reda)

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.