When you activate the code, go out and hide behind the tree till the guard comes, when he turns back, you have to find some way of getting past both of them without getting caught, I think run past him when is turning round.
After that I don't know, I hate it when game developers do that. >.