I have try to study the countdown from other people code, but I find that it's not easy...So, I decided to post this code out.
I want a client_print version countdown...
Please help.
Thank
Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("Auto-Restart", "1.0", "ToT | V!PER")
register_event("TextMsg", "restart_time", "a", "2&#Game_C")
register_cvar("amx_autorestart", "15.0")
return PLUGIN_CONTINUE
}
public restart_time()
set_task (get_cvar_float("amx_autorestart"),"restart_map",0)
public restart_map()
{
set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2)
show_hudmessage(0, "Restart Now!")
set_cvar_float("sv_restart",1.0)
return PLUGIN_HANDLED
}
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others