We continue the study of McCoy condition to analyze zero-dividing polynomials for the constant annihilators in the ideals generated by the coefficients. In the process we introduce the concept of ideal-<TEX>${\pi}$</TEX>-McCoy rings, extending known results related to McCoy condition. It is shown that the class of ideal-<TEX>${\pi}$</TEX>-McCoy rings contains both strongly McCoy rings whose non-regular polynomials are nilpotent and 2-primal rings. We also investigate relations between the ideal-<TEX>${\pi}$</TEX>-McCoy property and other standard ring theoretic properties. Moreover we extend the class of ideal-<TEX>${\pi}$</TEX>-McCoy rings by examining various sorts of ordinary ring extensions.