I've written a program which will allow a set number of coins to be given to a player to start any game with. A timer adds new coins after a specified interval as a reward for continued play.
Download:
http://www.chinagreenelvis.com/programs/mameccAHK Forum Topic:
https://autohotkey.com/boards/viewtopic.php?f=19&t=26298Controls:
Joy10 (Right thumbstick click on up to four controllers): Add coins
F1: Permanently disable/re-enable the limiter
Defaults:
Interval: 5 minutes (300000 ticks) (one additional coin each interval)
Starting coins: 4
Instructions:
Mame must be compiled to force Direct Input. Start the program when MAME.exe starts; to exit the program via CMD, run
MAME Coin Control.exe qSettings are included in the INI file. The AHK source can be edited and recompiled in order to change which input you prefer for each player. (Just change "1Joy10" to your preferred input for player one, for example.)
Timers for additional coins are individualized except for games which share credits between players. Coins can only be added manually once for each player before the individual timers begin, so if you press the input before the game allows credits to be given, you will need to restart the game or use the F1 key to disable and re-enable the program.