Yeah, that will work, I've used it my aimbot detection plugin but forgot about it. But still, I don't see a reason to not use DeathMsg, which provides the advantage of having condition filters and it's easy to get weapon name/headshot.
PHP Code:
const m_LastHitGroup = 75;
#define XO_PLAYER 5
if ( get_pdata_int( iVictim , m_LastHitGroup , XO_PLAYER ) == HIT_HEAD )
{
}
__________________