I’m having some trouble with this script:
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)
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.
(User was banned for this post ("Wrong section" - Gran PC))