By following the source code down below i think you may fix your hud
PHP Code:
#include <amxmodx>
#include <amxmisc>
new const PLUGIN[] = "Hud Info";
new const VERSION[] = "1.0";
new const AUTHOR[] = "MagNNusS";
new show_hud
new syncObj
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
show_hud = register_cvar("amx_show_hud", "1") /// Write 0 to disable hud!
syncObj = CreateHudSyncObj()
}
public ShowHud(id)
{
set_hudmessage(0, 255, 0, 0.02, 0.2)
ShowSyncHudMsg(id, syncObj,"Add a text over here...")
}
public client_putinserver(id)
{
if(get_pcvar_num(show_hud) == 1)
set_task(1.0, "ShowHud", id, _, _, "b")
}
P.S: I didn't tested it!
__________________