Hello. I have a code what counts client's score at the left corner. It's working, but I wanna do a few things;
- Reset itself on roundstart then count again
- Keep the score at the scoreboard
- Money-like counter (maybe)
Like on this picture (red 9 at left)
My code looks like this:
PHP Code:
#include <amxmodx>
#include <csx>
#define MIN_KILLS 1
#define PLUGIN "Frags"
#define VERSION "1.0"
#define AUTHOR "Author"
const Float:REFRESH_RATE = 1.0;
new maxplayers
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR )
maxplayers = get_maxplayers()
set_task(1.0,"ShowHud",0,"",0,"b")
register_plugin( "HUD", "0.0.1", "Dashie" );
set_task( REFRESH_RATE, "TaskShowRank", .flags = "b" );
}
public ShowHud()
{
for(new i = 1 ; i <= maxplayers ; i++)
{
new Frags = get_user_frags(i)
set_hudmessage(255, 255, 255, 0.023, 0.94, 0, 6.0, 60.0)
show_hudmessage(i,"Frag : %d",Frags)
}
}
So how can I do the reset without doing a score reset?
(srry for my bad english, I'm a bit tired)