Conditions: Dying Unit is equal to "the unit you want to give 25 gold, but if you want all units to give gold, don't use this condition" Dying unit is in Units Owned by Player 1 (or whatever player you are) equal to false
Actions: Add property: Add 25 to (Owner of Killing Unit))Current Gold Game/Text message to player: Display to owner of Killing Unit at offset (0.00, 0.00, whatever) for 10 seconds (for example) the text: Your earned 25 gold for killing "name of your unit".
I hope this helps you. Sorry if it wasn't this what you meant.
The conditions are almost useless, but the second one is to prevent abusing, for example, if you are making a map where you spawn and kill units, players could abuse by just killing their own units, which would be lame. P.S I'm glad I helped.