Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // SERVERSIDE - add to terrortown/gamemode/init.lua
- function _R.Player:PlaySound(sound)
- umsg.Start("playsound", self)
- umsg.String(sound)
- umsg.End()
- end
- hook.Add("PlayerInitialSpawn", "IntroSound", function(ply)
- timer.Simple(1, function()
- ply:PlaySound("rvgttt/intro.mp3")
- end)
- end)
- // CLIENTSIDE - add to terrortown/gamemode/cl_init.lua
- usermessage.Hook("playsound", function(data)
- local sfile=data:ReadString()
- surface.PlaySound(sfile)
- end)
Advertisement
Add Comment
Please, Sign In to add comment