Ignore the tag mismatches for now, they use the new "any" tag that is implemented in 1.8.
To execute damage on the attacker, you would do something like this:
Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init()
{
RegisterHam(Ham_TakeDamage, "player", "player_hurt", 1);
}
public player_hurt(this, inflictor, attacker, Float:damage, dmgtype)
{
if (ShouldReflect(this))
{
ExecuteHam(Ham_TakeDamage, attacker, inflictor, attacker, damage * 0.1, dmgtype);
}
return HAM_HANDLED;
}
(I just wrote that in the browser, haven't checked for syntax. You should get the idea).
And "this", in hamsandwich, is always the entity that the function is being called on. So in this case, it would be the entity that is taking damage.
__________________