SA-MP Forums Archive
help , how to Create music - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help , how to Create music (/showthread.php?tid=431576)



help , how to Create music - morocco - 19.04.2013

Hi guys


Please how if player enter to Alhmaber or HQ create music


Thanks all


Re : help , how to Create music - thegreathom - 19.04.2013

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.


Re : help , how to Create music - morocco - 19.04.2013

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


Re : help , how to Create music - thegreathom - 19.04.2013

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.


Re : help , how to Create music - morocco - 19.04.2013

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 ?


Re: help , how to Create music - SilverKiller - 19.04.2013

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.


Re : Re: help , how to Create music - morocco - 19.04.2013

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)


Re: help , how to Create music - SilverKiller - 19.04.2013

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



Re: help , how to Create music - horsemeat - 19.04.2013

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


Re : Re: help , how to Create music - morocco - 19.04.2013

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 !!