19 lines
356 B
Plaintext
19 lines
356 B
Plaintext
|
////////////////////////////////////
|
||
|
/// 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);
|
||
|
}
|
||
|
}
|