The high exciton binding energy and low charge separation efficiency of pure organic semiconductors are considered to be the key problems limiting the performance and application of carbon nitride for photocatalytic hydrogen evolution. In this paper, the secondary gas-phase reaction of carbon nitride was carried out in ammonia atmosphere. The amino group was successfully introduced into the carbon nitride, which enhanced the dispersing and coordination ability of carbon nitride in the aqueous phase. Silver was loaded on the surface of the nitrogen-doped carbon nitride by sodium borohydride in situ reduction method. The Z-type heterojunction with silver as carrier transfer medium was constructed under assistance of sonication and stirring, as well as self-assembling of the product and CdZnS-X with different Cd/Zn molar ratio. When the molar ratio of Cd∶Zn∶S is 2∶8∶10 and 20 vol% triethanolamine was used as hole sacrificing agent, the hydrogen evolution efficiency of 1279.45 μmol/(h·g) (λ>420 nm) was obtained for heterojunction. This value is 4.4 times higher than that of nitrogen-doped carbon nitride and 5.8 times higher than that of sulfur zinc cadmium. The results of spectroscopy and electrochemistry show that the significant improvement in the properties of the composites is mainly due to the enhancement of the charge separation of single component, and the increased solid/liquid interface and the concentration of active sites.