San Francisco police said they arrested four men and seized more than 30 machines, cash and suspected narcotics in connection with illegal gambling operations in the Tenderloin and Mission District.