[Pomoc]: Anti Team Flash
Results 1 to 4 of 4
  1. #1
    Junior Member Array
    Join Date
    Dec 2017
    Karma
    0

    Default [Pomoc]: Anti Team Flash

    Poz, trazim neki plugin no_team_flash ?

  2. #2
    Senior Member Array
    Join Date
    Jun 2013
    Location
    K und K monarhija
    Karma
    18
    double penetration sadomazo satisfaction
    k'o svedski akcioni kada kazu action

    Quote Originally Posted by Skubishaa View Post
    Moze bit do maљine na kojoj je hostovan taj server.
    Ili ti je do napajanja neta tvog

  3. #3
    Junior Member Array
    Join Date
    Dec 2017
    Karma
    0

    Default

    Nemogu pronaci, probao sam par ovih ne rade, ako neko ima i moze mi dati hvala njemu.

  4. #4
    Senior Member Array
    Join Date
    Dec 2015
    Location
    Hyderabad, Pakistan
    Age
    21
    Karma
    3

    Default

    Quote Originally Posted by Kawasaky View Post
    Nemogu pronaci, probao sam par ovih ne rade, ako neko ima i moze mi dati hvala njemu.
    HLDS - https://forums.alliedmods.net/showthread.php?t=303454
    ReHLDS- http://www.dedicated-server.ru/vbb/s...ad.php?t=27388

    HLDS

    PHP Code:
    #include <amxmodx>
    #include <fakemeta> 
    #include <hamsandwich>

    // https://forums.alliedmods.net/showthread.php?p=2565017

    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    const PEV_NADE_TYPE pev_flTimeStepSound
    const NADE_TYPE_FLASH 3333

    new g_msgid_ScreenFade
    new g_PlayerFlasher

    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    public plugin_init()
    {
        
    register_plugin("AntiFlash FINAL""5.0""Leo_[BH]")
        
        
    g_msgid_ScreenFade get_user_msgid("ScreenFade")

        
    register_message(g_msgid_ScreenFade"message_screenfade");

        
    register_forward(FM_SetModel"fw_SetModel")
        
    RegisterHam(Ham_Think"grenade""fw_ThinkGrenade")
    }

    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    public message_screenfade(msg_idmsg_destmsg_entity)
    {
        if (
    get_msg_arg_int(4) != 255 || get_msg_arg_int(5) != 255 || get_msg_arg_int(6) != 255 || get_msg_arg_int(7) < 200)
            return 
    PLUGIN_CONTINUE;
        
        new 
    id msg_entity
        
        
    if (id != g_PlayerFlasher && get_user_team(id) == get_user_team(g_PlayerFlasher))
        {
            return 
    PLUGIN_HANDLED;
        }
        
        return 
    PLUGIN_CONTINUE;
    }

    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    public fw_SetModel(entityszModel[]) 
    {
        if(!
    equal(szModel"models/w_flashbang.mdl")) 
            return 
    FMRES_IGNORED;
        
        
    set_pev(entityPEV_NADE_TYPENADE_TYPE_FLASH)

        return 
    FMRES_IGNORED;


    public 
    fw_ThinkGrenade(entity)
    {
        if (!
    pev_valid(entity)) return HAM_IGNORED;
        
        static 
    Float:dmgtime
        pev
    (entitypev_dmgtimedmgtime)
        
        if (
    dmgtime get_gametime())
            return 
    HAM_IGNORED;
        
        switch (
    pev(entityPEV_NADE_TYPE))
        {
            case 
    NADE_TYPE_FLASH// Flash Grenade
            
    {
                
    g_PlayerFlasher pev(entitypev_owner)
                return 
    HAM_IGNORED;
            }
        }
        
        return 
    HAM_IGNORED;
    }

    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
    ReHLDS [Requires Module ReAPI On Server And Its Include For Compile]

    PHP Code:
    #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 alphaFloat: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(indexm_iTeam) == get_member(attackerm_iTeam)) ? HC_SUPERCEDE HC_CONTINUE;

    Last edited by alber.soomro; 14-01-2018 at 08:52.
    Respect: K@[L]@uz^


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •