Raised This Month: $51 Target: $400
 12% 

Func_breakable show HP?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KhaledAwesome
Member
Join Date: Jul 2013
Old 09-17-2020 , 14:05   Func_breakable show HP?
Reply With Quote #1

Is there a plugin out there that shows breakables in cs1.6 map?
I played in a server once that shows the HP on breakable walls and literally anything else breakable. like in cso zombie scenario for example.

Anyone know?
KhaledAwesome is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 09-17-2020 , 14:07   Re: Func_breakable show HP?
Reply With Quote #2

Code:
#include amxmodx #include engine #include fakemeta #include hamsandwich #define charsmin -1 new break_ent; public plugin_init() {     register_plugin("breakable hitpoints","1.0","SPiNX");         break_ent = find_ent_by_class(charsmin, "func_breakable");         RegisterHamFromEntity(Ham_TakeDamage,break_ent,"Felt_attack", 0)     } public Felt_attack(this_ent,idattacker) {     new health = pev(this_ent,pev_health);         if ( is_user_connected(idattacker) && !is_user_bot(idattacker) )     client_print(idattacker,print_center,"HP:%i",health); }
__________________

Last edited by DJEarthQuake; 09-20-2020 at 10:40. Reason: Could not locate functional script anywhere.
DJEarthQuake is offline
Ynet
Member
Join Date: Aug 2017
Location: israel
Old 09-20-2020 , 05:46   Re: Func_breakable show HP?
Reply With Quote #3

PHP Code:
register_forwardFM_PlayerPreThink"PrethinkCMD" );


public 
PrethinkCMDid )
{    
    new 
targetbodyszClassName32 ];
        
    
    
get_user_aiming(idtargetbody300 // Range);
    
pev(targetpev_classnameszClassNamecharsmax(szClassName));

    if(
equal(szClassName"func_breakable") )
    {
        
client_print(id,print_center,"HP: %.1f",entity_get_float(target,EV_FL_health))
    }
    

that'll get the job done ;--)
Ynet 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 09:09.


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