Raised This Month: $ Target: $400
 0% 

Sound codes.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-23-2009 , 00:41   Sound codes.
Reply With Quote #1

Is it possible to use this:

PHP Code:
new Firstblood[ ] = { "zombie_plague/holyshit.wav" }

precache_soundFirstblood )

emit_soundidCHAN_STREAMFirstblood1.0ATTN_NORM0PITCH_HIGH 
without using
PHP Code:
#include <fakemeta> 
??
Mr.Noobie is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-23-2009 , 00:50   Re: Sound codes.
Reply With Quote #2

Maybe you should just try it.
__________________
fysiks is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-23-2009 , 01:29   Re: Sound codes.
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
Maybe you should just try it.
Yeah i did, because i trying to reduce the useage. i want my server to reduce lag.
Mr.Noobie is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-23-2009 , 01:36   Re: Sound codes.
Reply With Quote #4

or

PHP Code:
client_cmd(id"spk %s"Firstblood
But i think is the same.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Kiske
Veteran Member
Join Date: May 2009
Old 08-23-2009 , 01:48   Re: Sound codes.
Reply With Quote #5

One Question:

PHP Code:
new Firstblood[ ] = { "zombie_plague/holyshit.wav" 
Or:
PHP Code:
new const Firstblood[ ][ ] = { "zombie_plague/holyshit.wav" 
??
__________________

Kiske is offline
Send a message via Skype™ to Kiske
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 08-23-2009 , 07:39   Re: Sound codes.
Reply With Quote #6

Quote:
Originally Posted by Kiske View Post
One Question:

PHP Code:
new Firstblood[ ] = { "zombie_plague/holyshit.wav" 
Or:
PHP Code:
new const Firstblood[ ][ ] = { "zombie_plague/holyshit.wav" 
??
One sound:

PHP Code:
new Firstblood[ ] = { "zombie_plague/holyshit.wav" 
Many sounds:

PHP Code:
new const Firstblood[ ][ ] = { "zombie_plague/holyshit.wav""zombie_plague/holyshit.wav" 
__________________
Bad_Bud is offline
Kiske
Veteran Member
Join Date: May 2009
Old 08-23-2009 , 16:12   Re: Sound codes.
Reply With Quote #7

Quote:
Originally Posted by Bad_Bud View Post
One sound:

PHP Code:
new Firstblood[ ] = { "zombie_plague/holyshit.wav" 
Many sounds:

PHP Code:
new const Firstblood[ ][ ] = { "zombie_plague/holyshit.wav""zombie_plague/holyshit.wav" 
Oh, thanks ^^
__________________

Kiske is offline
Send a message via Skype™ to Kiske
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-23-2009 , 02:29   Re: Sound codes.
Reply With Quote #8

emit_sound() doesn't need fakemeta anyways.

Quote:
Originally Posted by Alucard^ View Post
or

PHP Code:
client_cmd(id"spk %s"Firstblood
But i think is the same.
It's completely different.
__________________
fysiks is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 08-23-2009 , 02:37   Re: Sound codes.
Reply With Quote #9

Quote:
Originally Posted by Alucard^ View Post
or

PHP Code:
client_cmd(id"spk %s"Firstblood
But i think is the same.
Does it play only for the victim or surrounding area ?
Mr.Noobie is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-23-2009 , 03:37   Re: Sound codes.
Reply With Quote #10

Quote:
Originally Posted by Mr.Noobie View Post
Does it play only for the victim or surrounding area ?
It will only play to the victim. To play to the surrounding area you need to use
emit_sound()
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 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 15:06.


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