Can people with a heart pacemaker drink alcohol occassionally?

Yes, usually. Unless the underlying reason for the cardiac condition is not alcohol related or exacerbated, social consumption of alcohol should not be a problem. Best to discuss with one's own physician.
you bet. There is no specific contraindication for drinking alcohol in a setting of a pacemaker. While we rarely advise binge drinking (wink), modest alcohol consumption remains entirely reasonable assuming you have no other condition which precludes the use of alcohol.