function server(id,action)
if action == 1 then
menu(id,"SELECT YOU'RE PERK@b,Berserker,Firebug")
end
end
How to make that berserker gets a machete and firebug gets a flamethrower
addhook("serveraction","func1") function func1(id,key) 	if key == 1 then 		menu(id,"Select your perk,Berserker,Firebug") 	end end addhook("menu","func2") function func2(id,menu,sel) 	if menu == "Select your perk" then 		if sel == 1 then 			parse("equip "..id.." 69") 		end 		if sel == 2 then 			parse("equip "..id.." 46") 		end 	end end
parse("equip "..id.." 46")
parse("equip "..id.." "..WeaponID)
id=image("gfx/sprites/flare2.bmp",0,0,100+i) imageblend(id,1)
function initArray(m) local array = {} for i = 1, m do array[i] = 0 end return array end sample.classes.class = initArray(32) function sample.classes.classmenu1(id) 	menu(id,"Select your perk,Berserker,Firebug,,,,,,(Back),Next") end function sample.classes.classmenu2(id) 	menu(id,"Select your perk #2,Militia,Policeman,,,,,,Back,(Next)") end addhook("menu","func2") function func2(id,menu,sel) 	if menu == "Select your perk" then 	if sel == 1 then 		parse("equip "..id.." 69") 	elseif sel == 2 then 		parse("equip "..id.." 46") 		elseif sel == 9 			function sample.classes.classmenu2(id) 	elseif menu == "Select your perk #2" then 		if sel == 1 then 			parse("equip "..id.." 28") 		elseif sel == 2 then 			parse("equip "..id.." 3") 		elseif sel == 8 then 			function sample.classes.classmenu1(id) 	end end
addhook("serveraction","func1") function func1(id,key) 	if key == 1 then 	menu(id,"Select your perk,Berserker,Firebug") 	end 	if key == 2 then 		menu(id,"Select your perk #2,Militia,Policeman") 	end end addhook("menu","func2") function func2(id,menu,sel) 	if menu == "Select your perk" then 		if sel == 1 then 			parse("equip "..id.." 69") 		elseif sel == 2 then 			parse("equip "..id.." 46") 		end end 	if menu == "Select your perk #2" then 		if sel == 1 then 			parse("equip "..id.." 28")		 		elseif sel == 2 then 			parse("equip "..id.." 3") 		end 	end
function Array(size,value) 	local array = {} 	for i = 1, size do 		array[i]=value 	end 	return array end menu = Array(32,0) menut = Array(32,0) lol = Array(32,0) lolct = Array(32,0) addhook("spawn","spawnme") function spawnme(id) 	if team == 1 then 		menu(id,"Terrorist Menu,FireBug,Deep Stalker") 		if menu[id] == 1 then 		menu[id] = 0 	if team == 2 then 		menu(id,"Counter Menu,Berserker,???") 		if lol[id] == 1 then 		lol[id] = 0 		end 	end end addhook("menu","lol") function lol(id,title,sel) 	if title == "Terrorist Menu" then 		if sel == 1 then 			parse("equip "..id.." 49") 			parse("equip "..id.." 80") 			parse("speedmod "..id.." -15") 			parse("sethealth "..id.." 50") 			msg2(id,"Your Class is Firebug") 		end 		if sel == 2 then 			parse("equip "..id.." 45") 			parse("sethealth "..id.." 5") 			parse("equip "..id.." 84") 			msg2(id,"Your Class is Deep Stalker") 		end 	end 	if title == "Counter Menu" then 		if sel == 1 then 			parse("equip "..id.." 69") 			parse("equip "..id.." 79") 			parse("strip "..id.." 50") 			parse("strip "..id.." 2") 			parse("speedmod "..id.." 35") 			msg2(id,"Your Class is Berserker") 		end 		if sel == 2 then 			parse("equip "..id.." 88") 			parse("setmoney "..id.." 0") 			parse("killplayer "..id) 			msg2(id,"HAHAHAH BYE BYE!") 		end 	end end addhook("spawn","spawnlol") function spawnlol(id) 	menu[id] == 1 end addhook("spawn","again") function again(id) 	parse("setmoney "..id.." 16000") end