PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
public plugin_init()
{
register_plugin("testing", "1.0", "Testing")
register_clcmd("say /test", "test")
}
public test(id)
{
new money = cs_get_user_money(id)
if( money >= 0)
{
set_hudmessage(255, 0, 0, 0.36, 0.54, 0, 6.0, 12.0)
show_hudmessage(id, "%d", money)
}
else
{
client_print(id, print_chat, "you don't have money")
}
}
How to make the HUD always displayed and updated?
I hope it is always displayed on the screen
Not for some time to disappear
If the money to change, how to make the HUD also follow the change?