Once someone gets the other team's flag, it follows the waypoints for the other team. There are always two sets of waypoints, one for bravo and the other for alpha.
As for your waypointing problem, I suggest you look at maps with proper waypoints so you can see what you are doing wrong.