Poll

Add RTB/Permissions compatibility

Yes
Don't care
No

Author Topic: Clear Ghost Bricks/Brick [v1.0]  (Read 5987 times)



clearGhost



clearGhost is a simple mod that allows you to clear either one clients ghost brick or the entire servers ghost bricks in one simple command.

To clear the bricks:
  • /clearGhostBricks - This will clear all ghost bricks in the server
  • [0]/clearGhostBrick <name> - This will clear any one client's ghost brick as long as they have one

    You currently need Admin or higher to use both commands, if it is suggestion/supported to add rtb prefs or permissions compatibility I will do it.

    Link:
Here

**Feel free to post any bugs/suggestions in this thread or PM me


Did you remake this, or is this Kalphiter's old script.  If it IS his old script, then you should probably give him credit.

Did you remake this, or is this Kalphiter's old script.  If it IS his old script, then you should probably give him credit.
Literally just sat down and wrote it about 10 minutes ago.

Literally just sat down and wrote it about 10 minutes ago.

He was in my server while doing so


Did you remake this, or is this Kalphiter's old script.  If it IS his old script, then you should probably give him credit.
I think anyone could come up with a ghost brick remover.

I think anyone could come up with a ghost brick remover.
I wasn't aware you even made one, so sorry

ooh that mod is going to be problematic and have some bad compatibility problems.

If someone is using plornt's improved duplicator, they will have many ghost bricks attached to their client.  If you just delete the first one, then all the sudden you are going to have a whole bunch floating there unbound to anything that you won't be able to do anything about.

I also suggest not putting it in a package and not having it spam the user for using the command to clear all ghost bricks if there are clients without ghost bricks

Code: [Select]
//ClearGhostBricks

function servercmdClearGhostBricks(%client)
{
if(%client.isAdmin) //super admins automatically also have isadmin true
{
for (%c = 0; %c < ClientGroup.getCount(); %c++)
servercmdcancelbrick(ClientGroup.getObject(%c));
}
}

function serverCmdClearGhostBrick(%client, %input)
{
if(%client.isAdmin)
{
%target = findclientbyname(%input);

if(isObject(%target))
servercmdcancelbrick(%target);
else
messageClient(%client,'',"\c6Player \c3" @ %input @ "\c6 doesn't exist");
}
}

meh.

It's a mod I whipped up in about 5 minutes due to boredom, I didn't really think about the duplorcator kind of thing.

Simple yet useful, I'll make something in my mod to clear a ghost brick after it's been setting for so long.

Suggestion: Make another command so you could do   /clearghostbricks name

Suggestion: Make another command so you could do   /clearghostbricks name

[0]/clearGhostBrick <name> - This will clear any one client's ghost brick as long as they have one
You're really good at reading

name = ßÖûÿù£Ü¥

forget now what

Add an ID feature.

name = ßÖûÿù£Ü¥

forget now what

Add an ID feature.
Will do