[Tutorial] How to make Join music stream with auto start
#1

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
Reply
#2

Reply
#3

what?
Reply
#4

nice one finally explained
Reply
#5

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

This actually helped thanks :') Good job !
Reply
#7

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

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

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

On-topic: awesome!!
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)