HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <reapi>
  3.  
  4. // #define ONLY_FLAG
  5. #define FLAG_ACCESS ADMIN_LEVEL_H
  6.  
  7. public plugin_init()
  8. {
  9. register_plugin("[ReAPI] No Team Flash", "1.0", "ReHLDS Team");
  10. RegisterHookChain(RG_PlayerBlind, "PlayerBlind", false);
  11. }
  12.  
  13. public PlayerBlind(const index, const inflictor, const attacker, const Float:fadeTime, const Float:fadeHold, const alpha, Float:color[3])
  14. {
  15. if(index == attacker) return HC_CONTINUE;
  16.  
  17. #if defined ONLY_FLAG
  18. if(!(get_user_flags(index) & FLAG_ACCESS)) return HC_CONTINUE;
  19. #endif
  20.  
  21. return (get_member(index, m_iTeam) == get_member(attacker, m_iTeam)) ? HC_SUPERCEDE : HC_CONTINUE;
  22. }
  23. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  24. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
  25. */
  26.