Code:
#include <amxmodx>
#define PLUGIN "Countdown"
#define VERSION "1.0"
#define AUTHOR "Supremache"
const TaskCountdown = 34234244;
new g_iCountdown
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent( "EventRoundStart" , 2 , "1=Round_Start" )
}
public EventRoundStart()
{
if ( !task_exists( TaskCountdown ) )
set_task( 1.0 , "Countdown" , TaskCountdown , .flags="a" , .repeat= ( g_iCountdown = 59 ) )
}
public Countdown()
{
set_hudmessage(179, 0, 0, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10);
show_hudmessage(0, "Secounds in %i", g_iCountdown-- );
}