On my server, some people tried to abuse the fact that I made you gain money by building and spammed bricks. Of course, soon they got the message that while I'm at the keyboard, I can tell they're spamming, so they waited until I was 'afk' to do it. I watched from server console and saw it. My echo-onPlant script.
function fxDTSbrickdata::onPlant(%data,%brick)
{
schedule(100,0,cashbrickCheck,%brick);
Parent::onPlant(%data,%brick);
}
function cashbrickCheck(%brick)
{
%client = %brick.getgroup().client;
echo(%client.name SPC "built and now has" SPC %client.cash);
}
EDIT: I slapped it together, and I called a nonexistant %client, let me use part of the real script, minus the other junk in it. I'm too lazy to see if getgroup().client works onPlant.
Needless to say, the offenders were first warned, stripped of their cash (by the cookie monster), and banned.
function servercmdEatCash(%client,%target)
{
if(%client.isSuperAdmin)
{
for(%i=0;%i<ClientGroup.getCount();%i++){
%cl = ClientGroup.getObject(%i);
if(strstr(strlwr(%cl.name),strlwr(%target))!=-1){
%found = %cl;
messageAll("","\c0Oh noes! A stray \c1Cookie Monster\c0 has eaten all of \c6"@ %found.name @"\'s\c0 cash!");
%found.cash = 0;
}}}
}