Hello everyone!
I present you my autopause script written in CubeScript which automatically pause the current game if someone leaves it or goes in spectators. This was a cool feature in one server mod, I don't remember which one, but it seems it disappeared.
Everything is explained inside README.txt file.
To download the script:
click here.
Feel free to add some comments and questions on this topic.