i want Zombie classes script Only zombie i dont want for survivors too... if you can help me please help me
edited 1×, last 16.04.21 11:36:58 pm
-------------------------------------------------- -- Player Classes Script by Unreal Software -- -- 28.02.2009 - www.UnrealSoftware.de -- -- Adds Player Classes to your server -- -------------------------------------------------- if sample==nil then sample={} end sample.classes={} ----------------------- -- INITIAL SETUP -- ----------------------- 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.classmenu(id) 	menu(id,"Select your Class,Normal Zombie,Chainsaw Zombie,Gas Zombie,Mad Zombie,Police Zombie,Trapper Zombie,(Death Bringer)")	 end ----------------------- -- TEAM -> CLASS -- ----------------------- addhook("team","sample.classes.team") function sample.classes.team(id,team) 	if (team>0) then 		sample.classes.classmenu(id) 	end end ----------------------- -- SERVERACTION -- ----------------------- addhook("serveraction","sample.classes.serveraction") function sample.classes.serveraction(id) 	sample.classes.classmenu(id) end ----------------------- -- CLASS SELECTION -- ----------------------- addhook("menu","sample.classes.menu") function sample.classes.menu(id,menu,sel) 	if (menu=="Select your Class") then 		if (sel>=0 and sel<=6) then 			sample.classes.class[id]=sel 			if (player(id,"health")>0) then 				parse("killplayer "..id) 			end 		end 	end end ----------------------- -- SPAWN -- ----------------------- addhook("spawn","sample.classes.spawn") function sample.classes.spawn(id) 	-- Normal Zombie 	if (sample.classes.class[id]<=1) then 		parse ("setmaxhealth "..id.." 100") 		parse ("setarmor "..id.." 0") 		return "86"; 	end 	-- Chainsaw Zombie 	if (sample.classes.class[id]==2) then 		parse ("setmaxhealth "..id.." 125") 		parse ("setarmor "..id.." 0") 		parse ("speedmod "..id.." 10") 		return "85"; 	end 	-- Gas Zombie 	if (sample.classes.class[id]==3) then 		parse ("setmaxhealth "..id.." 100") 		parse ("setarmor "..id.." 0") 		return "72,60"; 	end 	-- Mad Zombie 	if (sample.classes.class[id]==4) then 		parse ("setmaxhealth "..id.." 150") 		parse ("setarmor "..id.." 75") 	 parse ("speedmod "..id.." 25") 		return "86"; 	end 	-- Police Zombie 	if (sample.classes.class[id]==5) then 		parse ("setmaxhealth "..id.." 75") 		parse ("setarmor "..id.." 0") 		return "1,79"; 	end 	-- Trapper Zombie 	if (sample.classes.class[id]==6) then 		parse ("setmaxhealth "..id.." 50") 		parse ("setarmor "..id.." 25") 	 parse ("speedmod "..id.." 10") 		return "77,87,54"; 	end end