How to earn points based on the view for the user of links created by other users?

User x can register link and user y can The will show links in Own site and earn points. if user x has a link and showing 100 times it 100 points will be reduced from the user x and 100 points will be added to user y And if you click on the user’s link in this 100 times 10 times, then 20 points of user x will be reduced and 20 points will be added to user 2. If the site or advisory opinion that can help you do it