#include <amxmodx>
#include <reapi>
public plugin_init() {
RegisterHookChain(RG_PlayerBlind, "HookBlind", false);
}
public HookBlind(const index, const inflictor, const attacker, const Float:fadeTime, const Float:fadeHold, const alpha) {
#pragma unused inflictor, fadeTime, fadeHold
if (index != attacker && get_member(index, m_iTeam) == get_member(attacker, m_iTeam)) {
SetHookChainArg(6, ATYPE_INTEGER, alpha / 2);
}
return HC_CONTINUE;
}