Blockland Forums > Suggestions & Requests
I need a script that clears someones bricks when they leave my server.
<< < (2/2)
TristanLuigi:

--- 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 ---
Marble, why do you never package your code?
MARBLE MAN:

--- Quote from: TristanLuigi on October 29, 2013, 07:08:13 PM ---Marble, why do you never package your code?

--- End quote ---
2lazy
Navigation
Message Index
Previous page

Go to full version