put this code into add-ons/client_timer/client.cs, along with a blank description.txt
function timerLoop()
{
cancel($timerSchedule);
NewChatSO.addLine($timerCount++);
$timerSchedule = schedule(1000, 0, timerLoop);
}
package timer
{
function NMH_Type::send(%this)
{
Parent::send(%this);
if(%this.getValue() $= "timer start")
{
$timerCount = 0;
timerLoop();
}
else
if(%this.getValue() $= "timer stop")
cancel($timerSchedule);
}
};
activatePackage(timer);
"timer start" and "timer stop" in chat to start/stop it
it counts in seconds, spamming your chat with a red number once a second
if you want it to act differently, let me know (ie not actually sending the timer start/stop message, changing the colour, different inputs/outputs or whatever)