What is player state index?

How can I get the player state index of a player?