1
if userlevel[id]==1 then
Spawn with : Medic armor , p228 , shield , m4a1 , chainsaw
(82,4,41,32,85)
1
if userlevel[id]==2 then
Spawn with : Medic armor , chainsaw
(82,32)
i need just a hook & function no other!
Scripts
UserLevel spawn with
UserLevel spawn with
1

if userlevel[id]==1 then
if userlevel[id]==2 then
--assuming userlevel[1-32] are all declared
addhook("spawn","_spawn")
function _spawn(id)
	if userlevel[id]==1 then
		return "82,4,41,32,85"
	elseif userlevel[id]==2 then
		return "82,32"
	end
end
function sq(id,w)
parse("equip "..id.." "..w)
end
addhook("spawn","spawnlvl")
function spawnlvl(id)
	if userlevel[id]==1 then
		sq(id,82) sq(id,4) sq(id,41) sq(id,32) sq(id,85)
	elseif userlevel[id]==2 then
		sq(id,82) sq(id,32)	
	end		
end
addhook("spawn", "checklevel")
addhook("join", "givelevel")
userlevel = {}
function checklevel(id)
if userlevel[id] == 1 then
return item ids with ,
else if userlevel[id] == 2 then
return item ids with ,
-- and so on
end
end
function givelevel(id)
userlevel[id] = 1
end
1
