@Ahmed ******
Once you've made it to Cambodia (which for nationals of countries such as yours and Pakistan is a little more involved than for the rest of us) becoming a "resident" is super easy. Firstly, make sure you arrive on an E category visa. Then, extend your stay using an agent for 6 or 12 months. Done. Its as easy as that.