View Single Post
Alber9091
Veteran Member
Join Date: Jun 2014
Location: Karachi, Pakistan
Old 06-27-2017 , 18:02   Re: [REQ+NEED ASSISTANCE] No team flash
Reply With Quote #5

If your server is ReHLDS than try this ..!!
You may require reapi inc and reapi module to use it.
To install module, upload reapi_1336.iso module in root/cstrike/addons/amxmodx/modules
and add a line with text reapi in root/cstrike/addons/amxmodx/configs/modules.ini

Search on google reapi module and include.

PHP Code:
#include <amxmodx>
#include <reapi>

// const BLINDED_PARTLY = 200
// const BLINDED_FULLY = 255

public plugin_init()
{
    
register_plugin("[ReAPI] No Team Flash""0.0.2""unknown")

    
RegisterHookChain(RG_PlayerBlind"PlayerBlind", .post false)
}

public 
PlayerBlind(const index, const inflictor, const attacker, const Float:fadeTime, const Float:fadeHold, const alphaFloat:color[3])
{
    return (
index != attacker && get_member(indexm_iTeam) == get_member(attackerm_iTeam)) ? HC_SUPERCEDE HC_CONTINUE

Alber9091 is offline