Before you begin a refinishing project, learn how to remove stain from wood. Even new DIYers can do this easy home ...
Then reset any protruding nail heads, or remove them and secure the boards with deck screws ... let the wood dry completely and mask off any surface you want to protect from the paint.