Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. @name CP Running Sound
  2. if(first()){entity():setAlpha(0)}
  3.  
  4. Sounds = table()
  5. Sounds[1,string] = "npc/metropolice/gear1.wav"
  6. Sounds[2,string] = "npc/metropolice/gear2.wav"
  7. Sounds[3,string] = "npc/metropolice/gear3.wav"
  8. Sounds[4,string] = "npc/metropolice/gear4.wav"
  9. Sounds[5,string] = "npc/metropolice/gear5.wav"
  10. Sounds[6,string] = "npc/metropolice/gear6.wav"
  11.  
  12. interval(300)
  13.  
  14. if (clk() && owner():keySprint()){
  15. owner():soundPlay(1,0,Sounds[floor(random(1,6)),string])
  16. }
  17.  
  18. if (owner():lastSaid():sub(1,4) == "vol "){
  19. soundVolume(1,owner():lastSaid():sub(5):toNumber())
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement