REAL DAMAGE

AmxModX REAL DAMAGE FINAL

Нет прав для скачивания
C++:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <cstrike>

new const FFA_MODE = 0

public plugin_init()
{
    register_plugin("Real Damage", "1.0", "Leo_[BH]")
   
    RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage", 0)
}

public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
    if(damage_type & DMG_BULLET)
    {
        if(get_user_team(victim) != get_user_team(attacker) || FFA_MODE)
        {
            new Float:hp = float(pev(victim, pev_health))
           
            if(damage > hp)
            {
                if(is_user_alive(victim)) cs_set_user_armor(victim, 0, CS_ARMOR_NONE);
                SetHamParamFloat(4, hp)
            }
        }
    }

    return HAM_IGNORED;
}
Сверху