Raised This Month: $ Target: $400
 0% 

USP Weapon, replace shots-sound.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
iNspiratioN
Member
Join Date: Feb 2009
Location: Lithuania
Old 02-28-2009 , 05:39   Re: USP Weapon, replace shots-sound.
Reply With Quote #5

use "weapons/usp1.wav" for silence shot.
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

new g_soundlist[2][64] =
{
    
"weapons/usp1.wav",
    
"weapons/usp2.wav"
}

public 
plugin_init() {
    
register_forward(FM_EmitSound"block_sound")
}

public 
block_sound(entitychannel, const sound[]) {

    new 
g_listsize sizeof g_soundlist
    
for(new ii<g_listsizei++)
    {
        if( 
equali(soundg_soundlist[i]) )
            return 
FMRES_SUPERCEDE
    
}
    return 
FMRES_IGNORED

I guess like this...
Attached Files
File Type: amxx usp_sound.amxx (1.6 KB, 201 views)
File Type: sma Get Plugin or Get Source (usp_sound.sma - 740 views - 482 Bytes)

Last edited by iNspiratioN; 02-28-2009 at 05:52.
iNspiratioN 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 17:08.


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