Raised This Month: $ Target: $400
 0% 

Help for weapon sound replacement


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
4554
Senior Member
Join Date: Aug 2009
Old 07-19-2010 , 10:41   Help for weapon sound replacement
Reply With Quote #1

PHP Code:
public Event_ShotFired(id)
{
if(
g_hasgun[id])
{
new 
crap
new weapon get_user_weapon(idcrapcrap)
if(
weapon == CSW_DEAGLE)
{
new 
weaponID read_data
new 
wAmmo read_data
if( 
g_nCurWeapon[id-1][0] != weaponID )

g_nCurWeapon[id-1][0] = weaponID 
g_nCurWeapon
[id-1][1] = wAmmo 
return PLUGIN_CONTINUE 

if( 
g_nCurWeapon[id-1][1] < wAmmo )

g_nCurWeapon[id-1][1] = wAmmo 
return PLUGIN_CONTINUE 
}
if( 
g_nCurWeapon[id-1][1] == wAmmo )
return 
PLUGIN_CONTINUE 
g_nCurWeapon
[id-1][1] = wAmmo 
g_nCurWeapon
[id-1][0] = weaponID 
engfunc
(EngFunc_EmitSound,id,CHAN_WEAPON,FIRE_SOUND,1.0,ATTN_NORM,0,PITCH_NORM)
}
}
return 
PLUGIN_CONTINUE

1. Why the first fire don't have new fire sound? (second have)
2. It don't have new fire sound when i zooming (Sniper) (I have change to CSW_AWP or something)

Last edited by 4554; 07-19-2010 at 10:48.
4554 is offline
 



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 07:04.


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