package HungerMain
{
function servercmdStartLoopJazZ(%client)
{
if(%client.isSuperAdmin || %client.isAdmin)
{
schedule(500, 0, RelayLoopJazZ, %client);
}
else
{
messageClient(%client,'',"\c6 Your Not Admin");
}
}
};
activatepackage(HungerMain);
function RelayLoopJazZ(%client)
{
messageClient(%client,'',"\c6 Worked.");
schedule(500, 0, RelayLoopJazZ, %client);
}
But please note that it won't stop unless you overwrite the function, so you should have some method of stopping it.