As far as I know this is present already when making a map, go to Gameplay Constants and find Hero XP Global Distribution then set it to True so you will gain EXP through other player kills on enemies and false to disable the distribution.
I do think this is what you need? By the way, your title seems to be confusing or somehow misleading due to how different your question on the title and at the main content.