void main() { int iOpener = GetGender(GetLastOpenedBy()); if(iOpener != GENDER_MALE) { ActionCloseDoor(OBJECT_SELF); ActionSpeakString("No no Ladies...this is the men's side."); } { DelayCommand(8.0, ActionCloseDoor(OBJECT_SELF)); // Close the door 8 seconds after opening // DelayCommand(8.0, ActionDoCommand (SetLocked (OBJECT_SELF, TRUE))); // Lock the door } }