Raised This Month: $ Target: $400
 0% 

no pickup sound


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-22-2008 , 07:46   no pickup sound
Reply With Quote #1

hi guys, i am trying to do a "no pickup sound" when u pickup a weapon... i used all code of SchlumPF* plugin .. (weapon utilitys) but the plugin dont work :S

PHP Code:
/* Script generated by Pawn Studio */

#include <amxmodx>
#include <fakemeta>

#define PLUGIN    "New Plugin"
#define AUTHOR    "Unknown"
#define VERSION    "1.0"

new g_iBlockSound[33];

new 
g_iCvar[1];

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
g_iCvar[0] = register_cvar"weapons_blocksound""1" );
    
    
register_forwardFM_EmitSound"fwdEmitSound" );
}

public 
fwdEmitSoundplrchannel, const sound[] )
{        
    if( 
equalisound"items/gunpickup2.wav" ) )
    {
        if( 
get_pcvar_numg_iCvar[0] ) && g_iBlockSound[plr] )
        {
            
g_iBlockSound[plr]--;
            return 
FMRES_SUPERCEDE;
        }
        
        if( 
get_pcvar_numg_iCvar[0] ) == )
            return 
FMRES_SUPERCEDE;
    }
    
    return 
FMRES_IGNORED;
}

public 
client_connectplr )
{
    
g_iBlockSound[plr] = 0;

what is wrong in the code?
Alucard^ is offline
Send a message via Skype™ to Alucard^
 



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 05:35.


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