Author Topic: Clear Player Bricks on Leave  (Read 2069 times)

Wouldn't this be the script for clientSided?
Code: [Select]
package onLeaveClear
{
 function disconnect()
 {
  commandToServer('ClearBricks');
  //A little extra =D
  commandToServer('MessageSent',"Bye.");
  %Parent = Parent::disconnect();
  //So it will send the command before they leave.
  schedule(1000,0,%parent);
 }
};
?
But this would be a good idea so someone wan't still saves but DaSord is right accept it wouldn't called the Disconnect function if the whole game would crash, am i right?
Please just stop trying.
Also, you dumbass, you called Parent::disconnect() when you assigned the variable

What Ephialtes said would be fine, but not leaving and clearing their bricks.

"Bye guys, I'm going to work on this later"

Host: "NO WAIT!"

"Blockhead2345 has left the game"
"Blockhead2345's bricks have been cleared"

I still need it for what I'm planning to do.. I'm going to make basicly a multi-leveled eventing school. There will be empty holes in the ground for people to practice events on. But I don't want to clear these bricks after they leave, so I figured a script would work well.


Right but I mean why not just save your bricks on leave. Also if I ever get a desent amount of free time I will make it for you via pm.
i'm pretty sure you didn't make that avatar

So should I just let this die seeing as nobody seems to want to make it?

i'm pretty sure you didn't make that avatar
No, Makanix let him use it.

http://dl.dropbox.com/u/551734/Add-Ons/Server_ClearOnLeave.zip
2 RTB Prefs; Enabled and decluded. Enable is self explanatory and decluded is just a space delimeted list of IDs you want to ignore the clearing for.

http://dl.dropbox.com/u/551734/Add-Ons/Server_ClearOnLeave.zip
2 RTB Prefs; Enabled and decluded. Enable is self explanatory and decluded is just a space delimeted list of IDs you want to ignore the clearing for.
Sweet, thanks alot for this.

what if you lag or something goes wrong then you leave the server during an ossim build...

what if you lag or something goes wrong then you leave the server during an ossim build...

Tough luck.

I think that it shouldn't be when the leave, but rather if they're gone for 3 days. Maybe add a time variable?