There aren't source codes all over the place and nobody will give you theirs. You need to understand hacking and not just copy source codes.
For aimbot :
You need the structures for the other players in order to get their X/Y/Z. Then use World to Screen, which I saw somewhere for CA just google it.