I dont know why there is that part, i even wasnt sure what it was for untill you show me HS Modes plugin.
Now i think i get it

So would this code work? It should give 50% chance to entiraly block damage if you get HS.
PHP Code:
public player_Attack ( id, iAttacker, Float:flDamage, Float:fVecDir[3], tr )
{
if ( get_user_flags( id ) & VIP_ACCESS )
{
if ( IsPlayer( iAttacker ) && heavy_active[ id ] && cs_get_user_team( id ) != cs_get_user_team( iAttacker ))
{
if( get_tr2( tr, TR_iHitgroup ) == HIT_HEAD )
{
new p_Random = random_num(1, 100)
if(p_Random <= 50)
{
message_begin( MSG_ONE_UNRELIABLE, g_msgFade, .player=id );
{
write_short( 1<<12 );
write_short( 1<<5 );
write_short( FFADE_IN );
write_byte( 139 );
write_byte( 34 );
write_byte( 34 );
write_byte( 75 );
}
message_end( );
message_begin( MSG_ONE_UNRELIABLE, g_msgShake, .player=id );
{
write_short( 255<<5 );
write_short( 50<<5 );
write_short( 255<<5 );
}
message_end( );
return HAM_SUPERCEDE;
}
}
}
}
return HAM_IGNORED;
}