Code:
#include <amxmodx>
#define RESTART_TIME 3600
new g_countdown = RESTART_TIME;
public plugin_init()
{
register_plugin("Auto-Restart" , "1.0" , "v3x")
set_task(1.0 , "countdown" , 918231 , _ , _ , "b")
}
public countdown()
{
g_countdown--;
switch(g_countdown)
{
case 2 .. 10: client_print(0 , print_center , "Round restarting in %d seconds" , g_countdown);
case 1:
{
set_cvar_num("sv_restartround" , 1);
g_countdown = RESTART_TIME;
}
}
}
something like that.
__________________