Onforum.net - Web and gaming resource community

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members .

[ReHLDS][SMA] No Teamflash

kukubeni

Banned
Banned
Credits
17
#include <amxmodx>
#include <reapi>

// #define ONLY_FLAG
#define FLAG_ACCESS ADMIN_LEVEL_H

public plugin_init()
{
register_plugin("[ReAPI] No Team Flash", "1.0", "ReHLDS Team");
RegisterHookChain(RG_PlayerBlind, "PlayerBlind", false);
}

public PlayerBlind(const index, const inflictor, const attacker, const Float:fadeTime, const Float:fadeHold, const alpha, Float:color[3])
{
if(index == attacker) return HC_CONTINUE;

#if defined ONLY_FLAG
if(!(get_user_flags(index) & FLAG_ACCESS)) return HC_CONTINUE;
#endif

return (get_member(index, m_iTeam) == get_member(attacker, m_iTeam)) ? HC_SUPERCEDE : HC_CONTINUE;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1038\\ f0\\ fs16 \n\\ par }
*/
 
Thread starter Similar threads Forum Replies Date
Addons 0
Addons 0
Addons 0
Addons 0
Addons 0

Similar threads


Top

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

The advertises that you'll see aren't intrusive they just help us to keep the community alive

If you don't want to see those ads just buy an upgrade.

Thank you for understanding!

Rogue

Rogue Purchase

User upgrade! at

🔥 Upgrade Now
Baba2

Baba2 Purchase

User upgrade! at

🔥 Upgrade Now

Escanor25 Purchase

User upgrade! at

🔥 Upgrade Now