Severe floods caused by monsoon rains killed more than 30 people and displaced tens of thousands in Malaysia and southern Thailand, officials said Tuesday, with both countries preparing shelters and evacuation plans in anticipation of more heavy rain.