Пробуй:
Код
#include <amxmodx>
new Health[33], Armor[33];
public plugin_init()
{
register_event("Health", "event_Health", "be");
register_event("ResetHUD", "event_ResetHUD", "b");
register_event("DeathMsg", "event_DeathMsg", "a");
}
public event_Health(id)
{
if (!is_user_alive(id))
return;
Health[id]= read_data(1);
Armor[id]= get_user_armor(id);
return;
}
public event_ResetHUD(id)
{
if (task_exists(id + 452))
remove_task(id + 452)
set_task(0.8, "task_ResetHUD", id + 452, _, _, "b");
return;
}
public event_DeathMsg()
{
if (task_exists(read_data(2) + 452))
remove_task(read_data(2) + 452)
return;
}
public task_ResetHUD(TaskID)
{
set_dhudmessage(0, 255, 0, 0.02, 0.85, 0, 0.0, 3.0, 0.1, 0.2)
ShowSyncHudMsg(TaskID - 452, "^n [HP]%d [Броня] %d", read_data(1), get_user_armor(id))
}