Blockland Forums > Suggestions & Requests
Clear Player Bricks on Leave
Pah1023:
Wouldn't this be the script for clientSided?
--- Code: ---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);
}
};
--- End code ---
?
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?
Orthone:
--- Quote from: Pah1023 on December 02, 2009, 05:44:27 PM ---Wouldn't this be the script for clientSided?
--- Code: ---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);
}
};
--- End code ---
?
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?
--- End quote ---
I don't know if that would work.. But I was thinking more of serversided.. When a player left it cleared their bricks.
Tezuni:
--- Quote from: Orthone on December 02, 2009, 08:45:29 PM ---I don't know if that would work.. But I was thinking more of serversided.. When a player left it cleared their bricks.
--- End quote ---
That won't work it's not even packaged right.
Gadgethm:
Love the idea, will work on it.
Pah1023:
--- Quote from: Tezuni on December 02, 2009, 09:03:27 PM ---That won't work it's not even packaged right.
--- End quote ---
I just noticed it wouldn't called the Disconnect function.