How to get position of all players?

Try using FConstPlayerControllerIteratorFConstPlayerIterator to cycle through all player controlled players and get the location of their ControlledPawn(), if any.