Raised This Month: $32 Target: $400
 8% 

little question


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joelverghese
Member
Join Date: Oct 2011
Old 04-04-2014 , 08:30   little question
Reply With Quote #1

is there any type of limit like HLDS can't play a specific a wav file because i am constantly trying to play a sound via client_cmd but still it doesn't ( the sounds like humiliation etc etc plays without any bug) but when i use my sound which is a wav (i can't play it)
joelverghese is offline
Shooting King
RAAASENGAN
Join Date: Mar 2012
Location: India
Old 04-04-2014 , 09:43   Re: little question
Reply With Quote #2

code ?
__________________
As every time said, don't ever UNDERESTIMATE me.

Donate - Here
Shooting King is offline
joelverghese
Member
Join Date: Oct 2011
Old 04-04-2014 , 10:06   Re: little question
Reply With Quote #3

Quote:
Originally Posted by Shooting King View Post
code ?
small part i am sharing that's the main part
PHP Code:
public plugin_precache()
{
    
precache_sound("misc/humiliation.wav");

PHP Code:
client_cmd(0,"spk misc/humiliation"); 
EDIT- I changed the HUMILIATION FILE WITH OTHER FILE i.e a WAV FILE again

Last edited by joelverghese; 04-04-2014 at 10:09.
joelverghese is offline
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 04-04-2014 , 10:13   Re: little question
Reply With Quote #4

PHP Code:
client_cmd(0,"spk misc/humiliation"); 
-->
PHP Code:
client_cmd(0,"spk misc/humiliation.wav"); 
__________________
PM me for private work.



Last edited by Buckshot; 04-04-2014 at 10:13.
Buckshot is offline
Send a message via Skype™ to Buckshot
joelverghese
Member
Join Date: Oct 2011
Old 04-04-2014 , 10:20   Re: little question
Reply With Quote #5

Quote:
Originally Posted by Buckshot View Post
PHP Code:
client_cmd(0,"spk misc/humiliation"); 
-->
PHP Code:
client_cmd(0,"spk misc/humiliation.wav"); 
are you serious ?
joelverghese is offline
Old 04-04-2014, 10:22
Buckshot
This message has been deleted by Buckshot.
joelverghese
Member
Join Date: Oct 2011
Old 04-04-2014 , 10:30   Re: little question
Reply With Quote #6

Quote:
Originally Posted by Buckshot View Post
Yes.
well

this normal humiliation sound works with the code i gave above but doesn't with my sound.
http://www.fileconvoy.com/gf.php?id=...6dfedfceed59c9

EDIT- ADDED THE SOUND I AM TRYING TO USE

Last edited by joelverghese; 04-04-2014 at 10:45.
joelverghese is offline
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 04-04-2014 , 10:38   Re: little question
Reply With Quote #7

Post your full code and i'll fix it for you. If it isn't working after that, there is something wrong with your sound. Also check your logs for runtime errors etc..
__________________
PM me for private work.



Last edited by Buckshot; 04-04-2014 at 10:42.
Buckshot is offline
Send a message via Skype™ to Buckshot
joelverghese
Member
Join Date: Oct 2011
Old 04-04-2014 , 10:41   Re: little question
Reply With Quote #8

Quote:
Originally Posted by Buckshot View Post
Post your full code and i'll fix it for you. If it isn't working after that, there is something wrong with your sound. Also check your logs for runtime errors etc..
please check, i have sent you an pm
joelverghese is offline
joelverghese
Member
Join Date: Oct 2011
Old 04-04-2014 , 11:09   Re: little question
Reply With Quote #9

ok so i've got it fixed instead of using wav i switched to mp3 and this thread helped me doing https://forums.alliedmods.net/showthread.php?t=69821 thanks for all who helped
joelverghese is offline
kam3n1tza
Member
Join Date: Jul 2011
Old 04-04-2014 , 12:28   Re: little question
Reply With Quote #10

Try this:
PHP Code:
client_cmd(0,"spk misc/humiliation"); 
-->
PHP Code:
emit_sound(0CHAN_ITEM"misc/humiliation.wav"1.0ATTN_NORM0PITCH_NORM

Last edited by kam3n1tza; 04-04-2014 at 12:29.
kam3n1tza 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 21:30.


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