If this is not exactly what you're asking for, please say so.
Clear Spam Bricks Server Script
snip
1.
no, that will only work client-side looks like you either added the second part while I was typing, or I just didn't see it
2. I'd add more instruction than that
Small text code contains errors
1.
serverCmdClearSpamBricks(%client);If you never host a dedicated server, you could just use yourself:
serverCmdClearSpamBricks(findLocalClient());But if you ever host a dedicated server, or plan on publically releasing this, you need a way to ensure that there will always be client available that is always able to call the command. In situations like this I just create an AIConnection with isAdmin set to 1.
Personally I would just start off with the method that works in dedicated servers, so you don't have to change it later.
2.
function genericLoopingFunction(%arg1,%arg2,...%argN)
{
cancel($genericLoopingFunctionTick);
//do stuff
$genericLoopingFunctionTick = schedule(timeInMS,0,genericLoopingFunction,%arg1,%arg2,...%argN);
}