Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ply = LocalPlayer()
- sound.Add( {
- name = "flashsound2",
- channel = CHAN_STATIC,
- volume = 1,
- sound = "flashsound3.wav"
- } )
- local FlashSound = Sound("flashsound2")
- function PlaySound()
- if ply:getDarkRPVar("job") == sfsjobname and ply:GetVelocity():Length() > 50 then
- local mysound = CreateSound(ply, FlashSound )
- mysound:Play() -- starts the sound
- else
- end
- end
- hook.Add("Think", "SecondPrint", PlaySound)
- function PrintBones( ply )
- for i=0, ply:GetBoneCount()-1 do
- print( i, ply:GetBoneName( i ) )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement