This is stupid, especially this time. Wait for the two people to leave, and then stand up. Cots don't have bedposts, silly. I suppose you might want to steal the copy of Super Mario Galaxy that one of the people are holding as a weapon, though it may not be worth it. If necessary and they see you, shoot the guy w/ the gun, and hit the other one with the loose bedpost locked onto your ankle.
At best, don't make the answer so obvious, though. How do you know the gun only has one bullet, though? I think the logic program you're using to create these is heavily faulty. This is my opinion, which, in this case, is always right.