I would like to ask how can i get killer's weapon?
Mean when somebody kill someone with "this weapon"
tried with player(killer, "weapon") but won't work
addhook('kill', '_killHook') function _killHook(killer, victim, weapon) 	print(weapon) end
addhook("kill", "adv_log", -9000) function adv_log(id, killer, victim, weapon, x, y) 	local state, file = pcall(io.open, advancedlog .. os.date("%Y_%m_%d", os.time()) .. "-adv.log", "a+") 	if file then 	local file = io.open(""..advancedlog.."/adv.log", "a+") 	file:write("[" .. os.date("%H:%M:%S", os.time()) .. "]: #"..player(id, "usgn")..", "..player(id, "ip")..", "..player(killer, "name").." KILLED "..player(victim, "name").." WITH "..player(killer, "weapon").." AT "..player(victim,"x").." & "..player(victim,"y").." \n") 	file:close() 	end end
item(weapon, 'name')