Komm in den Server "Hurttest" Paswort ist "12345"
Dann Zeig ichs dir....
-------------------------------------------------- -- Player Classes Script by Ipoleacs -- -- 28.02.2009 - www.UnrealSoftware.de -- -- Adds Player Classes to your server -- -------------------------------------------------- if sample==nil then sample={} end sample.classes={} sample.zclass={} ----------------------- -- 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,"Human classes,Civil,Kid,Police,") end sample.zclass.class=initArray(32) funcion sample.zclass.zclassmenu(id) menu(id,"Zombie classes,Normal Zombie,Sport Zomibe,Big Zombie,Super") end ------------------------- --TEAM SELECT -- ------------------------- addhook("team","sample.classes.team") function sample.classes.team(id,team) if (team2) then sample.classes.classmenu(id) end addhook("team","sample.zclass.team") function sample.zclass.team(id,team) if (team1) then sample.classes.zclassmenu(id) end ------------------------ --SERVERACTION -- ------------------------ addhook("serveraction","sample.classes.serveraction") function sample.classes.serveraction(id) sample.classes.classmenu(id) end addhook("serveraction","sample.zclass.serveraction") function sample.zclass.serveraction(id) sample.zclass.zclassmenu(id) end ------------------------ --CLASS SELECTION -- ------------------------ addhook("menu","sample.classes.menu") function sample.classes.menu(id,menu,sel) if (menu=="Human Classes") then if (sel>=0 and sel<=3) then sample.classes.class[id]=sel if (player(id,"health")>0) then parse("killplayer "..id) end addhook("menu","sample.zclass.menu") function sample.zclass.menu(id,menu,sel) if(menu=="Zombie classes") then if (sel>=0 and sel<=4) then sample.zclass.class[id]=sel if (player(id,"health")>0 then parse("killplayer "..id= end ----------------------- --SPAWN -- ----------------------- addhook(spawn","sample.classes.spawn") function sample.classes.spawn(id) --CIVIL if (sample.classes.class[id]<=1) then return "12,85"; end --KID if (sample.classes.class[id]==2)then parse ("setmaxhealth "..id.." 75") parse ("speedmod "..id.." 7") return "5"; end --POLICE if (sample.classes.class[id]==3) then parse ("setmaxhealth "..id.." 125") parse ("setarmor "..id.." 75") parse ("speedmod "..id.." -5") return "33,26"; end addhook(spawn","sample.zclass.spawn") function sample.zclass.spawn(id) --NORMAL ZOMBIE if (sample.zclass.class[id]<=1 then return "85"; end --SPORT ZOMBIE if (sample.zclass.spawn(id) function sample.zclass.class[id]==2 then parse ("setmaxhealth "..id.." 75") parse ("speedmod "..id.." 10") end --BIG ZOMBIE if (sample.zclass.spawn(id) function sample.zclass.class[id]==3 then parse ("setmaxhealth "..id.." 250") parse ("speedmod "..id.." -15") return "85"; end --Super if (sample.zclass.spawn(id) function sample.zclass.class[id]==4 then parse ("setmaxhealth "..id.." 150") parse ("speedmod "..id.." -20") return "49,85"; end
addhook("team","sample.classes.team") function sample.classes.team(id,team) if (team [b]== 2 [/b]) then sample.classes.classmenu(id) end addhook("team","sample.zclass.team") function sample.zclass.team(id,team) if (team[b] == 1[/b]) then sample.classes.zclassmenu(id) end
return 1
return 0
parse("equip "..id.." 49") parse("equip "..id.." 85")
addhook("menu","sample.zclass.menu") function sample.zclass.menu(id,menu,sel) 	if (menu=="Zombie classes") then 		if (sel>=0 and sel<=4) then 			sample.zclass.class[id]=sel 			if (player(id,"health")>0) then 				parse("killplayer "..id) 			end 		end 	end end