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
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 05-04-2024 , 08:56   Re: Show zombie hp
Reply With Quote #11

Quote:
Originally Posted by deadackerman View Post
i have steam but dont use them, like more nonsteam cs
thats the fact, your sever uses reunion which lets non steam players to connect, which is illegal, thats why there's no support for non-steam servers mate
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
v120kaaimcfg
Member
Join Date: Apr 2024
Old 05-04-2024 , 13:31   Re: Show zombie hp
Reply With Quote #12

Quote:
Originally Posted by deadackerman View Post
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

https://dev-cs.ru/resources/1289/
v120kaaimcfg 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 15:36.


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