Raised This Month: $ Target: $400
 0% 

need help witch classes sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 06-06-2009 , 12:33   need help witch classes sounds
Reply With Quote #1

PHP Code:
if ( PlayerClass[id] == 
{
new const 
g_sound_miss[][] =

"l4d/miss1_hunter.wav"
"l4d/miss2_hunter.wav" 
}
new const 
g_sound_hit[][] = 

"l4d/strike1_hunter.wav"
"l4d/strike2_hunter.wav",
"l4d/strike3_hunter.wav" 
}
new const 
g_sound_pain[][] =
{
"l4d/pain1_hunter.wav",
"l4d/pain2_hunter.wav",
"l4d/pain3_hunter.wav",
"l4d/pain4_hunter.wav",
"l4d/pain5_hunter.wav",
"l4d/pain6_hunter.wav",
"l4d/pain7_hunter.wav"
}
new const 
g_sound_die[][] =
{
"l4d/die1_hunter.wav",
"l4d/die2_hunter.wav",
"l4d/die3_hunter.wav",
"l4d/die4_hunter.wav",
"l4d/die5_hunter.wav",
"l4d/die6_hunter.wav"

else if (
PlayerClass[id] == 1)
{
new const 
g_sound_miss[][] =

"l4d/miss1_smoker.wav"
"l4d/miss2_smoker.wav" 
}
new const 
g_sound_hit[][] = 

"l4d/strike1_smoker.wav"
"l4d/strike2_smoker.wav",
"l4d/strike3_smoker.wav" 
}
new const 
g_sound_pain[][] =
{
"l4d/pain1_smoker.wav",
"l4d/pain2_smoker.wav",
"l4d/pain3_smoker.wav",
"l4d/pain4_smoker.wav",
"l4d/pain5_smoker.wav",
"l4d/pain6_smoker.wav",
"l4d/pain7_smoker.wav"
}
new const 
g_sound_die[][] =
{
"l4d/die1_smoker.wav",
"l4d/die2_smoker.wav",
"l4d/die3_smoker.wav",
"l4d/die4_smoker.wav",
"l4d/die5_smoker.wav",
"l4d/die6_smoker.wav"

else if (
PlayerClass[id] == 2)
{
new const 
g_sound_miss[][] =

"l4d/miss1_boomer.wav"
"l4d/miss2_boomer.wav" 
}
new const 
g_sound_hit[][] = 

"l4d/strike1_boomer.wav"
"l4d/strike2_boomer.wav",
"l4d/strike3_boomer.wav" 
}
new const 
g_sound_pain[][] =
{
"l4d/pain1_boomer.wav",
"l4d/pain2_boomer.wav",
"l4d/pain3_boomer.wav",
"l4d/pain4_boomer.wav",
"l4d/pain5_boomer.wav",
"l4d/pain6_boomer.wav",
"l4d/pain7_boomer.wav"
}
new const 
g_sound_die[][] =
{
"l4d/die1_boomer.wav",
"l4d/die2_boomer.wav",
"l4d/die3_boomer.wav",
"l4d/die4_boomer.wav",
"l4d/die5_boomer.wav",
"l4d/die6_boomer.wav"

What i do bad for this?
I know this need a do on spawn but i need spaw codes please help
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-06-2009 , 12:41   Re: need help witch classes sounds
Reply With Quote #2

WOW, look at you! What an awesome coder! ..before even posting, please just read a scripting tutorial. Wait, no! - stop coding instead.

EDIT: 102 threads?! WTF..
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-06-2009 , 12:43   Re: need help witch classes sounds
Reply With Quote #3

"sound/l4d/*_*.wav"
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 06-06-2009 , 13:04   Re: need help witch classes sounds
Reply With Quote #4

Quote:
Originally Posted by TitANious View Post
"sound/l4d/*_*.wav"
That helps a lot - nothing IMO.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-06-2009 , 13:08   Re: need help witch classes sounds
Reply With Quote #5

An example:
PHP Code:
"sound/l4d/pain4_smoker.wav" 
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 06-06-2009 , 13:24   Re: need help witch classes sounds
Reply With Quote #6

I want to do this sound for classes:
PHP Code:
          if (!g_infreezetime && g_zombie[id] && PlayerClass[id] == 0
          { 

          
// There are a sounds Hunter - give example

          

PHP Code:
          if (!g_infreezetime && g_zombie[id] && PlayerClass[id] == 1
          { 

          
// There are a sounds  Smoker- give example

          

and etc..
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Owyn
Veteran Member
Join Date: Nov 2007
Old 06-06-2009 , 13:30   Re: need help witch classes sounds
Reply With Quote #7

Quote:
Originally Posted by ~Ice*shOt View Post
I want to do this sound for classes:
PHP Code:
          if (!g_infreezetime && g_zombie[id] && PlayerClass[id] == 0
          { 

          
// There are a sounds Hunter - give example

          

PHP Code:
          if (!g_infreezetime && g_zombie[id] && PlayerClass[id] == 1
          { 

          
// There are a sounds  Smoker- give example

          

and etc..
http://www.amxmodx.org/funcwiki.php?go=func&id=282
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 06-06-2009 , 13:37   Re: need help witch classes sounds
Reply With Quote #8

.Owyn. You are GOD , but i have use this it ?:
<B>
PHP Code:
emit_sound (idchannelsample[], Float:volFloat:att,flagspitch)
{
// My dounds here ?


Last edited by ~Ice*shOt; 06-06-2009 at 13:43.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 06-06-2009 , 13:46   Re: need help witch classes sounds
Reply With Quote #9

Look here..
emit_sound ( index, channel, sample[], Float:vol, Float:att,flags, pitch )

Index = id or something like that
channel = Idk
Sample = The sound
Idk last
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 06-06-2009 , 14:26   Re: need help witch classes sounds
Reply With Quote #10

what means idk ?, can give me more example ?
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
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 23:39.


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