Jump to content
  • 0

Question

Posted

;;) Salutare , cum pot reda si eu o piesa pe serverul meu ..am facut o coamnda /melodie.  ..etc am adaugat plugins audio .. tot dar nu se reda :-? nu stiu din ce cauza..  Ma puteti ajuta?

8 answers to this question

Recommended Posts

Posted

posteaza comanda :) si tot ce apartine de ea

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

[pawn] -> Aceasta e . se compileaza perfect doar ca nu pot sa pun..

:#define DIALOG_MUSIC 4002

public OnDialogResponse

Adaugam

if(dialogid == DIALOG_MUSIC)

  {

      strval(inputtext);

      for(new i = 0; i < MAX_PLAYERS; i++)

      {

        if(IsPlayerConnected(i))

        {

            PlayAudioStreamForPlayer(i, inputtext);

        }

      }

  }

OnPlayerCommandtext

-----------------------------------------

///melodie//

      if (strcmp("/melodie", cmd, true) == 0)

  {

      if(PlayerInfo[playerid][pAdmin] >= 3)

      {

          ShowPlayerDialog(playerid,DIALOG_MUSIC,DIALOG_STYLE_INPUT ,"Muzica","Va rugam sa introduceti link-ul: ","Porneste","Renunta");

      }

        return 1;

  }

  if (strcmp("/stopmelodie", cmd, true) == 0)

  {

      if(PlayerInfo[playerid][pAdmin] >= 3)

      {

        for(new i = 0; i < MAX_PLAYERS; i++)

          {

            if(IsPlayerConnected(i))

            {

              StopAudioStreamForPlayer(i);

            }

        }

      }

      return 1;

  }

NOTA:[/pawn]

Posted

mai bine faci unu simplu decat asa , de ex :

CMD:mp3(playerid, params[]
{
ShowPlayerDialog(playerid, 4002, DIALOG_STYLE_LIST, "MP3","Nume melodie","Asculta","Renunta");
}

if(dialogid == 4002)
{
if(listitem == 0)
{
PlayAudioStreamForPlayer(playerid, " link melodie ");
}

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

mai bine faci unu simplu decat asa , de ex :

CMD:mp3(playerid, params[]
{
ShowPlayerDialog(playerid, 4002, DIALOG_STYLE_LIST, "MP3","Nume melodie","Asculta","Renunta");
}

if(dialogid == 4002)
{
if(listitem == 0)
{
PlayAudioStreamForPlayer(playerid, " link melodie ");
}

Merge orice link ? sau trebuie sa fie .mp3 ca nu gasesc nici un site care sa imi dea extenisa mp3.

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.