Try this
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Parkour"
#define IsPlayer(%1) (1 <= %1 <= g_iMaxPlayers)
new g_iMaxPlayers;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_TakeDamage, "player", "hook_TakeDamage")
g_iMaxPlayers = get_maxplayers();
}
public hook_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if(IsPlayer(attacker) && access(attacker, ADMIN_IMMUNITY))
{
SetHamParamFloat(4, damage*4)
}
return HAM_IGNORED
}
__________________