Hello, i have this code:
Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
for(new i=1; i<gMaxplayers; i++)
if (victim == g_Zxc[i])
new victim_hp = get_user_health(victim);
if (victim_hp < 0)
victim_hp = 0;
new name[33];
get_user_name(victim, name, 32);
client_print(attacker, print_center, "%s^nHP: %d", name, victim_hp);
}
And i want if player got bool g_Zxc then in center screen will be hes hp.