#if defined SOUNDS
if (IsCorrectWeapon(iAttacker, WEAPON_KNIFE))
rg_send_audio(0, SOUND_KNIFE);
if (get_member(iVictim, m_bKilledByGrenade))
rg_send_audio(0, SOUND_HE);
#endif
#if defined SOUNDS
if (IsCorrectWeapon(iAttacker, WEAPON_KNIFE) && is_user_connected(iAttacker))
rg_send_audio(0, SOUND_KNIFE);
if (get_member(iVictim, m_bKilledByGrenade) && is_user_connected(inflictor))
rg_send_audio(0, SOUND_HE);
#endif
public hook_CBasePlayerKilled( const iVictim, const iKiller )
{
if( !is_user_connected( iKiller ) && iVictim == iKiller )
{
return HC_CONTINUE;
}
if( get_member( iVictim, m_bKilledByBomb ) )
{
return HC_CONTINUE;
}
#if defined SOUNDS
if( get_member( iVictim, m_bKilledByGrenade ) )
{
rg_send_audio( 0, SOUND_HE );
}
else
{
new iActiveItem = get_member( iKiller, m_pActiveItem );
if( iActiveItem && WeaponIdType: rg_get_iteminfo( iActiveItem, ItemInfo_iId ) == WEAPON_KNIFE )
{
rg_send_audio( 0, SOUND_KNIFE );
}
}
#endif
return HC_CONTINUE;
}