This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Show zombie hp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
deadackerman
Junior Member
Join Date: Oct 2023
Old 05-01-2024 , 19:05   Show zombie hp
Reply With Quote #1

When dealing damage to a zombie, it does not show its HP. How can it be fixed?

screen: https://ibb.co/dt40HfP
meta lists:
PHP Code:
 1AMX Mod X        RUN   -    amxmodx_mm.dll        v1.9.0.5294      ini  Start ANY
 
2Reunion          RUN   -    reunion_mm.dll        v0.1.92d         ini  Start Never
 
3Revoice          RUN   -    revoice_mm.dll        v0.1.0.34        ini  Start Never
 
4POD-Bot mm       RUN   -    podbot_mm.dll         v3.0B18c         ini  Chlvl ANY
 
5SafeNameAndChat  RUN   -    safenameandchat.dll   v1.2 Beta 3      ini  ANY   ANY
 
6MySQL            RUN   -    mysql_amxx.dll        v1.9.0.5294      pl1  ANY   ANY
 
7SQLite           RUN   -    sqlite_amxx.dll       v1.9.0.5294      pl1  ANY   ANY
 
8Fun              RUN   -    fun_amxx.dll          v1.9.0.5294      pl1  ANY   ANY
 
9Engine           RUN   -    engine_amxx.dll       v1.9.0.5294      pl1  ANY   ANY
 
[10FakeMeta         RUN   -    fakemeta_amxx.dll     v1.9.0.5294      pl1  ANY   ANY
 
[11CStrike          RUN   -    cstrike_amxx.dll      v1.9.0.5294      pl1  ANY   ANY
 
[12CSX              RUN   -    csx_amxx.dll          v1.9.0.5294      pl1  ANY   ANY
 
[13Ham Sandwich     RUN   -    hamsandwich_amxx.dll  v1.9.0.5294      pl1  ANY   ANY
 
[14ReAPI            RUN   -    reapi_amxx.dll        v5.24.0.300-dev  pl1  ANY   Never 
code:

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

// Uncomment this if you want to show the taken damage
//#define SHOW_DAMAGE_ON_MESSAGE

// Integers
new g_iMaxPlayers

// Bools
new bool:g_bIsConnected[33]

// Macros
#define IsConnected(%1) (1 <= %1 <= g_iMaxPlayers && g_bIsConnected[%1])

#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "meTaLiCroSS"

public plugin_init() 
{
    
register_plugin("[ZP] Addon: Zombie HP Displayer"PLUGIN_VERSIONPLUGIN_AUTHOR)
    
    
RegisterHam(Ham_TakeDamage"player""fw_Player_TakeDamage_Post"1)
    
    
g_iMaxPlayers get_maxplayers()
}

public 
client_putinserver(iIdg_bIsConnected[iId] = true
public client_disconnected(iIdg_bIsConnected[iId] = false

public fw_Player_TakeDamage_Post(iVictimiInflictoriAttackerFloat:flDamageiDamageType)
{
    if(!
IsConnected(iAttacker) || iVictim == iAttacker)
        return 
HAM_IGNORED
    
    
if(zp_get_user_zombie(iVictim))
    {
        
// I use statics variables
        // because this forward can (or not)
        // be called many times.
        
static iVictimHealth
        iVictimHealth 
get_user_health(iVictim)
        
        if(
iVictimHealth)
        
#if defined SHOW_DAMAGE_ON_MESSAGE
            
client_print(iAttackerprint_center"You did %.1f Damage. Health: %d"flDamageiVictimHealth)  
        
#else
            
client_print(iAttackerprint_center"Health: %d"iVictimHealth)  
        
#endif
        
else
            
client_print(iAttackerprint_center"You Killed him")
            
        return 
HAM_HANDLED
    
}
    
    return 
HAM_IGNORED


Last edited by deadackerman; 05-01-2024 at 19:12.
deadackerman is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 05-02-2024 , 03:32   Re: Show zombie hp
Reply With Quote #2

Try this
PHP Code:
//#define SHOW_DAMAGE_ON_MESSAGE 

PHP Code:
#define SHOW_DAMAGE_ON_MESSAGE 
__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video bellow to see zombie frost grenade

https://youtu.be/j0zspNfN-AM?si=_1IiGPETN-GQY9Ua

Look at the video below to see Zombie blind grenade

https://youtu.be/ORC7ZmoaipQ?si=QC8Bul96QGitUwX4
Krtola is offline
Send a message via Skype™ to Krtola
deadackerman
Junior Member
Join Date: Oct 2023
Old 05-02-2024 , 06:25   Re: Show zombie hp
Reply With Quote #3

Quote:
Originally Posted by Krtola View Post
Try this
PHP Code:
//#define SHOW_DAMAGE_ON_MESSAGE 

PHP Code:
#define SHOW_DAMAGE_ON_MESSAGE 
nothing changed
deadackerman is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 05-02-2024 , 14:16   Re: Show zombie hp
Reply With Quote #4

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

// Uncomment this if you want to show the taken damage
//#define SHOW_DAMAGE_ON_MESSAGE

// Integers
new g_iMaxPlayers

// Bools
new bool:g_bIsConnected[33]

// Macros
#define IsConnected(%1) (1 <= %1 <= g_iMaxPlayers && g_bIsConnected[%1])

#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "meTaLiCroSS"

public plugin_init() 
{
    
register_plugin("[ZP] Addon: Zombie HP Displayer"PLUGIN_VERSIONPLUGIN_AUTHOR)
    
    
RegisterHam(Ham_TakeDamage"player""fw_Player_TakeDamage_Post"1)
    
    
g_iMaxPlayers get_maxplayers()
}

public 
client_putinserver(iIdg_bIsConnected[iId] = true
public client_disconnected(iIdg_bIsConnected[iId] = false

public fw_Player_TakeDamage_Post(iVictimiInflictoriAttackerFloat:flDamageiDamageType)
{
    if(!
IsConnected(iAttacker) || iVictim == iAttacker)
        return 
HAM_IGNORED
    
    
if(zp_get_user_zombie(iVictim))
    {
        
// I use statics variables
        // because this forward can (or not)
        // be called many times.
        
static iVictimHealth
        iVictimHealth 
get_user_health(iVictim)
        
        if(
iVictimHealth)
        
#if defined SHOW_DAMAGE_ON_MESSAGE
            
client_print(iAttackerprint_center"You did %.1f Damage. Health: %i"flDamageiVictimHealth)  
        
#else
            
client_print(iAttackerprint_center"Health: %i"iVictimHealth)  
        
#endif
        
else
            
client_print(iAttackerprint_center"You Killed him")
            
        return 
HAM_HANDLED
    
}
    
    return 
HAM_IGNORED

__________________
Check my original plugins for cs 1.6 and subscribe on channel
Look at the video bellow to see zombie frost grenade

https://youtu.be/j0zspNfN-AM?si=_1IiGPETN-GQY9Ua

Look at the video below to see Zombie blind grenade

https://youtu.be/ORC7ZmoaipQ?si=QC8Bul96QGitUwX4
Krtola is offline
Send a message via Skype™ to Krtola
deadackerman
Junior Member
Join Date: Oct 2023
Old 05-02-2024 , 15:06   Re: Show zombie hp
Reply With Quote #5

Quote:
Originally Posted by Krtola View Post
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>

// Uncomment this if you want to show the taken damage
//#define SHOW_DAMAGE_ON_MESSAGE

// Integers
new g_iMaxPlayers

// Bools
new bool:g_bIsConnected[33]

// Macros
#define IsConnected(%1) (1 <= %1 <= g_iMaxPlayers && g_bIsConnected[%1])

#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "meTaLiCroSS"

public plugin_init() 
{
    
register_plugin("[ZP] Addon: Zombie HP Displayer"PLUGIN_VERSIONPLUGIN_AUTHOR)
    
    
RegisterHam(Ham_TakeDamage"player""fw_Player_TakeDamage_Post"1)
    
    
g_iMaxPlayers get_maxplayers()
}

public 
client_putinserver(iIdg_bIsConnected[iId] = true
public client_disconnected(iIdg_bIsConnected[iId] = false

public fw_Player_TakeDamage_Post(iVictimiInflictoriAttackerFloat:flDamageiDamageType)
{
    if(!
IsConnected(iAttacker) || iVictim == iAttacker)
        return 
HAM_IGNORED
    
    
if(zp_get_user_zombie(iVictim))
    {
        
// I use statics variables
        // because this forward can (or not)
        // be called many times.
        
static iVictimHealth
        iVictimHealth 
get_user_health(iVictim)
        
        if(
iVictimHealth)
        
#if defined SHOW_DAMAGE_ON_MESSAGE
            
client_print(iAttackerprint_center"You did %.1f Damage. Health: %i"flDamageiVictimHealth)  
        
#else
            
client_print(iAttackerprint_center"Health: %i"iVictimHealth)  
        
#endif
        
else
            
client_print(iAttackerprint_center"You Killed him")
            
        return 
HAM_HANDLED
    
}
    
    return 
HAM_IGNORED

does not work
deadackerman is offline
Old 05-02-2024, 15:16
deadackerman
This message has been deleted by deadackerman.
deadackerman
Junior Member
Join Date: Oct 2023
Old 05-02-2024 , 15:17   Re: Show zombie hp
Reply With Quote #6

Fix: Need to download metamod plugin - Print Center Fix
deadackerman is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 05-02-2024 , 19:13   Re: Show zombie hp
Reply With Quote #7

Quote:
Originally Posted by deadackerman View Post
PHP Code:
 2Reunion          RUN   -    reunion_mm.dll        v0.1.92d         ini  Start Never 
__________________
mlibre is offline
deadackerman
Junior Member
Join Date: Oct 2023
Old 05-02-2024 , 20:14   Re: Show zombie hp
Reply With Quote #8

Quote:
Originally Posted by mlibre View Post
??
deadackerman is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 05-03-2024 , 12:16   Re: Show zombie hp
Reply With Quote #9

Quote:
Originally Posted by deadackerman View Post
??
no steam = no support
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
deadackerman
Junior Member
Join Date: Oct 2023
Old 05-03-2024 , 13:04   Re: Show zombie hp
Reply With Quote #10

Quote:
Originally Posted by Nutu_ View Post
no steam = no support
i have steam but dont use them, like more nonsteam cs
deadackerman is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode