Teams receive full fantasy credit for all stats accumulated at a position on the day the innings pitched or games played maximum is reached at that position.
So, if your league features three outfield positions and a games-played limit of 486 OF games, a team could exceed that number if they started a day with 485 games used and played three outfielders the day the limit was reached.
Similarly, if a team enters play one inning under the IP cap and accumulates 22 innings pitched, all 22 innings will count in fantasy scoring.
Beginning the following day in both cases, no additional fantasy stats would be earned at those positions.