Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. function Player:PlaySound(args)
  2.     if !ValidEntity(self) then return end
  3.     if args[1] && file.Exists("../sound/"..args[1]) then
  4.         surface.PlaySound( args[1] )
  5.     end
  6.     if args[2] && !file.Exists("../sound/"..args[1]) then
  7.         surface.PlaySound( args[2] )
  8.     end
  9. end
  10. concommand.Add("UD_PlaySound", function(ply, command, args)
  11.     ply:PlaySound(args)
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement