%count=0;
for(%i=0; %i<clientGroup.getCount(); %i++)
{
if(isObject(clientGroup.getObject(%i).player)
%count++;
}
messageAll('',%count SPC "players alive!");
EDIT:
Can't indent on the forums so I took it to notepad++ and fixed it.
And I thought he wanted the dead, why I added the !, my bad :P
That should work now