View Single Post
ppalex
Senior Member
Join Date: Nov 2012
Location: Russia, near the Moscow
Old 04-26-2014 , 08:59   Re: [ANY] SourceComms (0.9.260 - 02/11/2013)
Reply With Quote #279

Quote:
Originally Posted by maxolahird View Post
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
__________________
ppalex is offline