View Single Post
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 12-11-2017 , 11:54   Re: |HELP| JailBreak MOD : Change CT KNIFE DAMAGE ONLY !
Reply With Quote #3

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

public plugin_init() {
    
register_plugin("knife damage""1.0""Softero")
    
RegisterHam(Ham_TakeDamage"player""Ham_TakeDamage_pre"0)
}

public 
Ham_TakeDamage_pre(victiminflictorattackerFloat:damagedamagebits) {
    if(
attacker == inflictor && cs_get_user_team(attacker) == CS_TEAM_CT && get_user_weapon(attacker) == CSW_KNIFE) {
        
SetHamParamFloat(41000.0)
        return 
HAM_HANDLED
    
}
    return 
HAM_IGNORED

not tested
__________________
retired chump

Last edited by DjSoftero; 12-11-2017 at 12:23.
DjSoftero is offline