Metallic nitride have excellent electronic and mechanical properties, but often exist in various crystal structures simultaneously. Here, after doping Ti/C atoms in ZrN, different stoichiometry and structures of metal-carbon nitride were studied by first principle calculations. Base on the results, electrons in d-orbital take the lead in their conductivities. With increasing Ti/C-doped atoms, densities of states at fermi level raised, while Ti atoms could enhance better their electron transport properties. All of the structures remain high mechanical properties because of similar electronic configurations of Ti and Zr or C and N atoms, indicating their various applications.