Garry's Mod

Garry's Mod

Melonbomber
MikeNized 25 May, 2014 @ 7:47am
Play a sound at Roundstart
Greetings!

Wishing to improve some things before, eventually submit them afterwards, I was looking for the proper command to play a music at the beginning of the round.

For the moment, considering I'm not wishing editing the source code itself, I'm going first with an hook.add, to start a music at the same time the round start.
surface.PlaySound(...) seems the proper idea to play a sound when the round starts. Unfortunately, I didn't find the way to kill the audio feed once the round is over, I'll look into that later on (Maybe a sound.PlayFile could works too...)

Anyway, what is the correct function to start the round?

Thanks in advance!