Spoiler --Hummna menu.lua--
--Nil value--
if humman==nil then humman={} end
humman.menu={}
--Command--
addhook("say","humman.menu.say")
function humman.menu.say(id,t)
if t=="!humman menu" then
menu(id,"Humman menu,Thief|Super Speed,Engineer|Buildings,Spy|Invisibility,Police|Shield&Machete,Soldier|FN2000,Heavy unit|RPG,Doctor|Medic armor,Terrorist|Grenade(s),SWAT|XM1014")
end
end
--Team--
addhook("team","humman.menu.team")
function humman.menu.team(id,team)
if (team>0) then
humman.menu.say(id)
end
end
--Selection--
addhook("menu","humman.menu.menu")
function humman.menu.menu(id,menu,sel)
if (menu=="Humman menu") then
if (sel>=0 and sel<=9) then
humman.menu.say[id]=sel
if (player(id,"health")>0) then
msg2("You will spawn as these class next round")
end
end
end
end
--Menu option--
addhook("spawn","humman.menu.spawn")
function humman.menu.spawn(id)
-- Thef --
if (humman.classes.say[id]<=1) then
parse ("setmaxhealth "..id.." 100")
parse ("speedmod "..id.." 100")
return "4,73,78,80";
end
-- Engineer --
if (humman.classes.say[id]==2) then
parse ("setmaxhealth "..id.." 110")
parse ("speedmod "..id.." 90")
return "6,41,74,76,77,80,85,87,89";
end
-- SPY --
if (humman.classes.say[id]==3) then
parse ("setmaxhealth "..id.." 120")
parse ("speedmod "..id.." 80")
return "1,31,34,35,36,37,51,52,53,54,60,72,76,84";
end
-- Police --
if (humman.classes.say[id]==4) then
parse ("setmaxhealth "..id.." 130")
parse ("speedmod "..id.." 70")
return "3,41,76,80";
end
-- Solider --
if (humman.classes.say[id]==5) then
parse ("setmaxhealth "..id.." 130")
parse ("speedmod "..id.." 70")
return "3,60,72,76,80,91";
end
-- Heavy unit --
if (humman.classes.say[id]==6) then
parse ("setmaxhealth "..id.." 140")
parse ("speedmod "..id.." 60")
return "3,80,90";
end
-- Doctor --
if (human.classes.say[id]==7) then
parse ("setmaxhealth "..id.." 130")
parse ("speedmod "..id.." 60")
return "2,41,69,82";
end
-- Teriost --
if (humman.classes.say[id]==8) then
parse ("setmaxhealth "..id.." 120")
parse ("speedmod "..id.." 70")
return "30,51,52,53,60,69,72,73,76,77,87,89";
end
-- SWAT --
if (humman.classes.say[id]==9) then
parse ("setmaxhealth "..id.." 150")
parse ("speedmod "..id.." 50")
return "3,10,11,69,80";
end
end
--NO BUYING--
addhook("buy","humman.menu.buy")
function humman.menu.buy()
return 1
end
--NO COLLECTING--
addhook("walkover","humman.menu.walkover")
function humman.menu.walkover(id,iid,type)
if (type>=61 and type<=68) then
return 0
end
return 1
end
--NO DROPPING--
addhook("drop","humman.menu.drop")
function humman.menu.drop()
return 1
end
-- NO DEAD DROPPING --
addhook("die","humman.menu.die")
function humman.menu.die()
return 1
end