• End Round Music Download music from the internet instead of the server owner
    1 replies, posted
I want to change the path to a url. What do I have to do? function WST:AddSound(winType, path, artist, title) if !file.Exists("sound/"..path, "GAME") then Msg("Round Music -- "); print("The file: 'sound/"..path.."' Does not exist!"); return; else Msg("Round Music -- "); print("Adding the file: 'sound/"..path.."'") end; local sound = {} sound.path = path if artist and title then sound.artist = artist; sound.title = title; end; table.insert(WST.sounds[winType], sound) resource.AddFile("sound/"..path) util.PrecacheSound("sound/"..path) end
Use this, it eliminates the need for downloads and you can use urls [url]http://forums.ulyssesmod.net/index.php?topic=6917.0[/url]
Sorry, you need to Log In to post a reply to this thread.