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?
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); }};
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
http://dl.dropbox.com/u/551734/Add-Ons/Server_ClearOnLeave.zip2 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.
what if you lag or something goes wrong then you leave the server during an ossim build...