#
mh du musst dir irgendwo die items speichern die erwiederbei spawn'en erhalten soll...
parse ("setmoney "..id.." "..(player(id) - 50))
addhook ("use","usen") function usen(id,event,data,x,y) if (x==12 and y==13) then parse ("equip "..id.." 40") end end
-------------------------------------------------- -- 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,Tank|Armor+150hp,Assasin|Stealth,WeaponGuy|help with Weapon,Healer|MedicArmor+Claw,Scout|Fast,Super Player|very fast")	 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<=5) 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) 	-- Tank 	if (sample.classes.class[id]<=1) then 		parse ("setmaxhealth "..id.." 150") 		parse ("setarmor "..id.." 202") 		parse ("speedmod "..id.." -5") 		return "4"; 	end 	-- Assasin 	if (sample.classes.class[id]==2) then 		parse ("setmaxhealth "..id.." 100") 		parse ("setarmor "..id.." 206") 		parse ("speedmod "..id.." 5") 		return "3"; 	end 	-- Weapon guy 	if (sample.classes.class[id]==3) then 		parse ("setmaxhealth "..id.." 100") 		msg2(id,"©255255255Help your team with weapons!@C") 		parse ("setarmor "..id.." 201") 		return "46,48,49,56,69,73,75,77,85,5"; 	end 	-- Healer 	if (sample.classes.class[id]==4) then 		parse ("setmaxhealth "..id.." 200") 		msg2(id,"©255255255Use Claw to heals you teammate health!@C") 	parse ("speedmod "..id.." -1") 		parse ("setarmor "..id.." 204") 		return "6,78"; 	end 	-- Scout 	if (sample.classes.class[id]==5) then 		parse ("setmaxhealth "..id.." 75") 		parse ("setarmor "..id.." 201") 		parse ("speedmod "..id.." 15") 		return "2"; -- Super 	if (sample.classes.class[id]==5) then 		parse ("setmaxhealth "..id.."500") 		parse ("setarmor "..id.." 500") 		parse ("speedmod "..id.." 50") 		return "2"; 	end end ----------------------- -- NO DEAD DROPPING -- ----------------------- addhook("die","sample.classes.die") function sample.classes.die() 	return 1 end ----------------------- -- Medic Heal -- ----------------------- addhook("hit","Claw_heal") function Claw_heal(id,source,weapon,hpdmg,apdmg) if(weapon == 78) then parse ("sethealth "..id.." "..player(id,"health")+15) return 1 end end
addhook ("use","usen") function usen(id,event,data,x,y) if (x== 1 and y == 1 and player(id,"money")>3999) then parse ("setmoney "..id.." "..(player(id,"money")-4000)) if (x== 2 and y == 2 and player(id,"money")>3999) then parse ("setmoney "..id.." "..(player(id,"money")-4000)) end end end
addhook ("use","usen") function usen(id,event,data,x,y) if (x== 1 and y == 1 and player(id,"money")>3999) then parse ("setmoney "..id.." "..(player(id,"money")-4000))[b]end[/b] if [b]([/b]x== 2 and y == 2 and player(id,"money")>3999) then parse ("setmoney "..id.." "..(player(id,"money")-4000)) end end