ZMBIO.RO
Plugin Show Zombie Health Biohazard - Printable Version

+- ZMBIO.RO (https://zmbio.ro)
+-- Forum: Forum archive (https://zmbio.ro/Forum-Forum-archive)
+--- Forum: Arhiva generala (https://zmbio.ro/Forum-Arhiva-generala)
+--- Thread: Plugin Show Zombie Health Biohazard (/Thread-Plugin-Show-Zombie-Health-Biohazard)



Plugin Show Zombie Health Biohazard - eLLectro - 01-27-2025

Plugin Show Zombie's Health For Biohazard Mode
[Image: 5ea788a63f636.png]

This plugin adds the zombie's health in the middle of the screen when you shoot him. It was originaly ported from Zombie Plague mode.

Source Code:


Code: 
#include < amxmodx >
#include < hamsandwich>
#include < fun >
#include < biohazard >

new const PLUGIN_NAME[  ] = "[Bio] Display Zombie HP",
PLUGIN_VERSION[  ] = "1.0",
PLUGIN_AUTHOR[  ] = "eLLectro";

public plugin_init(  ) {

register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
is_biomod_active(  ) ? plugin_init2(  ) : pause( "ad" );
}

public plugin_init2(  ) {

RegisterHam( Ham_TakeDamage, "player", "Ham_TakeDamagePlayerPost", 1 );
}

public Ham_TakeDamagePlayerPost( iVictim, iInflictor, iAttacker, Float:fDamage, damage_type ) {

if( iVictim != iAttacker && is_user_alive( iAttacker ) && is_user_zombie( iVictim ) ) {


new VictimHealth = get_user_health( iVictim );

if( VictimHealth < 0 )
VictimHealth = 0;

client_print( iAttacker, print_center, "%d", VictimHealth );
}
}

[Image: 10-39.jpg]

[Image: Counter-Strike-Logo-Resized.png]




RE: Plugin Show Zombie Health Biohazard - mindfreak. - 02-02-2025

Multumim


RE: Plugin Show Zombie Health Biohazard - YONTU - 04-14-2025

unlock