O_o, there is still conversation about this plugin. ))) And Brad Jones is in the topic. )
I couldn't read all topic pages and I found some problem in the source.
So, does somebody use notification? It is wrong.
This one wrong:
PHP Code:
set_task(float(CHECK_FREQ), "check_players", _, _, _, "b"); set_task(float(CHECK_FREQ), "check_players", _, _, _, "b");
And this one wrong:
PHP Code:
determine_spec_time_elapsed(id)
{
new timeElapsed = 0;
if (get_pcvar_num(g_cvar_specQuery))
{
g_timeSpecQuery[id] += CHECK_FREQ;
if (g_timeSpecQuery[id] == 45)
{
display_spec_query(id);
}
else if (g_timeSpecQuery[id] >= 55)
{
timeElapsed = g_timeSpecQuery[id] - CHECK_FREQ;
g_timeSpecQuery[id] = CHECK_FREQ;
}
}
else
{
timeElapsed = CHECK_FREQ;
}
return timeElapsed;
}
Also, this is wrong too.
PHP Code:
public plugin_cfg()
{
new configDir[255];
formatex(configDir[get_configsdir(configDir, sizeof(configDir)-1)], sizeof(configDir)-1, "/");
server_cmd("exec %spbk.cfg", configDir);
server_exec();
get_pcvar_string(g_cvar_joinImmunity, g_joinImmunity, sizeof(g_joinImmunity)-1);
get_pcvar_string(g_cvar_specImmunity, g_specImmunity, sizeof(g_specImmunity)-1);
get_pcvar_string(g_cvar_afkImmunity, g_afkImmunity, sizeof(g_afkImmunity)-1);
cycle_log_files("pbk", clamp(get_pcvar_num(g_cvar_logCnt), 0, 11)); // must keep between 0 and 11 months
register_menucmd(register_menuid("pbk_AreYouThere"), (1<<0)|(1<<1), "query_answered");
set_task(float(CHECK_FREQ), "check_players", _, _, _, "b"); set_task(float(CHECK_FREQ), "check_players", _, _, _, "b");
}
And Spec Checker has bug too...