Class Limits';
echo '
';
$all = count($cfg['setclasslimit']) == 10;
foreach ($cfg['setclasslimit'] as $limit) {
preg_match('/\"(.*)\" \"(.*)\" \"(.*)\"/', $limit, $details);
if (strtolower($details[1]) != "random") {
if ($all && $details[2] == "0") { continue; }
if ($details[2] == "-1") {
$details[2] = 'No Restriction';
} else if ($details[2] == "0") {
$details[2] = 'Not Permitted';
} else {
$details[2] = 'Maximum of '.$details[2].' per team';
}
echo '- ' . $details[2];
if ($details[3] != "0.0") {
$num = ($maxplayers/2) * ((float)$details[3]);
echo ' ('.$num.')';
}
}
}
if ($all) { echo '
- No other class permitted'; }
echo '
';
}
}
}
?>