Code:
#include <amxmodx>
#define NAME "Infection countdown"
#define VERSION "1.0"
#define AUTHOR "Bladell"
#define TIME 5
public plugin_init()
{
register_plugin(NAME, VERSION, AUTHOR)
register_logevent("logevent_round_start", 2, "1=Round_Start")
}
public logevent_round_start(client)
{
set_task(1.0, "countdown", TIME)
}
public countdown(time)
{
set_hudmessage(179, 0, 0, -1.0, -1.0, 2, 0.02, 1.0, 0.01, 0.1, 10)
if(time)
{
show_hudmessage(0, "The Infected Will Start In: %d Seconds", time)
set_task(1.0, "countdown", time - 1)
}
else
show_hudmessage(0, "Infection started")
}