The relationships you develop with the members of your team are built on trust. You build trust by being a person of integrity. You show your team you are a person of integrity by acting consistently in all situations. Regardless of the situation you are in, your team sees whether you are bound by your moral principles or if you allow the situation to dictate your reactions. Situational morality does not build trust with the members of your team.
Strive to be consistent with your principles and predictable with your actions. This is the only way to become a great leader. With it, your team will learn to trust you. From this, your team will grant you greater and greater permission to lead them. Your team will lean on you when times are difficult. And when times are good, your team will work hard for you.