Page 1 of 1

Admin/Op panel

Posted: 18 Mar 2020 13:45
by <This_is_not_a_test>
Hi i am searching any option or workaround, to disable all admin panels for admins/ops + chat shortcuts when any masteradmin is on server.

i was messing around in the plugin.panels.php and chat.admin.php without succes...

Thanks in advance.

Re: Admin/Op panel

Posted: 20 Mar 2020 10:46
by L3cKy
plugin.panels.php ... look for function load_admpanel ... it checks for ANY admin ;)

Code: Select all

// called @ onPlayerConnect
function load_admpanel($aseco, $player) {

	// check for any admin
	if ($aseco->server->getGame() == 'TMF' &&
	    $aseco->isAnyAdmin($player) && $player->panels['admin'] != '') {
		display_admpanel($aseco, $player);
	}
}  // load_admpanel

Re: Admin/Op panel

Posted: 21 Mar 2020 14:53
by <This_is_not_a_test>
thanks, i can read the php untill some point but cant write it :(( i was wishfull thinking some magicians can fix this for me ^^

i will try in the meanwhile some options tho, but thats based on my lucky charm