The problem with writing yourself, directly, as a character is that you come off as someone who wants to glorify themselves.
All writers put a bit of themselves in a character; their anger, greed, lust, altruism, ect. There's nothing at all wrong with this. Sometimes, actually, you need to...