West Ham United boss Sam Allardyce has told Joe Cole that he must accept being substituted if it is for the good of the team.