View Single Post
Theodore Bagwell
Member
Join Date: Jan 2021
Location: USA
Old 02-15-2021 , 09:03   Re: Weapon damage control for Steam ID
Reply With Quote #2

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

#define VERSION "0.1"

#define ACCESS ADMIN_RCON

public plugin_init()
{
    
register_plugin("Admin Double Damage"VERSION"Justin");

    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage");
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damage)
{
    if (
is_user_connected(attacker) && is_user_alive(attacker) && get_user_flags(attacker) & ACCESS)
    {
        
SetHamParamFloat(4damage 2);
    }

Hi, I found this plugin. But it works with flag. I'm sure guys will help you to set this plugin on Steamid.
Theodore Bagwell is offline