Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name CP Running Sound
- if(first()){entity():setAlpha(0)}
- Sounds = table()
- Sounds[1,string] = "npc/metropolice/gear1.wav"
- Sounds[2,string] = "npc/metropolice/gear2.wav"
- Sounds[3,string] = "npc/metropolice/gear3.wav"
- Sounds[4,string] = "npc/metropolice/gear4.wav"
- Sounds[5,string] = "npc/metropolice/gear5.wav"
- Sounds[6,string] = "npc/metropolice/gear6.wav"
- interval(300)
- if (clk() && owner():keySprint()){
- owner():soundPlay(1,0,Sounds[floor(random(1,6)),string])
- }
- if (owner():lastSaid():sub(1,4) == "vol "){
- soundVolume(1,owner():lastSaid():sub(5):toNumber())
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement