23.12.2010, 12:29
Это-же элементарно, вот за пару мин набросал.
Код:
new seconds; new TimerNewYear; new msg[max_line]; forward NewYear(); public OnFilterScriptInit() { seconds = 1293840000 - gettime(); TimerNewYear = SetTimer("NewYear",1000,1); return 1; } public OnFilterScriptExit() { KillTimer(TimerNewYear); return 1; } public NewYear() { seconds--; format(msg,max_line,"hostname %d",seconds); SendRconCommand(msg); return 1; }