Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Parkour"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_TakeDamage, "player", "hook_TakeDamage")
}
public hook_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if(access(attacker, ADMIN_IMMUNITY))
{
SetHamParamFloat(4, damage*4)
}
return HAM_IGNORED
}
Change to check specific flag and remove the weapon check.
__________________