Would this work to block damage for all players except admins?
PHP Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if(!(get_user_flags(attacker) & ADMIN_USER))
{
//Victim is not lasermine.
new sz_classname[32]
entity_get_string( victim , EV_SZ_classname , sz_classname , 31 )
if( !equali(sz_classname,"lasermine") )
return HAM_IGNORED;
//Attacker is zombie
if( zp_get_user_zombie( attacker ) )
return HAM_IGNORED;
}
//Block Damage
return HAM_SUPERCEDE;
}
__________________