Here's an example to schedule something:
function startDoingSomething(%delay)
{
if($doingSomething)
return;
doSomething(%delay * 60000); // call the function to do something (starting a loop)
$doingSomething = 1;
}
function stopDoingSomething()
{
if(!$doingSomething)
return;
cancel($somethingSchedule); // cancel the scheduled function call
$doingSomething = 0;
}
function doSomething(%delay)
{
// Do something...
$somethingSchedule = schedule(%delay, 0, "doSomething", %delay); // call this function again after the delay
}
Then you'd use startDoingSomething(delay_in_minutes);
to list the players in chat, you'd use a script like this:
function serverCmdListPlayers(%client)
{
for(%i=0;%i<ClientGroup.getCount();%i++)
{
%cl = ClientGroup.getObject(%i);
messageClient(%client, '', '%1 (%2)', %cl.name, %cl.score);
}
}
I've made it write their scores alongside so you can see how you'd add more information to it.