#include <amxmodx>
#include <reapi>
public plugin_init() {
RegisterHookChain(RG_CSGameRules_FlPlayerFallDamage, "CSGameRules_FlPlayerFallDamage_Pre", false);
RegisterHookChain(RG_CBasePlayer_TakeDamage, "CBasePlayer_TakeDamage_Pre", false);
}
public CSGameRules_FlPlayerFallDamage_Pre() {
SetHookChainReturn(ATYPE_FLOAT, 0.0);
return HC_SUPERCEDE;
}
public CBasePlayer_TakeDamage_Pre(const id, const inflictor, const attacker) {
if (is_user_connected(attacker) && id != attacker) {
return HC_CONTINUE;
}
SetHookChainReturn(ATYPE_INTEGER, 0);
return HC_SUPERCEDE;
}