PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
const m_LastHitGroup = 75
public plugin_init()
{
RegisterHam(Ham_TakeDamage, "player", "OnCBasePlayer_TakeDamage", false)
}
public OnCBasePlayer_TakeDamage( id, iInflictor, iAttacker, Float:flDamage, bitsDamageType ) // return int
{
new iHitgroup = get_pdata_int(id, m_LastHitGroup)
}
This is as simple as this.
Anyway, if you don't want to modify damage, you can use csx.
__________________