can anybody help me change this print chat to show_hudmessage ?
with color.
PHP Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("Restarting Round","1.0","Weed")
register_concmd("amx_restround","admin_restround",ADMIN_RESERVATION,"<restart times> <delay>")
}
public drestart(param[])
set_cvar_string("sv_restartround",param)
public admin_restround(id, level, cid) {
if (!cmd_access(id, level, cid, 3))
return PLUGIN_HANDLED
new sdelay[4], stimes[4]
read_argv(1,stimes,3)
read_argv(2,sdelay,3)
new delay = str_to_num(sdelay)
new times = str_to_num(stimes)
for(new a = times;a > 0;--a)
set_task( float(delay * a) + 1.0 , "drestart", 0, sdelay, 4)
{
console_print(id,"Restarting round %d times. Each restart will be in delay of %d seconds.",times,delay)
client_print(0,print_chat,"Restarting round %d times. Each restart will be in delay of %d seconds.",times,delay)
}
return PLUGIN_HANDLED
}
__________________