Im actually surprised I was able to figure this out w/o bugging people like mikejs or antithasys.
Someone asked that I have a domination difference auto-scramble check for my thing, so this is what I came up with. I didn't find any threads about it, so I figured i'd post it.
PHP Code:
stock TF2_GetPlayerDominations(client)
{
new dominations;
new offset = FindSendPropInfo("CTFPlayerResource", "m_iActiveDominations");
new ent = FindEntityByClassname(-1, "tf_player_manager");
if (ent != -1)
dominations = GetEntData(ent, (offset + client*4), 4);
return dominations;
}
stock TF2_GetTeamDominations(team)
{
new dominations;
for (new i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i) && GetClientTeam(i) == team)
dominations += TF2_GetPlayerDominations(i);
}
return dominations;
}
__________________