Create a second mdl"cube" in the script with ent_creat() set it's flags to invisible, set it's flag to LIGHT, set it's lightrange to say 100; in the ent_create - assign it a action in the action you turn the light on and off by setting reseting the LIGHT flag or settting lightrange to 0 or >0