SA-MP Forums Archive
[Tutorial] How to make Join music stream with auto start - 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)
+---- Forum: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] How to make Join music stream with auto start (/showthread.php?tid=510391)



How to make Join music stream with auto start - satafinix - 30.04.2014

How To Make a Simple Join Music Stream with auto start when player connect to server!


Hello guys, today I will be showing you how to make Simple Join Music Stream with auto start



● First you must host your music MP3 you want & best place to host it is DropBox Register an account and upload your Music

● Go to your download link Bar & Take just the Download bar Link and copy it!




● Now in your Gamemode go down into:

Код:
public OnPlayerConnect(playerid)
Down it Past this code:

Quote:

PlayAudioStreamForPlayer(playerid, "YOUR_MUSIC_LINK_HERE");

Working Exemple:

Код:
PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/u/81961893/Eric%20Prydz%20-%20Pjanoo.mp3");
● When you connect to your server you will see this:



How to off it In-Game?:

● Simply Start new Command Called /Offradio or what ever you want & Add This code on the Command:

Код:
StopAudioStreamForPlayer(playerid);
Exemple:

Код:
}

COMMAND:radiooff(playerid,params[])
{
        StopAudioStreamForPlayer(playerid);
        GameTextForPlayer(playerid, "~r~Radio ~y~Is ~b~Off", 2000, 5);
        return 0;
}
Quote:

By: SkulleR

Hope you helped Dont Forget the +Rep


Re: How to make Join music stream with auto start - Eth - 01.05.2014




Re: How to make Join music stream with auto start - satafinix - 01.05.2014

what?


Re: How to make Join music stream with auto start - Eth - 01.05.2014

nice one finally explained


Re: How to make Join music stream with auto start - satafinix - 01.05.2014

Quote:
Originally Posted by Eth
Посмотреть сообщение
nice one finally explained
Thanks, i allways post to fastly


Re: How to make Join music stream with auto start - RayC - 20.08.2014

This actually helped thanks :') Good job !


Re: How to make Join music stream with auto start - Gogorakis - 20.08.2014

Or you can just put "StopAudioStreamForPlayer(playerid);" under "OnPlayerSpawn"..


Re: How to make Join music stream with auto start - Triage - 02.09.2014

I tried uploading my music to drop-box but it's not working.


Re: How to make Join music stream with auto start - Youssefree - 27.06.2016

Quote:
Originally Posted by Eth
Посмотреть сообщение
I was born on 12.05.2000 :v
you are 1month older than me

On-topic: awesome!!


Re: How to make Join music stream with auto start - Quinncell - 02.07.2016

Quote:
Originally Posted by Youssefree
Посмотреть сообщение
I was born on 12.05.2000 :v
you are 1month older than me
That was such an interesting reply to bump the thread with