1. commandtoserver('clearspambricks',""); OR servercmdclearspambricks(%client);
2. schedule(time,0,Function,argument);
function clearloop(%time){
if (%stop != 1)
{
commandtoserver('clearspambricks',"");
schedule(%time,0,'clearloop',%time);
}
}
function servercmdClearLoop(%client, %time){
if (%client.isSuperAdmin && %time >= 30)
{
%stop = 0;
%time *= 1000; //seconds to miliseconds
clearloop(%time);
}
}
function serverCmdStopClearLoop(%client){
if (%client.isSuperAdmin)
%stop = 1;
}
I believe, that should work, but i do not advise you use it...
-edit
added turning it off
^^ un needed, but didnt want to delete
edit - answered questions