That resets the light always when clients connect. It is not needed.
PHP Code:
#include <amxmodx>
#include <engine>
public plugin_init()
{
register_plugin("Total Darkness", "1.0", "hleV");
set_lights("a");
}
To make with a cvar you need to make it with a looped task.
__________________