Could you make one lua script for me, plz?
details here:
Scripts
Knife fight script, can someone help?
Knife fight script, can someone help?
1

all players have weapons normally
when is only 1 ct (all other ct are dead) and only 1 t (all other t are dead)
they will have knifes only
they will fight (knifes only)
when one of them kill other start next round and goto first point (all players...) addhook("die","func")
addhook("select","noweapchange")
addhook("endround","weapchange")
function func()
	if #player(0,"team1living")==1 and #player(0,"team2living")==1 then
		parse("setweapon "..player(0,"team1living")[1].." 50")
		parse("setweapon "..player(0,"team2living")[1].." 50")
		knifes=true
	end
end
function noweapchange(id,type)
	if knifes==true and type~=50 then parse("setweapon "..id.." 50") end
end
function weapchange()
	knifes=false
end
= FTW!
1
