AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Sound codes. (https://forums.alliedmods.net/showthread.php?t=101345)

Mr.Noobie 08-23-2009 00:41

Sound codes.
 
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> 

??

fysiks 08-23-2009 00:50

Re: Sound codes.
 
Maybe you should just try it.

Mr.Noobie 08-23-2009 01:29

Re: Sound codes.
 
Quote:

Originally Posted by fysiks (Post 909826)
Maybe you should just try it.

Yeah i did, because i trying to reduce the useage. i want my server to reduce lag.

Alucard^ 08-23-2009 01:36

Re: Sound codes.
 
or

PHP Code:

client_cmd(id"spk %s"Firstblood

But i think is the same.

Kiske 08-23-2009 01:48

Re: Sound codes.
 
One Question:

PHP Code:

new Firstblood[ ] = { "zombie_plague/holyshit.wav" 

Or:
PHP Code:

new const Firstblood[ ][ ] = { "zombie_plague/holyshit.wav" 

??

Alka 08-23-2009 02:22

Re: Sound codes.
 
First, also you can use what Alucard^ suggested.

ConnorMcLeod 08-23-2009 02:28

Re: Sound codes.
 
Remove fakemeta from your server won't reduce lag, you would better have to search bad coded plugins that can make your server lag.

fysiks 08-23-2009 02:29

Re: Sound codes.
 
emit_sound() doesn't need fakemeta anyways.

Quote:

Originally Posted by Alucard^ (Post 909857)
or

PHP Code:

client_cmd(id"spk %s"Firstblood

But i think is the same.

It's completely different.

Mr.Noobie 08-23-2009 02:37

Re: Sound codes.
 
Quote:

Originally Posted by Alucard^ (Post 909857)
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 ?

ot_207 08-23-2009 03:37

Re: Sound codes.
 
Quote:

Originally Posted by Mr.Noobie (Post 909881)
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()


All times are GMT -4. The time now is 15:06.

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