MspoR
Yes, Should it be that way or am I wrong?
PHP Code:
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage", 0);
// Add your code here...
}
public fw_TakeDamage(victim, inflictor, iAttacker, Float:fDamage)
{
if(get_user_weapon(iAttacker) == HLW_CROWBAR && get_user_armor(victim) && inflictor == iAttacker)
{
if(!(floatround(fDamage) > get_user_health(victim)))
return HAM_IGNORED
//set_user_health(victim, get_user_health(victim))
SetHamParamFloat(3, 100.0) // here dmg == 100 I want to lose 100 Armor per shot
client_print(0 , print_chat, "ABC")
return HAM_HANDLED;
}
return HAM_IGNORED
}
You test it ?
__________________