Advertisement
szymski

Untitled

Nov 21st, 2015
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local num = math.random(0,2)
  2.  
  3. if num == 0 then
  4. hook.Add("PlayerDeathSound", "DeFlatline", function() return true end)
  5. local noise = Sound("sadviolin.wav")
  6. hook.Add("PlayerDeath", "NewSound", function(vic,unused1,unused2) vic:EmitSound(noise) end)
  7. else
  8. hook.Add("PlayerDeathSound", "Rock", function() return true end)
  9. local noise = Sound("rock.wav")
  10. hook.Add("PlayerDeath", "NewSound", function(vic,unused1,unused2) vic:EmitSound(noise)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement