To score a Pamtre Berry in Pokémon Emerald, go talk to the Berry Master's wife. She'll ask whether you've heard any sayings lately.
When she offers you a Pamtre Berry, answer with the phrase CHALLENGE CONTEST, and the berry is yours.