i tried to use weapon("mode") but its not working...help me pls
i need
addhook("hit","xhit")
function xhit(id,src,wep)
if weapon("mode")==2 then
xxxx
xxx
xx
x
Scripts
how to check "mode" in hit hook
how to check "mode" in hit hook
1

.addhook("always","attackreset")
function attackreset()
for _,id in ipairs(player(0,"tableliving")) do
atk=0 -- Reset: May you have change to ms100...
end
end
addhook("attack2","lol")
function lol(id,mode)
if player(id,"weapontype")==50 then -- Knife
atk=1
end
end
addhook("hit","lol2")
function lol2(id,src,w)
if atk==1 then
-- HERE IS YOUR CODE IF ATTACK2 WITH KNIFE
end
end
-- 100% wrong / Untestet
addhook("hit", "CheckSecondaryKnifeHit")
function CheckSecondaryKnifeHit(id, source, weapon, hpdmg)
	if weapon == 50 and hpdmg == 90 then	-- secondary knife does 90 damage without any armor
		print("Secondary knife hit!")
	end
end
.
1
