Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#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(is_user_admin(attacker))
{
new Gun = get_user_weapon(attacker)
if(Gun == CSW_KNIFE)
{
SetHamParamFloat(4, damage*4)
}
}
return HAM_IGNORED
}
how to make weapons of any great damage was not only a knife and only for admins ADMIN_IMMUNITY if(Gun == CSW_ALL)