Forum

> > CS2D > Scripts > Classes menu Lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English Classes menu Lua

4 replies
To the start Previous 1 Next To the start

old Classes menu Lua

LeagueOfLegends
User Off Offline

Quote
Hello guys, i don't know how to make a Classes Menu Lua actually.. I mean:
I wan't to know how to make, that you can choose only one class.
Explaining more:
Choosing one class: i mean, so you can't dupe classes. But only have 1 class. Also i need codes, so you can change those classes.

Thank you for reading.

old Re: Classes menu Lua

J4x
User Off Offline

Quote
I have some questions:
1. the menu will appear when u spawn, use server action or how?
2. Whats the name of the class and what it will have?

old Answer

LeagueOfLegends
User Off Offline

Quote
FN_Linking Park,

1. The menu will appear when spawn.
2. The name of the classes example: Ranger

old Re: Classes menu Lua

J4x
User Off Offline

Quote
well then it will be:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
addhook("spawn","mnu")
function mnu(id)
menu(id,"Menu,Ranger|M4a1")
end

addhook("menu","ranger")
function ranger(title,id,button)
if(title=="Menu") then
if button == 1 then
parse("strip "..id)
parse("equip "..id.." 32")
parse("setarmor "..id.." 150")
end
end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview