PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < hlsdk_const >
#include < zombieplague >
const DMG_ALLDAMAGE = DMG_CRUSH | DMG_BURN | DMG_SLASH | DMG_FREEZE | DMG_FALL | DMG_BLAST | DMG_CLUB | DMG_SHOCK | DMG_SONIC | DMG_ENERGYBEAM | DMG_DROWN | DMG_PARALYZE | DMG_NERVEGAS | DMG_POISON | DMG_RADIATION | DMG_ACID | DMG_MORTAR | DMG_SLOWBURN | DMG_SLOWFREEZE;
public plugin_init( )
{
register_plugin( "[ZP] Zombie Damage NOT", "1.0.1", "tuty" );
RegisterHam( Ham_TakeDamage, "player", "bacon_TakeDamage" );
}
public bacon_TakeDamage( client, inflictor, attacker, Float:damage, damagebits )
{
if( zp_get_user_zombie( client ) )
{
if( damagebits & DMG_ALLDAMAGE )
{
return HAM_SUPERCEDE;
}
}
return HAM_IGNORED;
}
__________________