1.1 --- a/plugins/adminmenu.sp Tue Oct 16 17:28:19 2007 +0000
1.2 +++ b/plugins/adminmenu.sp Tue Oct 16 17:28:36 2007 +0000
1.3 @@ -75,6 +75,20 @@
1.4 RegAdminCmd("sm_admin", Command_DisplayMenu, ADMFLAG_GENERIC, "sm_admin");
1.5 }
1.6
1.7 +public OnConfigsExecuted()
1.8 +{
1.9 + decl String:path[PLATFORM_MAX_PATH];
1.10 + decl String:error[256];
1.11 +
1.12 + BuildPath(Path_SM, path, sizeof(path), "configs/adminmenu_sorting.txt");
1.13 +
1.14 + if (!LoadTopMenuConfig(hAdminMenu, path, error, sizeof(error)))
1.15 + {
1.16 + LogError("Could not load admin menu config (file \"%s\": %s)", path, error);
1.17 + return;
1.18 + }
1.19 +}
1.20 +
1.21 public OnAllPluginsLoaded()
1.22 {
1.23 hAdminMenu = CreateTopMenu(CategoryHandler);
1.24 @@ -113,7 +127,6 @@
1.25 String:buffer[],
1.26 maxlength)
1.27 {
1.28 - PrintToServer("CategoryHandler(%x, %d, %x)", topmenu, action, object_id);
1.29 if (action == TopMenuAction_DisplayTitle)
1.30 {
1.31 if (object_id == INVALID_TOPMENUOBJECT)