couldn't you do something with the client count, then loop through getting the value, if it's higher than a variable, it sets the variable to the value, then continues with the next client?
edit:
function getHighestClient()
{
for(%i = ClientGroup.getCount(); %i > 0; %i--)
{
if(/*value out of %i you wish to get the highest of*/ > %a)
%a = /*value out of %i you wish to get the highest of*/;
}
}
not sure if it would work or not, but hey, you can look over it and tell me where i'm wrong :D