Locking elevator

Hello.
I need a little help again.
Does anyone know how to lock elevator from a top?
I tried to disable the elevator by ObjectOff(Object("myelev")) but it didn't block the upper pit connected to every elevator.
PS: please don't use the other scripting editor I don't wanna mess with that. I am sure it's possible with the standard map editor scripting. I just don't know how.
Thanks.
I need a little help again.
Does anyone know how to lock elevator from a top?
I tried to disable the elevator by ObjectOff(Object("myelev")) but it didn't block the upper pit connected to every elevator.
PS: please don't use the other scripting editor I don't wanna mess with that. I am sure it's possible with the standard map editor scripting. I just don't know how.
Thanks.