Could you make one lua script for me, plz?
details here:
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