Forum

> > CS2D > Scripts > Menu button 0 and Laser color mode.
Forums overviewCS2D overview Scripts overviewLog in to reply

English Menu button 0 and Laser color mode.

3 replies
To the start Previous 1 Next To the start

old Menu button 0 and Laser color mode.

Rainoth
Moderator Off Offline

Quote
Is it possible to use menu button 0 and Laser Color mode's in lua ?

So it could be something like

1
2
3
if button==0 then
	msg2(id,You must pick something !)
end
and
1
2
3
4
5
6
7
if weapon == 45 then
	if mode==1 then -- Red/Blue/Green/Yello
		stuff
	elseif mode==2 then --Different color
		stuff
	end
end
e.g. flash/equip/heal, well you get the point

old Re: Menu button 0 and Laser color mode.

Gajos
BANNED Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
function menu(id,t,b)
	local a
	a = false
	if b > 0 and b < 10 then
		a = true
	end
	if not a then
		msg2(id,"your msg")
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview