Raised This Month: $ Target: $400
 0% 

Help for weapon sound replacement


Post New Thread Reply   
 
Thread Tools Display Modes
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
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 07-19-2010 , 10:43   Re: Help for weapon sound replacement
Reply With Quote #2

What is with you guys.. get acquainted with the php button.. copy the code again, edit your post, paste it, select it, hit the php button.

http://forums.alliedmods.net/showthread.php?t=26363
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
4554
Senior Member
Join Date: Aug 2009
Old 07-19-2010 , 10:44   Re: Help for weapon sound replacement
Reply With Quote #3

Quote:
Originally Posted by GXLZPGX View Post
What is with you guys.. get acquainted with the php button.. copy the code again, edit your post, paste it, select it, hit the php button.

http://forums.alliedmods.net/showthread.php?t=26363
Okay, sorry.
4554 is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 07-19-2010 , 12:30   Re: Help for weapon sound replacement
Reply With Quote #4

Quote:
Originally Posted by 4554 View Post
Okay, sorry.
Now it doesn't have the indentations. Do you have the original code with the correct indentations?
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX 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 07:04.


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