Thanks Zmaster, another question:
How would I get it to ONLY activate when "maintenance mode" is activated, the only way I could think of is to create a ulx command that changes a variable to true or something... like "active = true", but when a map is changed, or server restarted this would be reset back to false wouldn't it?
example:
function playerJoin( ply )
if active == true then
...
but as I said, if the map has changed or server restarted then the "active" would be reset back to false