All pastes #729522 Raw Edit

Cueball

public text v1 · immutable
·published 2007-10-08 02:06 UTC
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;
}