Скрипт "До нового года осталось..."
#10

Это-же элементарно, вот за пару мин набросал.

Код:
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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)