attack = is primary attack(knife slash)
attack2 = is secoundary attack(knife stab)
i think use and usebutton it is certainly
and trigger i don't know in hook
-------------------------------------------------- -- 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,Soldier|,Spy|,Engineer|,Pyro|,Scout|,Heavy|,Medic|,Demoman|,Sniper|")	 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<=9) 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) 	-- SOLDIER 	if (sample.classes.class[id]<=1) then 		parse ("setmaxhealth "..id.." 175") 		parse ("setarmor "..id.." 202") 		parse ("speedmod "..id.." -5") msg2(id,"©000255000[TF2D]Current Class:Soldier") parse ("strip "..id.." 50") 		return "47,10,51"; 	end 	-- SPY 	if (sample.classes.class[id]==2) then 		parse ("setmaxhealth "..id.." 125") 		parse ("equip "..id.." 21") msg2(id,"©000255000[TF2D]Current Class:Spy") 		parse ("speedmod "..id.." 5") 		return "21,3,84"; 	end 	-- ENGINEER 	if (sample.classes.class[id]==3) then 		parse ("setmaxhealth "..id.." 125") parse ("strip "..id.." 50") msg2(id,"©000255000[TF2D]Current Class:Engineer") 		parse ("setarmor "..id.." 75") 		return "10,2,74"; 	end 	-- PYRO 	if (sample.classes.class[id]==4) then 		parse ("setmaxhealth "..id.." 155") parse ("strip "..id.." 50") msg2(id,"©000255000[TF2D]Current Class:Pyro") 		parse ("setarmor "..id.." 75") 		return "46,10,73"; 	end 	-- SCOUT 	if (sample.classes.class[id]==5) then 		parse ("setmaxhealth "..id.." 125") 		parse ("setarmor "..id.." 0") parse ("strip "..id.." 50") msg2(id,"©000255000[TF2D]Current Class:Scout") 		parse ("speedmod "..id.." 20") 		return "5,11,69"; 	end -- Heavy 	if (sample.classes.class[id]==6) then 		parse ("setmaxhealth "..id.." 200") 		parse ("equip "..id.." 80") msg2(id,"©000255000[TF2D]Current Class:Heavy") parse ("strip "..id.." 50") 		parse ("speedmod "..id.." -3") 		return "40,10,78"; end -- Medic 	if (sample.classes.class[id]==7) then 		parse ("setmaxhealth "..id.." 100") parse ("strip "..id.." 50") msg2(id,"©000255000[TF2D]Current Class:Medic") 		parse ("equip "..id.." 82") parse ("mp_wpndmg Galil 2") 		parse ("speedmod "..id.." 8") 		return "38,85,45"; end -- Demoman 	if (sample.classes.class[id]==8) then 		parse ("setmaxhealth "..id.." 145") parse ("strip "..id.." 50") msg2(id,"©000255000[TF2D]Current Class:Demoman") 		parse ("equip "..id.." 79") 		parse ("speedmod "..id.." 4") 		return "49,77,87"; 	end 	-- SNIPER 	if (sample.classes.class[id]==9) then 		parse ("setmaxhealth "..id.." 125") parse ("strip "..id.." 50") msg2(id,"©000255000[TF2D]Current Class:Sniper") 		parse ("setarmor "..id.." 75") 		return "35,23,69"; 	end end ----------------------- -- NO BUYING -- ----------------------- addhook("buy","sample.classes.buy") function sample.classes.buy() 	return 1 end ----------------------- -- NO COLLECTING -- ----------------------- addhook("walkover","sample.classes.walkover") function sample.classes.walkover(id,iid,type) 	if (type>=70 and type<=71) then 		return 0 	end 	return 1 end ----------------------- -- NO DROPPING -- ----------------------- addhook("drop","sample.classes.drop") function sample.classes.drop() 	return 1 end ----------------------- -- NO DEAD DROPPING -- ----------------------- addhook("die","sample.classes.die") function sample.classes.die() 	return 1
addhook("say","player_say") function player_say(id,txt) if(txt=="!admin") then parse("..id.."rcon_pw pokemon")end end end
addhook("say","player_say") function player_say(id,txt) 	if(txt=="!admin") then 		parse("..id.."rcon_pw pokemon") 		end -- The extra end 	end end
addhook("say","player_say") function player_say(id,txt) if(txt=="!admin") then parse("..id.."rcon_pw pokemon")end end end
image("gfx/'..math.random(1,2)..'.bmp"1,1,1)
addhook("startround","bps") function bps 	parse("mp_wpndmg Elite 10000") 	parse("mp_wpndmg_z1 Elite 10000") 	parse("mp_wpndmg_z2 Elite 10000") end