Raised This Month: $ Target: $400
 0% 

Pain sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cstrike37
Member
Join Date: Jan 2012
Old 05-05-2013 , 23:01   Pain sound
Reply With Quote #1

Solved! Thanks!

Last edited by cstrike37; 05-06-2013 at 21:42. Reason: Solved
cstrike37 is offline
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 05-06-2013 , 03:25   Re: Pain sound
Reply With Quote #2

Maybe your model is "sas" or there isn't only one sound which contains "pl_"
didoWEE is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-06-2013 , 13:21   Re: Pain sound
Reply With Quote #3

if(equal(sound[7],"pl_",4) && equal(model, "sas") == 1)

Last edited by .Dare Devil.; 05-06-2013 at 13:23.
.Dare Devil. is offline
cstrike37
Member
Join Date: Jan 2012
Old 05-06-2013 , 19:24   Re: Pain sound
Reply With Quote #4

Thanks!
I have another question, how do you add a radius to the sound? Ex. if the player is inside the 400 radius he will hear the sound.

Last edited by cstrike37; 05-06-2013 at 19:43.
cstrike37 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-06-2013 , 19:42   Re: Pain sound
Reply With Quote #5

play around with this... Float:att is the radius of sound heard by players.

Code:
 emit_sound ( index, channel, const sample[], Float:vol, Float:att, flags, pitch )

Sound Constants
__________________
Blizzard_87 is offline
cstrike37
Member
Join Date: Jan 2012
Old 05-06-2013 , 20:01   Re: Pain sound
Reply With Quote #6

can you give me an example?
cstrike37 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-06-2013 , 20:12   Re: Pain sound
Reply With Quote #7

the sound wont work in this code just edit it and put a sound you have then test it and play round with settings and see how it works

Spoiler
__________________

Last edited by Blizzard_87; 05-06-2013 at 20:13.
Blizzard_87 is offline
cstrike37
Member
Join Date: Jan 2012
Old 05-06-2013 , 20:13   Re: Pain sound
Reply With Quote #8

oh i get it now
thanks so much!!
cstrike37 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-06-2013 , 20:14   Re: Pain sound
Reply With Quote #9

Quote:
Originally Posted by cstrike37 View Post
oh i get it now
thanks so much!!
Welcome
__________________
Blizzard_87 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode