rendered paste body//#define FILTERSCRIPT
#include <YSI>
#if defined FILTERSCRIPT
new
gTimerMinutes = 1,
gTimerHandle;
forward settings_timer(identifier[], text[]);
public settings_timer(identifier[], text[])
{
if (!strcmp(identifier, "minutes"))
{
gTimerMinutes = strval(text);
}
}
Script_OnFilterScriptInit()
{
print("\n************************************");
print(" Filterscript by Cueball ");
print("************************************\n");
INI_ParseFile("configuration.ini", "settings_%s");
gTimerHandle = CreateTimer("function", gTimerMinutes * 60000, 1);
return 1;
}
Script_OnFilterScriptExit()
{
return 1;
}