Designing a team-based compensation system

How will you design a team-based compensation system such that free riders (or loafers) on the team cannot take advantage of the system?