This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

TeamLocker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Aydeev
Junior Member
Join Date: Oct 2014
Old 11-11-2014 , 16:48   Re: TeamLocker
Reply With Quote #1

The lock can be bypassed by using the Vgui menus (setinfo "_vgui_menus" "1")

Is there any way to prevent that?


Edit: Found a solution myself. Add this to force the old style menu on players while picking teams

PHP Code:
public plugin_init() { 
register_message(get_user_msgid("VGUIMenu"), "prevent_vgui_menu")
}

public 
prevent_vgui_menu(msgiddestid
{
    
    if (
get_msg_arg_int(1) == )
    {
        
set_user_info(id"_vgui_menus""0")
        
client_cmd(id"chooseteam")
    }
    else {    
        return 
PLUGIN_CONTINUE    
    
}
    
    return 
PLUGIN_HANDLED


Last edited by Aydeev; 11-12-2014 at 08:06.
Aydeev is offline
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 05:42.


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