View Single Post
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 05-03-2013 , 07:57   Re: Zombies not being immune to damage types.
Reply With Quote #2

Yo Najwa Latif,

PHP Code:
public fw_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
{
    if(!
zp_core_is_zombie(victim) || zp_class_zombie_get_current(victim) != g_ZombieClassID) return HAM_IGNORED;
        
    if(
damage_type DMG_BURN || damage_type DMG_SLOWBURN 
    
|| damage_type DMG_FREEZE || damage_type DMG_SLOWFREEZE 
    
|| damage_type DMG_DROWN || damage_type DMG_SHOCK) return HAM_SUPERCEDE;
    
    return 
HAM_IGNORED;

__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 05-03-2013 at 08:03.
yokomo is offline