i got problem with damagebits he grenade i make code but don't work.Only
DMG_HEGRENADE does not work.What is wrong with this
PHP Code:
#define DMG_HEGRENADE (1<<24)
PHP Code:
RegisterHam(Ham_TakeDamage, "player", "ham_takedamage2",0);
PHP Code:
public ham_takedamage2(id, inflictor, attacker, Float:damage, damagebits) {
if((damagebits & DMG_BULLET) || (damagebits & DMG_SLASH) || (damagebits & DMG_HEGRENADE)){
set_hudmessage(255, 0, 0, 0.45, 0.50, 2, 0.1, 4.0, 0.1, 0.1, -1)
show_hudmessage(attacker,"+%.1f^n", damage/3)
iExp[attacker] += floatround(damage)/3;
}
}