Blockland Forums > Suggestions & Requests

I need a script that clears someones bricks when they leave my server.

Pages: (1/2) > >>

Sentry:

Simple request. I need a script that clears the players bricks whenever they leave the server.

xSetrox:

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.

MARBLE MAN:


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

Sentry:


--- Quote from: MARBLE MAN on October 28, 2013, 11:23:13 PM ---
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

--- End quote ---
I'm fine with that. Thanks.

Swollow:


--- Quote from: MARBLE MAN on October 28, 2013, 11:23:13 PM ---It might mess with other users builds (if collaborative), though

--- End quote ---
if this is the issue you can use my clear spam on leave which might be more suited to your needs

Pages: (1/2) > >>

Go to full version