PHP Code:
public hook_TakeDamage(victim, attacker, useless, Float:damage, damagebits) {
if(!is_user_connected(victim) || !is_user_connected(attacker))
return HAM_IGNORED
static classname[8]
pev(useless, pev_classname, classname, charsmax(classname))
if(g_iTimeLeft > 0)
{
if((equal(classname, "grenade")))
{
return HAM_SUPERCEDE
}
}
return HAM_IGNORED
}
This one doesnt work. If i put
(1<<24) its not working too.
http://forums.alliedmods.net/showpos...8&postcount=71
Quote:
|
// For grenade damage (In CS) the bits is equal to (1<<24)
|