Author Topic: Clearbricks On Leave  (Read 1230 times)

I'd like to request a script that clears vehicle bricks, empty baseplates, and lone bricks of a player as they leave.
For example, a user connects, they make a single 1x1 brick and a single vehicle spawn. When they leave shortly after, the brick is detected as not being connected to anything else and is destroyed. The vehicle brick is also automatically removed.

This'll help clear jokers who make spawns and then leave.



That deletes ALL of their bricks, whether they built something good or not. Doesn't sound very nice.

A while ago I made a script that checked the number of bricks that player had, and if they had less than a configurable amount of bricks, it would delete them after a configurable amount of time, and canceled the deletion if they came back.

I don't remember if it worked, I don't remember where it is, but I'll see what I can do about remaking it.

Thanks.
Deleting all bricks is not deal.

Well I found it. It's kind of badly coded, I didn't feel like completely rewriting it, I just changed it enough so that it works.
Download

Just thought I'd put my old version here too. It clears on leave unless they're on a space delimeted list of BL_IDs. The list automatically has all the auto admins and auto supers and the host on it, of course.
Download

Just thought I'd put my old version here too. It clears on leave unless they're on a space delimeted list of BL_IDs. The list automatically has all the auto admins and auto supers and the host on it, of course.
Download

Looping through all the bricks and deleting them with an increasing delay - how necessary is that? I assume it's to avoid lag with larger amounts of bricks, but how bad is the lag without it? Just curious.
Though I guess it doesn't really matter for mine, deleting a small amount of bricks won't lag.
« Last Edit: October 05, 2010, 02:23:35 AM by Headcrab Zombie »