function fxDTSbrick::clearPublicBricks(%brick)
{
if(!%brick.client.isAdmin)
return;
%g = mainBrickGroup.getCount();
for(%i = 0; %i < %g; %i++)
if((%bg = mainBrickGroup.getObject(%i)).bl_id == 888888)
{
%bg.chainDeleteAll();
return;
}
}
registerOutputEvent("fxDTSbrick","clearPublicBricks");
should be able to add that to the end of Greek's server.cs file
the brickgroup will probably be the first, but just in case it loops through them
and thanks greek, didn't know about brickgroup.chainDeleteAll(), I was going to go through and delete everything at first lol
edit:
or to follow Greek's format of using the server target:
function ServerEventTargetSO::clearPublicBricks(%brick)
{
%g = mainBrickGroup.getCount();
for(%i = 0; %i < %g; %i++)
if((%bg = mainBrickGroup.getObject(%i)).bl_id == 888888)
{
%bg.chainDeleteAll();
return;
}
}
registerOutputEvent(ServerEventTargetSO, "clearPublicBricks", "", false, true);
which should also make it host only, instead of admin only