I just made a simple aimbot in counter strike source. I used only c# and cheat engine. The hardest part is to finding true addresses.
1 - Find player & enemy positions(X, Y, Z Coordinates)
2 - Find player's angle address.
3 - Calculate angle between two vectors(player and enemy)
4 - Change angle value to calculated angle.
Source Code :