Hi. I have a problem with my class "Loki".
In this class ddnt work 1/1 of a knife.
This is new cod by qtm peyote
I define
PHP Code:
#include <hamsandwich>
#define DMG_BULLET (1<<1)
register
PHP Code:
RegisterHam(Ham_TakeDamage, "player","TakeDamage");
And public
PHP Code:
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits){
if(!is_user_alive(idattacker))
return HAM_IGNORED;
if(!ma_klase[idattacker])
return HAM_IGNORED;
if(get_user_weapon(attacker) == CSW_KNIFE){
cs_set_user_armor(id, 0, CS_ARMOR_NONE);
SetHamParamFloat(4, float(get_user_health(id) + 1));
return HAM_HANDLED;
}
return HAM_IGNORED;
}
Full code
http://wklej.org/id/1415822/
Any sugestion? :C