//////////////////////////////////// /// Script Created by Zetino74 /// /// on: Monday 2nd February 2004 /// void main() { int nInt = GetTimeHour(); object oTarget = OBJECT_SELF; if (nInt <= 8 || nInt >= 18) { AssignCommand(oTarget, ActionCloseDoor(oTarget)); SetLocked(oTarget, TRUE); } else { SetLocked(oTarget, FALSE); } }