Forum

> > CS2D > Scripts > Hel with menu
Forums overviewCS2D overview Scripts overviewLog in to reply

English Hel with menu

13 replies
To the start Previous 1 Next To the start

old Hel with menu

Black Wolf
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
if a == 1 then
		if level[id] == 1 then
			menu(id,"Vip Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 2 then
			menu(id,"Member Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 3 or 4 or 5 then
			menu(id,"Mod Menu,Heavy Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 6 or 7 or 8 then
			menu(id,"min Menu,FN F2000,Heavy Armor,Medic Armor,M134,Tmp,Superarmor,God mode| on/off,,Teleport")
		end

Admin/mod comment

This title... oh my...

old Re: Hel with menu

Jynxxx
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
if a == 1 then
		if level[id] == 1 then
			menu(id,"Vip Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 2 then
			menu(id,"Member Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 3 or 4 or 5 then
			menu(id,"Mod Menu,Heavy Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] >= 6 then
			menu(id,"min Menu,FN F2000,Heavy Armor,Medic Armor,M134,Tmp,Superarmor,God mode| on/off,,Teleport")
		end

old Re: Hel with menu

Black Wolf
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
if a == 1 then
          if level[id] == 1 then
               menu(id,"Vip Menu,Medic Armor,FN F2000,,,,,,,Teleport")
          elseif level[id] == 2 then
               menu(id,"Member Menu,Medic Armor,FN F2000,,,,,,,Teleport")
          elseif level[id] == 3 or 4 or 5 then
               menu(id,"Mod Menu,Heavy Armor,FN F2000,,,,,,,Teleport")
          elseif level[id] >= 6 or 7 or 8 then
               menu(id,"min Menu,FN F2000,Heavy Armor,Medic Armor,M134,Tmp,Superarmor,God mode| on/off,,Teleport")
          end

Still not working...

old Re: Hel with menu

uaiek
User Off Offline

Quote
maybe this?
Spoiler >

old Re: Hel with menu

UnkN
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
if a == 1 then
		if level[id] == 1 then
			menu(id,"Vip Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id] == 2 then
			menu(id,"Member Menu,Medic Armor,FN F2000,,,,,,,Teleport")
		elseif level[id]>=3 and level[id]<=5 then
			menu(id,"Mod Menu,Heavy Armor,FN F2000,,,,,,,Teleport")
		elseif level[id]>=6 and level[id]<=8 then
			menu(id,"Min Menu,FN F2000,Heavy Armor,Medic Armor,M134,Tmp,Superarmor,God mode| on/off,,Teleport")
		end
	end
It works

old Re: Hel with menu

EngiN33R
Moderator Off Offline

Quote
user omg has written
u have too many commas

Commas without anything between them mean empty spaces - the more you know.

old Re: Hel with menu

danh
User Off Offline

Quote
user EngiN33R has written
user omg has written
u have too many commas

Commas without anything between them mean empty spaces - the more you know.

like
,nil,nil,nil, ...

old Re: Hel with menu

sheeL
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
if a == 1 then
          if level[id] == 1 then
               menu(id,"Vip Menu,Medic Armor,FN F2000,,,,,,,Teleport")
          if level[id] == 2 then
               menu(id,"Member Menu,Medic Armor,FN F2000,,,,,,,Teleport")
             end
          if level[id]>=3 and level[id]<=5 then
               menu(id,"Mod Menu,Heavy Armor,FN F2000,,,,,,,Teleport")
            end
          if level[id]>=6 and level[id]<=8 then
               menu(id,"Min Menu,FN F2000,Heavy Armor,Medic Armor,M134,Tmp,Superarmor,God mode| on/off,,Teleport")
          end
          end

old Re: Hel with menu

EngiN33R
Moderator Off Offline

Quote
user danh has written
user EngiN33R has written
user omg has written
u have too many commas

Commas without anything between them mean empty spaces - the more you know.

like
,nil,nil,nil, ...


Almost, except in reality that would just make a load of buttons called 'nil'.

@user sheeL: With your code, unless the conditional statement is the only expression in its chunk, it would close the chunk because of that last end. user UnkN's code is correct if it's one of many expressions in its chunk.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview