Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Player:PlaySound(args)
- if !ValidEntity(self) then return end
- if args[1] && file.Exists("../sound/"..args[1]) then
- surface.PlaySound( args[1] )
- end
- if args[2] && !file.Exists("../sound/"..args[1]) then
- surface.PlaySound( args[2] )
- end
- end
- concommand.Add("UD_PlaySound", function(ply, command, args)
- ply:PlaySound(args)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement