The easiest way is to "count" the round wins with code similar to this:
PHP Code:
#define ALLIES 2
#define AXIS 3
new iAllyScore = 0, iAxisScore = 0
public OnPluginStart()
{
HookEventEx("dod_round_win", OnRoundWin, EventHookMode_Post)
}
public OnMapStart()
{
iAllyScore = 0
iAxisScore = 0
}
public OnMapEnd()
{
SaveScores(iAxisScore, iAllyScore, iAxisTickpoints, iAllyTickpoints)
}
public Action:OnRoundWin(Handle:event, const String:name[], bool:dontBroadcast)
{
new Winner = GetEventInt(event, "team")
if(Winner == ALLIES)
{
iAllyScore++
}
else if(Winner == AXIS)
{
iAxisScore++
}
return Plugin_Continue
}
Let me know if you're having problems