Hey, i am trying to put two custom sound files into the ttt script to play then the round ends
i edited the part in cl_init.lua to
--- optional sound cues on round start and end
CreateConVar("ttt_cl_soundcues", "0")
local cues = {
Sound("ttt/your_team_win.mp3"),
Sound("ttt/your_team_lost.mp3")
};
local function PlaySoundCue()
if GetConVar("ttt_cl_soundcues"):GetBool() then
surface.PlaySound(table.Random(cues))
end
end
GM.TTTBeginRound = PlaySoundCue
GM.TTTEndRound = PlaySoundCue
but it doesn't work or they can't download the files 2 sounds files when connecting to the server
can anyone tell me if its correct or is there anything wrong?