Author Topic: Clear a player's bricks  (Read 1249 times)

I've tried everything I can think of. This is wrong:

findClientByName("blahblahblah").ClearBricks();

What is correct?

/clearbricks (bleh.)

I've tried everything I can think of. This is wrong:

findClientByName("blahblahblah").ServerCmdClearBricks();

What is correct?
fixed

fixed
No you didn't
You can do serverCmdClearBricks(findclientbyname("blahblahblah")); but that would say that they cleared their own bricks which is just silly, the smart thing would be to loop through their brick group and kill all the bricks in it.

fixed

Post important things that happened to you at a certain age, example:

I, 
got my first gameboy with Pokemon Ruby at 2yrs.
Beat it at 3yrs.
learned to code at 8yrs.

and so on

Looks like you can add "forgot how to code at 11 yrs" to that little list of yours.
« Last Edit: March 10, 2009, 03:43:39 AM by Ephialtes »

findClientByName("blahblahblah").ClearBricks();
Wrong. This won't do anything.
/clearbricks (bleh.)
Wrong, this will clear your own bricks.
fixed
HAHAHAHAHAHA!
serverCmdClearBricks(findclientbyname("blahblahblah"));
Would work, but would show as the player clearing their own bricks.



Try /clearbrickgroup ID
« Last Edit: March 10, 2009, 04:12:03 AM by Chrono »

Looks like you can add "forgot how to code at 12 yrs" to that little list of yours.
So he forgot how to code next year?

Edit: Arg, thought I was in edit mode, and accidently double posted. D:

He said he was 12 in another thread..

And so he is actually 11, and 12. Magic. :o

no, I'm gonna try to trade it in, because, I went there yesterday, and seeing how i'm 11, he's like "oh, did u put it in rite?" and I explained it to him and he was asking my mom questions, (she dosent know anything bout the pc)
and I'm 12

Would work, but would show as the player clearing their own bricks.
but that would say that they cleared their own bricks which is just silly


Code: [Select]
function serverCmdClearBricksPlayer(%client,%clear)
{
   %clear = findClientByName(%clear).BL_ID;
   serverCmdClearBrickgroup(%client,%clear);
}
/clearBricksPlayer Name
« Last Edit: March 12, 2009, 08:57:01 PM by Slicksilver555 »

Hope you know you have to clear it by BL_ID, and not the client's object ID.

Hope you know you have to clear it by BL_ID, and not the client's object ID.
Figured that out today, haven't messed with /clearbricks as I usually clear it using the admin menu.