Here you go. Just change the WinGold or LoseGold value to whatever amount of gold you want to give. It's only basic, can be updated to include CVARs, and it might also allocate the 'lose gold' amount to specators (untested) but that can all be fixed / updated fairly easily.
#pragma semicolon 1
#include <sdktools>
#include <sourcemod>
#include "W3SIncs/War3Source_Interface"
public Plugin:myinfo =
{
name = "Give Gold on Round End",
author = "ABGar",
description = "Gold given to players based on Team Win or Team Lose",
version = "1.0"
};
new WinGold=4;
new LoseGold=2;
public OnPluginStart()
{
HookEvent("round_end", OnRoundEnd);
}
public Action:OnRoundEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
new WinningTeam = GetEventInt(event, "winner");
for(new i=1;i<=MaxClients;i++)
{
if(ValidPlayer(i))
{
if(GetClientTeam(i)==WinningTeam)
{
PrintToChat(i,"You have received %i gold for winning the round",WinGold);
War3_AddCurrency(i, WinGold);
}
else
{
PrintToChat(i,"You have received %i gold for losing the round",LoseGold);
War3_AddCurrency(i, LoseGold);
}
}
}
}