You were told by someone who was dressed in plain clothes and did not identify themselves as an officer to do something, and you did it? At that point, if I would have suspected it was a cop and I was being cited for something, I would have run as soon as he left. You could always claim you didn't know it was a cop and you assumed you were being kidnapped.
This story sounds strange and either you're leaving out an important piece of it or you were really stupid.