AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   TOGs Admin Menu Reload (https://forums.alliedmods.net/showthread.php?t=240547)

ThatOneGuy 05-17-2014 16:43

TOGs Admin Menu Reload
 
2 Attachment(s)
Description
This plugin is one that I made when one of my plugins was glitching the admin menu (it would move everything one item off...still not sure why). This will reload the admin menu, followed by every plugin listed in a cfg file

Notes:
  • Do not include .smx at the end of the plugins listed in the cfg file. It automatically appends .smx at the end, thus it would be trying to load pluginname.smx.smx.
  • Any custom plugins that use the admin menu should be added to the cfg file, provided the author has correctly set it up for late loading.
  • Any admin with the "ban" flag will have access to this plugins commands. If requested, I will turn this into a cvar to set the flag(s).
  • Be sure that every plugin you list in the cfg file is spelled correctly and exists in the plugins folder. To load from the disabled plugins folder, list the file in the cfg as: disabled/pluginname

Admin Commands
sm_reloadmenu - Reloads admin menu, followed by plugins listed in cfg file, then this reloads itself.

This command is also implemented into the admin menu under "Server Commands" > "Reload Admin Menu".

Changelog


Installation
Install contents of zip folder in your cstrike/addons/sourcemod directory.

Servers using this plugin
>>> Click here to check out my other plugins <<<

Ellie 05-19-2014 00:12

Re: TOGs Admin Menu Reload
 
Interesting. There is a plugin I use that adds entries in the admin menu, but seems to disappear from the menu if I refresh the plugins and only shows up when I restart the server again. Will test this out now. :)

ThatOneGuy 05-19-2014 00:59

Re: TOGs Admin Menu Reload
 
Quote:

Originally Posted by Ellie (Post 2139722)
Interesting. There is a plugin I use that adds entries in the admin menu, but seems to disappear from the menu if I refresh the plugins and only shows up when I restart the server again. Will test this out now. :)

Make sure to add the plugin to the cfg file. Also, if it still doesnt show, link me the plugin and I will make you a quick edit (depending on what the plugin is) so that it handles late-loading correctly.

404UserNotFound 05-19-2014 01:14

Re: TOGs Admin Menu Reload
 
Quote:

Originally Posted by ThatOneGuy (Post 2139734)
Make sure to add the plugin to the cfg file. Also, if it still doesnt show, link me the plugin and I will make you a quick edit (depending on what the plugin is) so that it handles late-loading correctly.

I think I've seen a late-loading snippet in a plugin before....I think it was FunCommandsX or Funcommands....I forget. Always good to toss a late-load handler in for anything that modifies the admin menu.

ThatOneGuy 05-19-2014 03:01

Re: TOGs Admin Menu Reload
 
Quote:

Originally Posted by abrandnewday (Post 2139739)
I think I've seen a late-loading snippet in a plugin before....I think it was FunCommandsX or Funcommands....I forget. Always good to toss a late-load handler in for anything that modifies the admin menu.

Tis really easy to do, so if the plugin he speaks of doesnt have it, it can be added in

Peace-Maker 05-19-2014 09:06

Re: TOGs Admin Menu Reload
 
This should be fixed in the adminmenu / topmenu instead of a workaround. I've seen this glitch happen too, when a plugin that had some options registered in the admin menu was paused. I'll see if i can come up with a patch.

ThatOneGuy 05-19-2014 15:07

Re: TOGs Admin Menu Reload
 
Quote:

Originally Posted by Peace-Maker (Post 2139885)
This should be fixed in the adminmenu / topmenu instead of a workaround. I've seen this glitch happen too, when a plugin that had some options registered in the admin menu was paused. I'll see if i can come up with a patch.

Wait, do you know exactly what causes it? Because I would like to fix it in the plugins I use. But yes, this will have to do until that is fixed in future SM releases.


All times are GMT -4. The time now is 18:55.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.