Hi,
He rents a flat to me.
Can I also say: He rents me a flat. Yes.
How about this one: I need to buy myself a ticket.
Would it be incorrect if I said: I need to buy me a ticket.Yes, incorrect, because you are 'performing the action on yourself', ie reflexively.
(isn't it a very informal/slang expression "buy me"?) It's heard more in certain regions, I think. It's considered substandard.
Best wishes, Clive