Hello people,
So I was just curious, about 2 different things...
First, how would I play a sound to everyone on the server?
Second, how would I stream music from youtube?
You can use the [URL="http://wiki.garrysmod.com/page/Category:sound"]sound [/URL] library.
Examples of networking a string to a client and the audio playing..
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_zipped_code/acecool_ttt_end_round.rar[/url]
[url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_zipped_code/acecool_ttt_end_round_music.rar[/url]
Streaming from Youtube could be done one of many different ways, however, I'd suggest setting up an HTML page with the Youtube video/music track / list. JavaScript OnClick of the music/track it loads the Youtube "video" but hidden. On the HTML panel, you can use JavaScript to interface with the Youtube video to control things such as volume, skipping, play/pause, etc...
Sorry, you need to Log In to post a reply to this thread.