Rudy Gay had 27 points, Carl Landry made the game-winning basket with just under a second to play and the Sacramento Kings beat the Indiana Pacers 102-101 in overtime Friday night to stop a four-game losing streak.

Landry rebounded a missed shot by Gay, made a quick fake and converted underneath with 0.8 seconds left.

The Kings led by as many as 17 points, but were outscored 24-16 in the fourth quarter and didn't have a basket over the final 4:12. They outscored the Pacers 6-5 in overtime.

Darren Collison scored 20 points for the Kings and Landry finished with 14. Ben McLemore had 12 points and Jason Thompson had nine points and 10 rebounds.

David West scored 16 for Indiana, which has lost four straight and five of six. Rodney Stuckey and CJ Watson both had 14 points, while Luis Scola and Damjan Rudez each had 11.