if CLIENT then return end

function EndMusic (res)
if res == WIN_INNOCENT then
        if LocalPlayer().channel ~= nil && LocalPlayer().channel:IsValid() then
                LocalPlayer().channel:Stop()
        end
        sound.PlayURL(url,"http://dl.dropboxusercontent.com/u/192408473/iwins53765.wav",function(ch)
                if ch != nil and ch:IsValid() then
                        ch:Play()
                        LocalPlayer().channel = ch
                end
                end)
elseif res == WIN_TIMELIMIT then
        if LocalPlayer().channel ~= nil && LocalPlayer().channel:IsValid() then
                LocalPlayer().channel:Stop()
        end
        sound.PlayURL(url,"http://dl.dropboxusercontent.com/u/192408473/iwins53765.wav",function(ch)
                if ch != nil and ch:IsValid() then
                        ch:Play()
                        LocalPlayer().channel = ch
                end
                end)
elseif res == WIN_TRAITOR then
        if LocalPlayer().channel ~= nil && LocalPlayer().channel:IsValid() then
                LocalPlayer().channel:Stop()
        end
        sound.PlayURL(url,"http://dl.dropboxusercontent.com/u/192408473/iwins53765.wav",function(ch)
                if ch != nil and ch:IsValid() then
                        ch:Play()
                        LocalPlayer().channel = ch
                end
                end)
end
end
hook.Add("TTTEndRound", "EndRoundMusic", EndMusic)