No damage knife.
Rav aka
22.08.2011
Poszukuje pluginu, aby noż nie zadawał obrażeń. Plugin NoDamageKnife na Cscenter to działają, ale debugują serwer i się wyłącza.
Z góry dziękuje Oczywiście daje +.
Z góry dziękuje Oczywiście daje +.
sharkowy
22.08.2011
#include <amxmodx>
#include <hamsandwich>
#define PLUGIN "No Knife Damage"
#define VERSION "1.0"
#define AUTHOR "alan_el_more"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
}
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if(inflictor == attacker && is_user_alive(attacker) && get_user_weapon(attacker) == CSW_KNIFE)
return HAM_SUPERCEDE
return HAM_IGNORED
}