Distance hack is something else then wallhack. Distance hack is made with addresses/structures/classes..
In my view, thats far more complicated then a wallhack.
Wallhack sources are all over the web. Find a empty d3d9 base, paste in a wallhack code.. And find a way around punkbuster or play on non-pb servers..
Just learn some c++...