Raised This Month: $ Target: $400
 0% 

Solved [Req] Knife Damage Always 45


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ZaX
Senior Member
Join Date: Jan 2015
Old 09-22-2020 , 19:55   Re: [Req] Knife Damage Always 45
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init() {
    
RegisterHam(Ham_TakeDamage"player""playerTakeDamagePre");
}

public 
playerTakeDamagePre(victiminflictorattackerdamagedamagebits) {

    if(
get_user_weapon(attacker) == CSW_KNIFE) {
        
SetHamParamFloat(445.0);
        return 
HAM_HANDLED;
    }
    return 
HAM_IGNORED;

ZaX 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 23:56.


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