Raised This Month: $51 Target: $400
 12% 

Lock class menu and block VGUImenu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pablo_98
New Member
Join Date: Jul 2017
Old 03-08-2018 , 07:20   Lock class menu and block VGUImenu
Reply With Quote #1

Hello everyone, I wanted to ask you if you can help me or how to block the class selection menu and the VGUI menu.

Class selection menu: when I choose a team, I do not see the class / character, I automatically address the team I chose.

VGUI menu: block the VGUI menu and only the old menu can be used.

No more to say, thank you very much and I hope you can help me.


PHP Code:
public MessageShowMenu(msgiddestid)
{
    static 
team_select[] = "#Team_Select"
    
static menu_text_code[sizeof team_select]
    
    
get_msg_arg_string(4menu_text_codesizeof menu_text_code 1)
    
    if(
equal(menu_text_codeteam_select))
    {
        if(
get_pcvar_num(Enable) || bChangeteam)
        {
            
set_task0.25"ShowMenuTeams"id );
            return 
PLUGIN_HANDLED
        
}
    }
    
    return 
PLUGIN_CONTINUE
}
//----------------------------------------------------------// 
public MessageVGUIMenu(msgiddestid)
{
    if (!(
get_msg_arg_int(1)))
    {
        if(
get_pcvar_num(Enable) || bChangeteam)
        {
            
ShowMenuTeams(id)
            return 
PLUGIN_HANDLED
        
}
    }
    
    return 
PLUGIN_CONTINUE


Last edited by Pablo_98; 03-08-2018 at 07:25.
Pablo_98 is offline
sb123
Senior Member
Join Date: Jan 2007
Old 03-09-2018 , 00:56   Re: Lock class menu and block VGUImenu
Reply With Quote #2

Try this plugin
Attached Files
File Type: sma Get Plugin or Get Source (custom_team_select_menu.sma - 601 views - 7.9 KB)
__________________
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
Pablo_98
New Member
Join Date: Jul 2017
Old 03-09-2018 , 14:45   Re: Lock class menu and block VGUImenu
Reply With Quote #3

Sorry, bro, but it was not what I needed.

What I want is to block the class selection menu and block the VGUImenu.
Pablo_98 is offline
sb123
Senior Member
Join Date: Jan 2007
Old 03-10-2018 , 01:23   Re: Lock class menu and block VGUImenu
Reply With Quote #4

ADMIN_IMMUNITY Permissions can be immune
Attached Files
File Type: sma Get Plugin or Get Source (Can't_Change_Team.sma - 617 views - 987 Bytes)
__________________
sb123 is offline
Send a message via ICQ to sb123 Send a message via MSN to sb123 Send a message via Yahoo to sb123
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:02.


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