It doesn't work because your registering it as a CVAR and if you want amx_text to restart you shouldn't use it as a CVAR.
Try this:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Restart"
#define VERSION "1.0"
#define AUTHOR "Blah"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_concmd("amx_restartserver", "cmdrestart")
register_logevent("logevent_round_start", 2, "1=Round_Start");
}
public Round_Start()
{
set_task(2.5, "auto_restart")
}
public auto_restart()
{
server_cmd("sv_restart 1");
}
public cmdrestart(id)
{
set_task(2.5, "auto_restart")
return PLUGIN_HANDLED
}
To restart just type in the console:
amx_restartserver