Quote:
Originally Posted by maxolahird
how to remove default Mute/Gag system? Can I just remove basecomm.smx? I guess everything on it is replaced by this...
-edit-
I tried removing it... thing got real messy lol, bugged menus, commands not working... how to do this then?
|
remove this lines from basecomm.sp and recompile plugin
Code:
/* Account for late loading */
new Handle:topmenu;
if (LibraryExists("adminmenu") && ((topmenu = GetAdminTopMenu()) != INVALID_HANDLE))
{
OnAdminMenuReady(topmenu);
}
and
Code:
public OnAdminMenuReady(Handle:topmenu)
{
/* Block us from being called twice */
if (topmenu == hTopMenu)
{
return;
}
/* Save the Handle */
hTopMenu = topmenu;
/* Build the "Player Commands" category */
new TopMenuObject:player_commands = FindTopMenuCategory(hTopMenu, ADMINMENU_PLAYERCOMMANDS);
if (player_commands != INVALID_TOPMENUOBJECT)
{
AddToTopMenu(hTopMenu,
"sm_gag",
TopMenuObject_Item,
AdminMenu_Gag,
player_commands,
"sm_gag",
ADMFLAG_CHAT);
}
}
it is the easiest way
__________________