See What killer killed them with

Okay this is from an achivement addon, aand everythings all good, I just need a way to detect what they are killed by.
This is the code for a achivement to be counted

I want to check what they are killed by, and if killed by X it adds to the achivement.


if SERVER then
	hook.Add("PlayerDeath","ACV " .. "PlayerDeath" .. ACVMT.LuaName,function( victim, infl, attacker)
		if victim:IsPlayer() and attacker:IsPlayer() then
			if attacker:GetRole() == ROLE_TRAITOR then
				attacker.ACV_ChickenKillCount = attacker.ACV_ChickenKillCount or 0
				attacker.ACV_ChickenKillCount = attacker.ACV_ChickenKillCount + 1
				if attacker.ACV_InnoKillCount == 3 then
					attacker:ACV_Increase(ACVMT.LuaName,1)
				end
			end
		end
	end)



hook.Add("PlayerDeath","ACV " .. "PlayerDeath" .. ACVMT.LuaName,function( victim, infl, attacker)


in your code above,
infl tells you what inflicted the damage, so what weapon or world etc etc

Alright, so


 if attacker:GetRole() == ROLE_TRAITOR and inlf == "NAME" then

Should work?