Well, yes - I'm not a event scripting master, but here's some code to get you started.
$hoursPerDay = "24";
registerOutputEvent(fxDtsBrick,"setSafe");
function fxDtsBrick::setSafe(%client)
{
messageClient(%client,'',"\c6You are now safe.");
%client.isSafe = "1";
}
registerOutputEvent(fxDtsBrick,"setNotSafe");
function fxDtsBrick::setNotSafe(%client)
{
messageClient(%client,'',"\c6You are now not safe.");
%client.isSafe = "0";
}
Also, for timing:
...
$dayTime = 1000 * 60 * $hoursPerDay;
schedule($dayTime,toggleDay);
function toggleDay()
{
if($day $="0")
{
messageAll('',"\c6It is now day!");
$day = "1";
}
else if($day $="1")
{
messageAll('',"\c6It is now night!");
$day = "0";
for(%i = 0; i% < clientGroup... stuff here.
}
}
Remember: I do not guarantee this to work, it is though, just some chunk of code to get you started.