Page 1 of 1

Health

Posted: 2011 Mar 10 17:12
by Keistas
Sveiki, kur rasti šitoki plugina? Ieškau ieškau nerandu:
http://www.part.lt/perziura/c895cbf9ea9 ... a38832.JPG

Čia kai šaudai i zombi, žmogu rodo kiek pas ji hp.

Re: Health

Posted: 2011 Mar 11 12:28
by aaarnas

Re: Health

Posted: 2011 Mar 11 12:46
by Keistas
Imanoma išimt?
Man pačio zp_stats nereikia. Ar gal yra kur nors paprastas tas pluginas?

Re: Health

Posted: 2011 Mar 11 14:02
by beast

Code: Select all

#include <amxmodx>#include <hamsandwich> public plugin_init()            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))        return HAM_IGNORED            new victim_hp = get_user_health(victim)        client_print(attacker, print_center, "Health: %d", victim_hp)        return HAM_IGNORED}

Re: Health

Posted: 2011 Mar 11 14:56
by Keistas
Ačiū, +karma.