Admin/Op panel

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
<This_is_not_a_test>
wheelbarrow operator
wheelbarrow operator
Posts: 18
Joined: 07 Feb 2015 10:06
Owned TM-games: tmu

Admin/Op panel

Post by <This_is_not_a_test> » 18 Mar 2020 13:45

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.
ввםCħєggιє

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 222
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: Admin/Op panel

Post by L3cKy » 20 Mar 2020 10:46

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

<This_is_not_a_test>
wheelbarrow operator
wheelbarrow operator
Posts: 18
Joined: 07 Feb 2015 10:06
Owned TM-games: tmu

Re: Admin/Op panel

Post by <This_is_not_a_test> » 21 Mar 2020 14:53

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
ввםCħєggιє

Post Reply