Final version. Fixed 2 bugs

Bug #1: error while trying to get access from the gate when incar;
Bug #2: the gate doesn't get closed if a player logs out while the gate
is open.