Raised This Month: $ Target: $400
 0% 

Editing weapon help please


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 06-26-2007 , 18:45   Re: Editing weapon help please
Reply With Quote #5

Yeah that's what I'm using and I couldn't seem to figure it out. Here is the code...

PHP Code:
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_forward(FM_UpdateClientData"UpdateClientData_Post"1);
}

public 
client_PreThink(id)
{
    if(!
is_user_alive(id))
    {
        return 
PLUGIN_CONTINUE;
    }
    
    
// Remove the attack button from their button mask
    
entity_set_int(idEV_INT_buttonentity_get_int(idEV_INT_button) & ~IN_ATTACK);
    
    if(
pev(idpev_button) & IN_ATTACK)
    {
        
// Added this to check if it would spam test when I held attack down
        
client_print(0print_chat"test");
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
UpdateClientData_Post(idsendweaponscd_handle)
{
    if(!
is_user_alive(id))
    {
        return 
FMRES_IGNORED;
    }
    
    
set_cd(cd_handleCD_ID0);
    
    return 
FMRES_HANDLED;

hlstriker 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 21:27.


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