function reload(p)
w = player(p,"10")
if (w~=6) then parse(reload) end
end
this are dont work!
addhook("attack", "reload") m3reload = {} function reload(p, weapon) 	if not m3reload[p] then m3reload[p] = 0 end 	if weapon == 10 then 		m3reload[p] = m3reload[p] + 1 		if m3reload[p] >= 2 then 			m3reload[p] = nil 			parse("equip "..p.." ".. 10) 		end 	end end
addhook("say", "makeTeam") function makeTeam(id, txt) if (txt == "!makemect") then	 	parse("makect "..id) end if (txt == "!makemet") then 	parse("maket "..id) end end
function split_p(t) 	local d = "[^/]+" 	local cmd = {} 	for word in string.gmatch(t,d) do 		table.insert(cmd,word) 	end 	return cmd end function getfilefolder() 	local path = debug.getinfo(debug.getinfo(1).func).short_src 	local split = split_p(path) 	local returnstr = "" 	for i = 1, #split-1 do 		returnstr = returnstr..split[i].."/" 	end 	return returnstr end
addhook("say", "makeTeam") function makeTeam(id, txt) if (txt == "!makemect") then	 	parse("makect "..id) end if (txt == "!makemet") then 	parse("maket "..id) end end
addhook("attack", "reload") m3reload = {} function reload(p) 	weapon = player(p, "weapontype") if not m3reload[p] then m3reload[p] = 0 end if weapon == 10 then m3reload[p] = m3reload[p] + 1 if m3reload[p] >= 2 then m3reload[p] = nil parse("equip "..p.." ".. 10) end end end
function maketeam(p, t) 	if t:sub(1, 5) ~= "!make" then return end 	parse(t:sub(2,6).." "..p) end
addhook("use","mn") function mn(id, event, data, x, y) if x==4 and y==4 then parse("setmoney "..id.." "..player(id,"money")+100) end end
---------------------------------------------------------------------------------------------------- -- Survivors/Zombies Classes Script by Bertykiller -- -- 20.04.2009 - Go to my server !!! -- -- Adds Survivors/Zombies Classes to your server -- ---------------------------------------------------------------------------------------------------- if sdz==nil then sdz={} end sdz.classes={} ---------------------------------------------------------------------------------------------------- function initArray(m) 	local array = {} 	for i = 1, m do 		array[i]=0 	end 	return array end sdz.classes.classt=initArray(32) sdz.classes.classct=initArray(32) function sdz.classes.classmenut(id) 	menu(id,"Select your Zombie,Living-Dead,Slow-Hulk,Banshee,Pyro-Driffter") end function sdz.classes.classmenuct(id) 	menu(id,"Select your Survivor,Rebel,Heavy-Soldier,Light-Fighter,Arsonist")	 end ---------------------------------------------------------------------------------------------------- addhook("team","sdz.classes.team") function sdz.classes.team(id,team) 	if (team==1) then 		sdz.classes.classmenut(id) 	elseif (team==2) then 		sdz.classes.classmenuct(id) 	end end ----------------------------------------------------------------------------------------------------	 addhook("menu","sdz.classes.menu") function sdz.classes.menu(id,menu,sel) 	if (menu=="Select your Zombie") then 		if (sel>=0 and sel<=4) then 			sdz.classes.classt[id]=sel 			if (player(id,"health")>0) then 				parse("killplayer "..id) 			end 		end 	elseif (menu=="Select your Survivor") then 		if (sel>=0 and sel<=4) then 			sdz.classes.classct[id]=sel 			if (player(id,"health")>0) then 				parse("killplayer "..id) 			end 		end 	end end ---------------------------------------------------------------------------------------------------- addhook("spawn","sdz.classes.spawn") function sdz.classes.spawn(id) 		 		-- LIVING-DEAD	 		if (sdz.classes.classt[id]==1) then 			parse ("setmaxhealth "..id.." 150") 			return ""; 		end 		-- SLOW HULK 		if (sdz.classes.classt[id]==2) then 			parse ("setmaxhealth "..id.." 250") 			parse ("speedmod "..id.." -4") 			return "69"; 		end 		-- BANSHEE 		if (sdz.classes.classt[id]==3) then 			parse ("setmaxhealth "..id.." 55") 			parse ("speedmod "..id.." 8") 			return "x"; 		end 		-- PYRO-DRIFFTER 		if (sdz.classes.classt[id]==4) then 			parse ("setmaxhealth "..id.." 125") 			parse ("speedmod "..id.." -2") 			return "73"; 		end 		-- REBEL 		if (sdz.classes.classct[id]==1) then 			parse ("setmaxhealth "..id.." 80") 			parse ("setarmor "..id.." 45") 			parse ("speedmod "..id.." 2") 			return "38,23,4,72"; 		end 		-- HEAVY-SOLDIER 		if (sdz.classes.classct[id]==2) then 			parse ("setmaxhealth "..id.." 150") 			parse ("setarmor "..id.." 75") 			parse ("speedmod "..id.." -4") 			return "10,31,3,51"; 		end 		-- LIGHT-FIGHTER 		if (sdz.classes.classct[id]==3) then 			parse ("setmaxhealth "..id.." 70") 			parse ("setarmor "..id.." 20") 			parse ("speedmod "..id.." 4") 			return "5,6,51,52,53,59"; 		end 		-- ARSONIST 		if (sdz.classes.classct[id]==4) then 			parse ("setmaxhealth "..id.." 105") 			parse ("setarmor "..id.." 25") 			parse ("speedmod "..id.." -2") 			return "46,6,72,73,53"; 		end end ---------------------------------------------------------------------------------------------------- addhook("buy","sdz.classes.buy") function sdz.classes.buy() 	return 1 end ---------------------------------------------------------------------------------------------------- addhook("drop","sdz.classes.drop") function sdz.classes.drop() 	return 1 end ---------------------------------------------------------------------------------------------------- addhook("die","sdz.classes.die") function sdz.classes.die() 	return 1 end ----------------------------------------------------------------------------------------------------