Coating by spraying the coating material in the molten state, e.g. by flame, plasma or electric discharge