Thread: Damage
View Single Post
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 12-26-2011 , 16:20   Damage
Reply With Quote #1

Does not work properly
Do I have wrong?

Code:
#include <amxmodx>

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

	register_event("Damage", "event_damage", "b")
}

public event_damage(id)
{
	new iDamage = read_data(2)
	new iHealth = get_user_health(id)

	set_hudmessage(0, 255, 0, -1.0, -0.35, 0, 6.0, 4.0, 0.0, 2.0, 1)
	show_hudmessage(iDamage, "Damage:%s^nHealth:%s", iDamage, iHealth)

	client_print(id, print_chat, "Damage:%s Health:%s", iDamage, iHealth)
}
RuRuRu612754 is offline