#include <amxmodx>
#include <reapi>
#pragma semicolon 1
const VIP_FLAG = ADMIN_IMMUNITY; // Флаги VIP-игроков которых не будет ослеплять самого себя
public plugin_init() {
register_plugin("No Team Flash", "1.0", "ReHLDS Team");
RegisterHookChain(RG_PlayerBlind, "PlayerBlind", .post = false);
}
public PlayerBlind(const id, const iInflictor, const iAttacker) {
if((id == iAttacker) && (get_user_flags(id) & VIP_FLAG)) {
return HC_SUPERCEDE;
}
if(id != iAttacker && get_member(id, m_iTeam) == get_member(iAttacker, m_iTeam)) {
return HC_SUPERCEDE;
}
return HC_CONTINUE;
}