can someone change this into command cuz refresh every hour is very laggy on server and i need command to set in amx_task... it's from plugin 'csstats into html'
Code:
public plugin_init()
{
register_plugin("CS Stats into html","0.16","[email protected]")
register_cvar("amx_csstatshtml","addons/amxx/custom/csstats")
set_task(60.0,"html",0,"",0,"b")
}
public html()
{
new mmins[6]
get_time("%M",mmins,5)
new mins = str_to_num(mmins)
get_cvar_string("amx_csstatshtml",g_fileToSavehtml,63)
format(g_fileToSavehtml, 63, "%s.html",g_fileToSavehtml)
if (mins == 00) writehtml(g_fileToSavehtml)
return PLUGIN_CONTINUE
}