17.06.2011, 09:25
Where are you defining "open" Because if you're doing it inside OnPlayerCommandText (or w/e the callback is) "open" will be set to 0 ever time you run a command.
Define it at the top of your script.
Define it at the top of your script.