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

Health Display


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 04-26-2012 , 12:20   Health Display
Reply With Quote #1

Done by request by mattiiias93 in http://forums.alliedmods.net/showthread.php?t=183577

CVAR: amx_health 1 // <0|1> toggle the plugin on and off

PHP Code:
/* Script generated by Pawn Studio */

#include <amxmodx>
#include <string>
#include <cstrike>

#define PLUGIN    "Health Display"
#define AUTHOR    "Liverwiz"
#define VERSION    "1.0"

new g_pcvar_toggle
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
g_pcvar_toggle register_cvar("amx_health""1")
    
    
register_event("StatusText""event_display""b")
}

public 
event_display(id)
{
    new 
pi_targetp_body
    
get_user_aiming(idpi_targetp_body9999); 

    if(
is_user_alive(pi_target) && get_pcvar_num(g_pcvar_toggle) == 1
    { 
        new 
sz_name[32], sz_message[64]; 
        
get_user_name(pi_targetsz_name31); 

        if( 
cs_get_user_team(pi_target) == cs_get_user_team(id) ) 
            
formatex(sz_message63"Friend: %s^nHealth: %i"sz_nameget_user_health(pi_target)) 
        else  
            
formatex(sz_message63"Enemy: %s"sz_name

        
set_hudmessage(2002002000.0, -1.003.24.00.30.11// HUDMESSAGE_COLOR 
        
show_hudmessage(id"%s"sz_message
    } 
    
    return 
PLUGIN_CONTINUE 

Attached Files
File Type: sma Get Plugin or Get Source (amx_health.sma - 706 views - 1.0 KB)

Last edited by Liverwiz; 04-26-2012 at 13:48.
Liverwiz is offline
BeeFighter
Member
Join Date: Feb 2012
Old 04-26-2012 , 12:35   Re: Health Display
Reply With Quote #2

redundant in my eyes. not worth a approval honestly.
__________________
www.Gstar-Gaming.net

Servers:
Jailbreak
HidenSeek
Knife
Deathrun
Public

Join us now: www.gstar-gaming.net
BeeFighter is offline
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 04-26-2012 , 13:01   Re: Health Display
Reply With Quote #3

so this shows my health? okay
__________________
Zombiezzz is offline
mattiiias93
Member
Join Date: Mar 2012
Old 04-26-2012 , 15:48   Re: Health Display
Reply With Quote #4

The plugin work sometimes maybe 1time per round. Can you fix it? And with team color display+
mattiiias93 is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 04-26-2012 , 19:13   Re: Health Display
Reply With Quote #5

Can you get me a screenshot of what it looks like now?
Liverwiz is offline
FODDER
Member
Join Date: Mar 2012
Location: Florida, United States
Old 04-26-2012 , 20:58   Re: Health Display
Reply With Quote #6

Locked.
The end.
FODDER is offline
mattiiias93
Member
Join Date: Mar 2012
Old 04-27-2012 , 10:55   Re: Health Display
Reply With Quote #7

I don't have any screenshot now
mattiiias93 is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 04-27-2012 , 13:21   Re: Health Display
Reply With Quote #8

take one.

or PM me your server IP and game and i'll check it out myself.
Liverwiz is offline
FODDER
Member
Join Date: Mar 2012
Location: Florida, United States
Old 04-29-2012 , 15:16   Re: Health Display
Reply With Quote #9

LOL. This is useless. You see ur teammates HP thats all you need.. You can see it .. hud_centerid 1
FODDER is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-29-2012 , 19:57   Re: Health Display
Reply With Quote #10

useless
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
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 03:21.


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