Yes, but default (when you don't pass a param, channel is set to 4, see amxmodx.inc).
PHP Code:
#include <amxmodx>
#include <amxmisc>
new const PLUGIN_NAME[] = "timer test"
#define TASKID1 164837516
new g_iCounter
new g_HudSyncObj
public plugin_init()
{
register_plugin(PLUGIN_NAME, "1.0", "you")
register_clcmd("say /timer", "cmdTimer", ADMIN_RCON, "starts timer")
}
public plugin_cfg()
{
g_HudSyncObj = CreateHudSyncObj()
}
public cmdTimer(id, level, cid)
{
if( ! cmd_access(id, level, cid, 1) )
{
client_print(id, print_console, "Pay for server access :D")
return PLUGIN_HANDLED
}
if(task_exists(TASKID1))
{
remove_task(TASKID1)
}
g_iCounter = 10
set_task(1.0, "count_down", TASKID1, _, _, "b")
return PLUGIN_HANDLED
}
public count_down(id)
{
if(!g_iCounter)
{
client_cmd(0 , "spk radio/com_go")
client_print(0, print_chat, "[%s] Go Go Go!", PLUGIN_NAME)
remove_task(TASKID1)
return
}
set_hudmessage(255, 255, 255, -1.0, 0.85, 0, 6.0, 1.0, _, _, -1)
ShowSyncHudMsg(0, g_HudSyncObj, "(%d:%02d)", g_iCounter/60, g_iCounter%60)
static szNum[32]
num_to_word(g_iCounter, szNum, 31)
client_cmd(0,"speak ^"vox/%s^"", szNum)
g_iCounter--
}
__________________