PHP Code:
if(!is_user_connected(attacker_id) || !is_user_alive(victim)) {
return PLUGIN_HANDLED
}
Using "return PLUGIN_HANDLED" in a event will block that event so it won't be captured by any following plugins. Use "PLUGIN_CONTINUE".
Your code is unnecessarily complicated. With "Ham_TakeDamage" you can do the same thing with 20x times less code.
__________________