hello,
this is my code
PHP Code:
public HamTraceAttack(Vic, Att, Float:dmg, Float:dir[3], traceresult, dmgbits)
{
if(HeadShot)
{
if( get_user_weapon( Att ) == CSW_KNIFE) {
return HAM_IGNORED;
}
set_user_hitzones(0 ,0, 2)
}
else
set_user_hitzones(0, 0, 255)
return PLUGIN_HANDLED
}
i just trying to do when HeadShot = true its will be only Headshot ..
its works, but player can attack with knife Throughout the body.