try to leave the last part away
or store the value first
edit: this should work
Code:
new lightvalue
public test(id)
{
lightvalue = entity_get_int(id,EV_INT_effects)
entity_set_int(id,EV_INT_effects,EF_BRIGHTLIGHT)
return PLUGIN_HANDLED
}
public set_back(id)
{
entity_set_int(id,EV_INT_effects,lightvalue)
return PLUGIN_HANDLED
}