I'm searching for the possibility to Disable and Enable Flashlight in a trigger zone.
I've found this and modified it. But I'm not having any luck.
--------------------
function disable_flashlight_init(e)
end
function disable_flashlight_main(e)
SetFlashLightKeyEnabled(0)
end
-------------------------
MODIFIED:
-----------------------
function disable_flashlight_init(e)
end
function disable_flashlight_main(e)
if g_Entity[e]['plrinzone']==1 then
PlaySound(e,0)
SetFlashLightKeyEnabled(0)
Destroy(e)
ActivateIfUsed(e)
end
end
------------------------------
Thanks!