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

[REQ] HP Informer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombiiiizzz
BANNED
Join Date: Apr 2010
Old 11-22-2010 , 13:37   [REQ] HP Informer
Reply With Quote #1

hi,

I need a simle HP informer like this , where i can find or somebody can make it?
when u shoot it displays hp of current zombie, nemesis, assassin or whatever enemy you shoot at .
Attached Thumbnails
Click image for larger version

Name:	zm_snowbase4_zp0000.JPG
Views:	690
Size:	67.5 KB
ID:	77803  
zombiiiizzz is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 11-23-2010 , 13:01   Re: [REQ] HP Informer
Reply With Quote #2

search the zp sub-forum
i think i posted it somewhere around here
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Ibiza
Junior Member
Join Date: Oct 2010
Old 11-23-2010 , 13:17   Re: [REQ] HP Informer
Reply With Quote #3

#include <amxmodx>
#include <zombieplague>
#include <hamsandwich>
#include <fakemeta>

#define PLUGIN "[ZP] Display Health"
#define VERSION "0.1.0"
#define AUTHOR "PomanoB"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage", 1)


}

public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if (victim == attacker || !is_user_alive(attacker) || !is_user_connected(victim) || !zp_get_user_zombie(victim))
return

new victim_hp = get_user_health(victim)
if (victim_hp < 0)
victim_hp = 0
client_print(attacker, print_center, "Health: %d", victim_hp)

}
Ibiza is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 11-24-2010 , 04:22   Re: [REQ] HP Informer
Reply With Quote #4

Code:
#include <amxmodx> #include <hamsandwich> native zp_get_user_zombie(iPlayer) public plugin_init() register_plugin("hOW", "r", "u")     RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage", 1) public fw_TakeDamage(victim, inflictor, attacker) {     if (victim == attacker || !is_user_connected(attacker)||  !zp_get_user_zombie(victim)) return HAM_IGNORED;     static hp; hp = get_user_health(victim)     client_print(attacker, print_center, "Health: %d", hp < 0 ? 0 : hp) }
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
zombiiiizzz
BANNED
Join Date: Apr 2010
Old 11-24-2010 , 10:41   Re: [REQ] HP Informer
Reply With Quote #5

@abdul: can't compile, got errors.

but i found this and it's perfect.
Attached Files
File Type: sma Get Plugin or Get Source (zp_hp_display.sma - 728 views - 1.8 KB)

Last edited by zombiiiizzz; 11-24-2010 at 10:44.
zombiiiizzz 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 16:19.


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