aber auch danke ipoleacs für die antwort war das mit den hooks am suchen habs gefunden aber nicht verstanden xd naja jedenfalls klappt es jetzt danke für die antworten
Scripts
Sammelthread/FAQ zu Lua & Editor
aber auch danke ipoleacs für die antwort war das mit den hooks am suchen habs gefunden aber nicht verstanden xd addhook("kill","pb_kill")
function pb_kill(killer,victim,weapon)
	if (os.clock()-pb_timer[killer])>30 then
		pb_level[killer]=0;
	end
	level=pb_level[killer]
	level=level+1
	pb_level[killer]=level
	pb_timer[killer]=os.clock()
	if (pb_fblood==0) then
		pb_fblood=1
		parse("sv_sound \"public/firstblood.wav\"");
		msg ("©255255255"..player(killer,"name").." sheds FIRST BLOOD by killing "..player(victim,"name").."!@C")
	end
	if (weapon==51) then
		parse("sv_sound \"public/nade.wav\"");
		msg ("©255255255"..player(killer,"name").." NADE "..player(victim,"name").."!@C")
	end
	if (weapon==50) then
		parse("sv_sound \"public/knife.wav\"");
		msg ("©255255255"..player(killer,"name").." HUMILIATED "..player(victim,"name").."!@C")
	else
		if (level==1) then
		elseif (level==2) then
			parse("sv_sound \"public/doublekill.wav\"");
			msg ("©255255255"..player(killer,"name").." made a Doublekill!@C")
		elseif (level==3) then
			parse("sv_sound \"public/triplekill.wav\"")
			msg ("©255255255"..player(killer,"name").." made a Triplekill!@C")
		elseif (level==4) then
			parse("sv_sound \"public/multikill.wav\"")
			msg ("©255255255"..player(killer,"name").." made an MULTIKILL!@C")
		elseif (level==5) then
			parse("sv_sound \"public/ultrakill.wav\"")
			msg ("©255255255"..player(killer,"name").." made a ULTRAKILL!@C")
		elseif (level==6) then
			parse("sv_sound \"public/monsterkill.wav\"")
			msg ("©255255255"..player(killer,"name").." made a MO-O-O-O-ONSTERKILL-ILL-ILL!@C")
		elseif (level==7) then
		parse("sv_sound \"utsfx/godlike.wav\"")
			msg ("©175174173"..player(killer,"name").." is GODLIKE!@C")
		
		else
			parse("sv_sound \"public/unstoppable.wav\"")
			msg ("©255255255"..player(killer,"name").." made a UNSTOPPABLE! "..level.." KILLS!@C")
		end
	end
end
addhook("kill","pb_kill")
function pb_kill(killer,victim,weapon)
if (os.clock()-pb_timer[killer])>30 then
pb_level[killer]=0;
end
level=pb_level[killer]
level=level+1
pb_level[killer]=level
pb_level[victim]=0
pb_timer[killer]=os.clock()
if (pb_fblood==0) then
pb_fblood=1
parse("sv_sound \"public/firstblood.wav\"");
msg ("©255255255"..player(killer,"name").." sheds FIRST BLOOD by killing "..player(victim,"name").."!@C")
end
if (weapon==51) then
parse("sv_sound \"public/nade.wav\"");
msg ("©255255255"..player(killer,"name").." NADE "..player(victim,"name").."!@C")
end
if (weapon==50) then
parse("sv_sound \"public/knife.wav\"");
msg ("©255255255"..player(killer,"name").." HUMILIATED "..player(victim,"name").."!@C")
else
if (level==1) then
elseif (level==2) then
parse("sv_sound \"public/doublekill.wav\"");
msg ("©255255255"..player(killer,"name").." made a Doublekill!@C")
elseif (level==3) then
parse("sv_sound \"public/triplekill.wav\"")
msg ("©255255255"..player(killer,"name").." made a Triplekill!@C")
elseif (level==4) then
parse("sv_sound \"public/multikill.wav\"")
msg ("©255255255"..player(killer,"name").." made an MULTIKILL!@C")
elseif (level==5) then
parse("sv_sound \"public/ultrakill.wav\"")
msg ("©255255255"..player(killer,"name").." made a ULTRAKILL!@C")
elseif (level==6) then
parse("sv_sound \"public/monsterkill.wav\"")
msg ("©255255255"..player(killer,"name").." made a MO-O-O-O-ONSTERKILL-ILL-ILL!@C")
elseif (level==7) then
parse("sv_sound \"utsfx/godlike.wav\"")
msg ("©175174173"..player(killer,"name").." is GODLIKE!@C")
else
parse("sv_sound \"public/unstoppable.wav\"")
msg ("©255255255"..player(killer,"name").." made a UNSTOPPABLE! "..level.." KILLS!@C")
end
end
end