Script that turns off all lights?

Could someone please make a script which turns off all lights with a console command then another console command which turns all the lights back on again in the level?

Thanks

SeeDee

You can turn off all ** named ** lights but not all of them vai lua as it is compiled into one light map.