SA-MP Forums Archive
How to add your own music to your own server? - 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: How to add your own music to your own server? (/showthread.php?tid=335918)



How to add your own music to your own server? - varga - 20.04.2012

As it was in the titlw i want to know how to create "http://something.something/music.mp3 !!! pls help me and i Rep you for the first helper who give correct answer... i am waiting for help. Please hurry


Re: How to add your own music to your own server? - WarriorEd22 - 20.04.2012

So you want it to play ingame? Here's one:

https://sampforum.blast.hk/showthread.php?tid=290595

It doesn't use the .mp3 format but you can always convert it and upload it somewhere or you can just play it off of *******!


Re: How to add your own music to your own server? - varga - 20.04.2012

thanks i will try


Re: How to add your own music to your own server? - varga - 20.04.2012

thx,
but i mean be a link like this "http://80.4.129.27/music/intro.mp3"


Re: How to add your own music to your own server? - WarriorEd22 - 20.04.2012

Someone like this? https://sampforum.blast.hk/showthread.php?tid=301430


Re: How to add your own music to your own server? - varga - 20.04.2012

nononoo ooooooooo it is so hard to say what i want.. ok i want to add paradise-coldplay but *******.com link doesnt work and i tried *******-mp3.org but not working after converting too
can anybody send me a code for OnPlayerConnect ? i REP him


Re: How to add your own music to your own server? - WarriorEd22 - 20.04.2012

Oh okay. Sorry. Is it like this?:

pawn Код:
public OnPlayerConnect(playerid) {

PlayAudioStreamForPlayer(playerid, "URL.mp3");

}

public OnPlayerSpawn(playerid) {

    StopAudioStreamForPlayer(playerid);

}
You can just change OnPlayerSpawn to whenever you want to stop playing the music.


Re: How to add your own music to your own server? - varga - 20.04.2012

not good i need that how to make it... so samp need to read from my PC like http://80.4.129.23/music/stairwaystoheavenbyJUN626.MP3
CAN u understand me? if not i will try to explain it more


Re: How to add your own music to your own server? - MP2 - 20.04.2012

You have to upload it. You can't play it from the local machine.


Re: How to add your own music to your own server? - Vince - 20.04.2012

You can if you install a webserver, like Apache.