Here you go.
PHP Code:
#pragma semicolon 1
#include <sourcemod>
bool countdown = false;
float coutdown_startime;
public Plugin:myinfo = {
name = "",
author = "",
description = "",
version = "1.0",
};
public OnPluginStart()
{
RegConsoleCmd("sm_countdown", Event_CountDown);
}
public Action Event_CountDown(int client, int args)
{
if(client > 0)
{
countdown = true;
coutdown_startime = GetGameTime();
}
}
public OnGameFrame()
{
if(countdown)
{
float delay = 60.0;
float timeleft = coutdown_startime - GetGameTime() + delay;
if(timeleft > 0.01)
{
PrintHintTextToAll("CountDown: %0.1f", timeleft);
countdown = false;
}
}
}