help , how to Create music
#1

Hi guys


Please how if player enter to Alhmaber or HQ create music


Thanks all
Reply
#2

pawn Код:
// It's an example :
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, X,Y,Z)
        //PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
        PlayAudioStreamForPlayer(playerid, "yoursongurl");
        /*
        need to know :
        The url to play. Valid formats are mp3 and ogg/vorbis. A link to a .pls (playlist) file will
        play that playlist.
        */

        return 1;
    }
    return 0;
}
Correct me I am wrong.
Reply
#3

Quote:
Originally Posted by thegreathom
Посмотреть сообщение
pawn Код:
// It's an example :
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid, X,Y,Z)
        //PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
        PlayAudioStreamForPlayer(playerid, "yoursongurl");
        /*
        need to know :
        The url to play. Valid formats are mp3 and ogg/vorbis. A link to a .pls (playlist) file will
        play that playlist.
        */

        return 1;
    }
    return 0;
}
Correct me I am wrong.
thank you !!

how to change MP3 to .pls ?

An'D i'm orry
Reply
#4

I don't see why you want to change mp3 to .pls, because the .mp3 format is allowed...

pawn Код:
An'D i'm sorry
You don't need to be sorry, you are here to learn so don't be scared to post help resquest.
Reply
#5

Quote:
Originally Posted by thegreathom
Посмотреть сообщение
You don't need to be sorry
When I meet one like you help others. I do not see what I say . Only thanks , and say sorry for many asked


one ask , i need any .inc or .dll for this work ?
Reply
#6

No,

To put songs use this tips :

Go to dropbox.com, sign up if you don't have an account, then upload a file, right click on it in https://www.dropbox.com/home then click share link, you will get a url that ends with .mp3 at the top, now make the dropbox.com in the url dl.dropbox.com and then copy the link and then paste it in PlayAudioStreamForPlayer.
Reply
#7

Quote:
Originally Posted by SilverKiller
Посмотреть сообщение
No,

To put songs use this tips :

Go to dropbox.com, sign up if you don't have an account, then upload a file, right click on it in https://www.dropbox.com/home then click share link, you will get a url that ends with .mp3 at the top, now make the dropbox.com in the url dl.dropbox.com and then copy the link and then paste it in PlayAudioStreamForPlayer.
thank you !!

i See on veideo i need delete https://www.dropbox.com/s/ctxqh0wt039oyac/Prison%20door%20sound%20effect.mp3

but i get Erreur (404)
Reply
#8

pawn Код:
PlayAudioStreamForPlayer(playerid, "dl.dropbox.com/s/ctxqh0wt039oyac/Prison%20door%20sound%20effect.mp3");
Reply
#9

quick question no point in starting a new thread can you use music from on your computer or does it have to be online
Reply
#10

Quote:
Originally Posted by SilverKiller
Посмотреть сообщение
pawn Код:
PlayAudioStreamForPlayer(playerid, "dl.dropbox.com/s/ctxqh0wt039oyac/Prison%20door%20sound%20effect.mp3");
Ok , thank you very much

but In Game
i get this Message
Код:
Audio stream: dl.dropbox.com/s/ctxqh0wt039oyac/Prison%20door%20sound%20effect.mp3
but nothing work !!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)