Raised This Month: $ Target: $400
 0% 

[REQ] Knife double damage - Need edit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GraviAnt
Senior Member
Join Date: Oct 2010
Old 12-18-2011 , 09:41   Re: [REQ] Knife double damage - Need edit
Reply With Quote #7

Is this ok?

PHP Code:
#include <amxmodx>
#include <hamsandwich>
 
public plugin_init()
{
   
RegisterHam(Ham_TakeDamage"player""Function");
}
 
public 
Player_TakeDamage(idinflictorattackerFloat:damagedamagebits

    if(    !(
<= attacker <= g_iMaxPlayers)  
    ||    
attacker != inflictor 
    
||    get_user_weapon(attacker) != CSW_KNIFE
    
||    cs_get_user_team(attacker) != CS_TEAM_CT    
        return 
HAM_IGNORED
  
    
SetHamParamFloat(4damage 2); //Here knife does double damage, ofc you can set it to 0.0 or anything. 
    
return HAM_HANDLED;


Last edited by GraviAnt; 12-18-2011 at 09:41.
GraviAnt 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 20:51.


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