Ok Geventh i modified my basiccomands.php like you showed (a backed up original one, not the one we modified earlier, right?).
Looks like this:
PHP
[code=php]public function online($guid, $parameters) {
$admins = $this->mod->getAdmins();
$online = array();
$results = explode("," , $this->mod->getCV("main", "onlineshowngroups"));
$onlineshowngroups = array();
foreach($results as $result) {
$onlineshowngroups[] = trim($result);
}
$playergroup = $this->players[$adminguid]->getGroup();
foreach ($admins as $adminguid => $admin) {
if (array_key_exists($adminguid, $this->players) && in_array($playergroup, $onlineshowngroups)) {
$online[] = array(
"nick" => $this->players[$adminguid]->getName(),
"group" => $playergroup
);
}
}
$str = $this->mod->getLngString("onlineadmins") . " ";
if (count($online) > 0) {
foreach ($online as $admin) {
$str .= "^2" . $admin["nick"] . " ^1(" . $this->mod->getLongGroupName($admin["group"]) . ")^7, ";
}
$str = substr($str, 0, -4);
}
else {
$str .= $this->mod->getLngString("onlineAdminsNone");
}
$this->players[$guid]->say($str);
}
Alles anzeigen
[/code]
I added this to my config.cfg where you instructed:
Seems to not work though, !online just shows everyone in my admins.cfg regardless of the "onlineshowngroups" line in my config.cfg
Can I see the features list for 0.12? curious to see whats new (hoping a reserved slots solution is included).