Besides getting pummeled countless times by the villains and having some friends of his save his life, risking theirs on his behalf. What else can he do to win this war?
He didn't contribute much, He just saved the lifes of every shinobi on the battlefiend so many times now, he gave them chakra which should be the Job of a medic *cough* and he was the only one at the level to fight Madara and Obito.
He can use his kekkei genkai of turning people to his side and making them like him and follow him. He has used it during the war, manga phax. Having his friends save his life is part of this power.