So basically, in my gamemode, I have custom sweps which are ranged. It always registers as “mdm_glock18” has killed the player, rather than saying the player has killed them. How can I check who the weapon belongs to?
function KillPlayer( victim, killer, weapon ) if ( killer == weapon ) then -- What goes in here? end end hook.Add( "PlayerDeath", "OnPlayerDeath", KillPlayer )