  We investigate the efficiency of galactic mass loss, triggered by
ram-pressure stripping and galactic winds of cluster galaxies, on the chemical
enrichment of the intra-cluster medium (ICM). We combine N-body and
hydrodynamic simulations with a semi-numerical galaxy formation model. By
including simultaneously different enrichment processes, namely ram-pressure
stripping and galactic winds, in galaxy-cluster simulations, we are able to
reproduce the observed metal distribution in the ICM. We find that the mass
loss by galactic winds in the redshift regime z>2 is ~10% to 20% of the total
galactic wind mass loss, whereas the mass loss by ram-pressure stripping in the
same epoch is up to 5% of the total ram-pressure stripping mass loss over the
whole simulation time. In the cluster formation epochs z<2 ram-pressure
stripping becomes more dominant than galactic winds. We discuss the
non-correlation between the evolution of the mean metallicity of galaxy
clusters and the galactic mass losses. For comparison with observations we
present two dimensional maps of the ICM quantities and radial metallicity
profiles. The shape of the observed profiles is well reproduced by the
simulations in the case of merging systems. In the case of cool-core clusters
the slope of the observed profiles are reproduced by the simulation at radii
below ~300 kpc, whereas at larger radii the observed profiles are shallower. We
confirm the inhomogeneous metal distribution in the ICM found in observations.
To study the robustness of our results, we investigate two different
descriptions for the enrichment process interaction.
