Use the lua io library to edit a .ini file, or txt, or whatever.
If '1', the client is 'open', of '0', it's closed, and on init.lua read that file and see, if the first line is a '0', you can open, else, it gives an error xD
Not the best solution, but works.