I guess you are looking to do something like this...
Your holdtime on the hudmsg is not very good, i tested it and if you write more messages the old one is still there and that looks really ugly.
Im not sure what the recl function message is good for but atleast it should work now...
Code:
// Credits to: Gizmo and Rolnaaba
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("HUDmsg", "1.0", "Hip_hop_x")
register_event("DeathMsg", "DeathMsg", "a")
register_event("ResetHUD", "startround", "a")
register_cvar("sv_hudmsg", "1")
register_concmd("amx_hudcenter", "cmd_message", ADMIN_CHAT, "message in the center")
register_concmd("amx_hudmsg", "cmd_extrem", ADMIN_ALL, "<message up>")
}
public startround(id)
{
set_task(0.2, "recl")
}
public cmd_message(id)
{
if(!access(id, ADMIN_CHAT))
{
console_print(id, "[AMXX] You have no access to this command!");
return PLUGIN_HANDLED
}
new argMessage[256]
read_argv(1, argMessage, 255)
set_hudmessage(130, 90, 70, -1.0, 0.45, 0, 1.0, 999991.0, 0.1, 0.2, -1)
show_hudmessage(0, argMessage)
return PLUGIN_HANDLED
}
public cmd_extrem(id)
{
if(!access(id, ADMIN_CHAT))
{
console_print(id, "[AMXX] You have no access to this command!");
return PLUGIN_HANDLED
}
new argMessage[256]
read_argv(1, argMessage, 255)
set_hudmessage(150, 89, 37, -1.0, 0.10, 0, 1.0, 999991.0, 0.1, 0.2, -1)
show_hudmessage(0, argMessage)
return PLUGIN_HANDLED
}
public recl(id)
{
console_print(id, "[Xu Message] For more plugins vizit xu-share.tk")
}
public client_connect(id)
{
new name[32]
get_user_name(id, name, 31)
if(get_cvar_num("sv_hudmsg") == 1)
{
set_hudmessage(190, 30, 0, -1.0, 0.15, 0, 1.0, 7.0, 0.1, 0.2, -1)
show_hudmessage(0, "%s connecting", name)
}
}
public client_disconnect(id)
{
new name[32]
get_user_name(id, name, 31)
if(get_cvar_num("sv_hudmsg") == 1)
{
set_hudmessage(190, 30, 0, -1.0, 0.24, 0, 1.0, 5.0, 0.1, 0.2, -1)
show_hudmessage(0, "%s disconnected", name)
}
}
public DeathMsg(id)
{
set_task(0.2, "recl")
}