 |
|
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
|

12-24-2008
, 05:11
Re: Change the damage of the knife
|
#4
|
Okay so this is fine?
Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init()
{
RegisterHam(Ham_TakeDamage, "player", "Function");
}
public Function(id, inflictor, attacker, Float:damage, damagebits)
{
if(!is_user_connected(attacker))
return HAM_IGNORED
new weapon = get_user_weapon(attacker, _, _)
if(weapon == CSW_KNIFE)
{
SetHamParamFloat(4, 0.0) //Modify here ofc...
return HAM_HANDLED
}
return HAM_IGNORED
}
|
|
|
|