Try changing:
Code:
set_hudmessage(...,...,...,...,...,0,0.0,99.9,0.0,0.0,1)
to
Code:
set_hudmessage(...,...,...,...,...,0,0.0,99.9,0.0,0.0,-1)
If that doesn't work, you might have to use variables instead of get_cvar_num(), get_cvar_float(). Haven't tried it myself.
Code:
new r, g, b, Float:x, Float:y
r = get_cvar_num("rp_economyhud_red")
g = get_cvar_num("rp_economyhud_green")
b = get_cvar_num("rp_economyhud_blue")
x = get_cvar_float("rp_economyhud_pos_x")
y = get_cvar_float("rp_economyhud_pos_y")
set_hudmessage(r, g, b, x, y, 0, 0.0, 99.9, 0.0, 0.0, -1)
I'd put the set and show hudmessage functions outside of the if() to see if hud is really the problem.