PHP Code:
stock GetDominationCount(client)
{
new count, offset = FindSendPropInfo("CTFPlayer", "m_bPlayerDominated");
for (new i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i) && GetEntData(client, offset+i) == 1)
{
count++;
}
}
return count;
}
Something like that should work.