• Trouble with TTT Round music.
    2 replies, posted
I'm having some trouble with this script: [CODE]resource.AddFile("sound/ttt/iswin.mp3") resource.AddFile("sound/ttt/tswin.mp3") // End of Round Sound NOT MUSIC local function PlaySound(wintype) if wintype == WIN_INNOCENT then BroadcastLua('surface.PlaySound("sound/ttt/iswin.mp3")') else BroadcastLua('surface.PlaySound("sound/ttt/tswin.mp3")') end end hook.Add("TTTEndRound", "PlaySound", PlaySound)[/CODE] I can't seem to get it to work. I have added this to LUA/SERVER/Myfile(TTT_Hook.lua) And it's not working. The sounds are not playing at the round start. They are downloading to clients, but refuse to play. If there is anyone who knows what I need to do, Please give instruction to me. Thank you. [highlight](User was banned for this post ("Wrong section" - Gran PC))[/highlight]
In the BroadcastLua part remove the sound/ part of the directory structure. ie change. BroadcastLua('surface.PlaySound("sound/ttt/iswin.mp3")') to BroadcastLua('surface.PlaySound("ttt/iswin.mp3")')
Is there any way I can have more then one song? I.E Just a random song plays at the end of the round. Thanks for your help btw
Sorry, you need to Log In to post a reply to this thread.