Explanation
The correct indirect speech conversion is:
"He told me that he had often told me not to play with fire."
This conversion accurately changes the present perfect ("have often told") to the past perfect ("had often told") in reported speech.