Author Topic: I need a script that clears someones bricks when they leave my server.  (Read 509 times)

Simple request. I need a script that clears the players bricks whenever they leave the server.
« Last Edit: October 28, 2013, 05:42:27 PM by Sentry »

It's made, I think by marble man, but you would have to set the time to 0 or something.
I'll try to get you a link unless he posts it or someone else does.


package AutoClear
{
   function GameConnection::onClientLeaveGame(%this)
   {
      if(!%this.isAdmin)
         servercmdClearBricks(%this);
      return parent::onClientLeaveGame(%this);
   }
};
activatepackage(AutoClear);


package that for him...

it will have a user clear their own bricks when they leave if they aren't admin..
It might mess with other users builds (if collaborative), though


package AutoClear
{
   function GameConnection::onClientLeaveGame(%this)
   {
      if(!%this.isAdmin)
         servercmdClearBricks(%this);
      return parent::onClientLeaveGame(%this);
   }
};
activatepackage(AutoClear);


package that for him...

it will have a user clear their own bricks when they leave if they aren't admin..
It might mess with other users builds (if collaborative), though
I'm fine with that. Thanks.

It might mess with other users builds (if collaborative), though
if this is the issue you can use my clear spam on leave which might be more suited to your needs


package AutoClear
{
   function GameConnection::onClientLeaveGame(%this)
   {
      if(!%this.isAdmin)
         servercmdClearBricks(%this);
      return parent::onClientLeaveGame(%this);
   }
};
activatepackage(AutoClear);


package that for him...

it will have a user clear their own bricks when they leave if they aren't admin..
It might mess with other users builds (if collaborative), though
Marble, why do you never package your code?