1. Dative, plural.
The reason why there is dative here is tricky. And, maybe, I get it all wrong, so correct me.
When we have a phrase with a subject, we use nominative сам / сама / само / сами to express the ‘-self’ idea:

Он делает деньги сам. ‘He makes money himself’
Она делает деньги сама. ‘She makes money herself’
Они делают деньги сами. ‘They make money themselves’

Even if the verb is in the infinitive form:

Он хочет делать деньги сам. ‘He wants to make money himself’
Она хочет делать деньги сама. ‘She wants to make money herself’
Они хотят делать деньги сами. ‘They want to make money themselves’

But if the phrase is impersonal, the actant in it goes dative, so does the pronoun сам:

Ему нужно делать деньги самому. ‘He needs to make money himself’
Ей нужно делать деньги самой. ‘She needs to make money herself’
Им нужно делать деньги самим. ‘They need to make money themselves’

Here, we have an impersonal phrase:
самим делать деньги — нехорошо.
It lacks the actual actant, but if it were there, it would be in dative:
e.g. людям делать деньги самим — нехорошо.