Your code is quite good, you could just alter functions params though, and make code more clear :
PHP Code:
// Ham Trace Attack Forward
public fw_TraceAttack(victim, attacker, Float:damage, Float:direction[3], trace, damagebits)
{
if( victim != attacker
&& (1 <= attacker <= g_maxPlayers)
&& flag_get(g_IsSurvivor, attacker)
&& get_user_weapon(attacker) == CSW_DEAGLE
&& get_tr2(trace, TR_iHitgroup) == HIT_HEAD )
{
SetHamParamFloat(3, 9999.9);
SetHamParamInteger(6, DMG_BULLET | DMG_ALWAYSGIB);
return HAM_HANDLED;
}
return HAM_IGNORED;
}
__________________