Looping through the server and finding players in your minigame:
for(%i=0;%i<ClientGroup.getCount();%i++)
{
%targetclient = ClientGroup.getObject(%i);
if(isObject(%targetclient.minigame) && %targetclient.minigame == %client.minigame)
{
//do stuff to %targetclient
}
}
However if you simply wish to loop through everyone in the minigame this will be faster:
if(isObject(%client.minigame))
{
for(%i=0;%i<%client.minigame.numMembers;%i++)
{
%targetclient = %client.minigame.member[%i];
//do stuff to %targetclient
}
}