Do what HellsHero said.
As for an explanation of why, onClientEnterGame is called when the client is finished loading, whereas autoAdminCheck is called when they first enter the server.
Also, code neatness changes:
If a piece of code is being executed no matter what the condition (%fw.close and %fw.delete), put it after the if...else block, rather than in every condition.