This should do it, though I haven't tested it, I'm leaving that up to you.
package Deoxy
{
function Armor::OnDismount(%this,%player,%object)
{
%p = parent::OnDismount(%this,%player,%obj);
%client = %player.client;
%client.killTimer = %player.schedule(%client.timeRemaining,kill);
echo("Restarting kill timer for "@%client.name@" ("@%client.timeRemaining@")");
%client.timeRemaining = "";
return %p;
}
function armor::onMount(%this,%player,%object)
{
%p = parent::onMount(%this,%player,%object);
%client = %player.client;
%client.timeRemaining = getTimeRemaining(%client.killTimer);
cancel(%client.killTimer);
echo("Stopping kill timer for "@%client.name@" ("@%client.timeRemaining@")");
return %p;
}
function gameConnection::spawnPlayer(%this)
{
%p = parent::spawnPlayer(%this);
%this.killTimer = %obj.schedule(30000,kill);
echo("Starting kill timer for "@%this.name@" (30 seconds)");
return %p;
}
};
activatePackage(Deoxy);