#include <amxmodx>
#include <reapi>
new g_msgSyncHud;
public plugin_init()
{
RegisterHookChain(RG_CBasePlayer_TakeDamage, "CBasePlayer_TakeDamage_Post", true);
g_msgSyncHud = CreateHudSyncObj();
}
public CBasePlayer_TakeDamage_Post(const id, pevInflictor, attacker, Float:flDamage)
{
if(!(1 <= attacker <= MaxClients))
return;
if(!rg_is_player_can_takedamage(id, attacker))
return;
set_hudmessage(.red = 0, .green = 100, .blue = 200, .x = -1.0, .y = 0.55, .holdtime = 2.0, .channel = -1);
ShowSyncHudMsg(attacker, g_msgSyncHud, "*^n");
}