Well first thing to do it be polite with the man holding the gun on you.
Be respectful (sicky sweet) and then silence is golden. don't talk too much.
but even if you talk too much odds are you will come away smelling like a rose unless you are a criminal.
If you are a criminal, I suggest you bad mouth the cop, and tell him what you did and how he can never get you on anything.