Forum

> > CS2D > Scripts > Flashlight
Forums overviewCS2D overview Scripts overviewLog in to reply

English Flashlight

3 replies
To the start Previous 1 Next To the start

old Flashlight

Flame
BANNED Off Offline

Quote
How to make a lua when you press f3 you turn on flashlight when u press again u turn it off

old Re: Flashlight

Cure Pikachu
User Off Offline

Quote
Edit the script that user Tajifun gave you then.
I am just showing lines 18 to 20 (assuming that the script's unedited before), the lines you need to edit. (Please don't tell me how to count the lines)
1
2
3
4
5
-- From Line 1-17
addhook("serveraction","lightz") -- Line 18 (Changed)
function lightz(p,t) -- Line 19 (Unchanged)
	if (t == 2) then -- Line 20 (Changed)
-- From Line 21 onwards
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview