Raised This Month: $ Target: $400
 0% 

[SOLVED] Proper way to block team select menu popup on connect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bibu
Veteran Member
Join Date: Sep 2010
Old 06-27-2011 , 15:12   Re: [SOLVED] Proper way to block team select menu popup on connect
Reply With Quote #8

Can someone show a better way, instead of slowhacking?

I would like to show a custom menu after pressing "OK" in the MOTD.

PHP Code:
// New VGUI Menus
stock const VGUI_JOIN_TEAM_NUM =     2

register_message
(get_user_msgid("VGUIMenu"), "message_VGUIMenu")

public 
message_VGUIMenu(iMsgidiDestid)
{
    if(
get_msg_arg_int(1) != VGUI_JOIN_TEAM_NUM)
    {
        return 
PLUGIN_CONTINUE
    
}
    
client_cmd(id"slot10")
    
set_task(0.1"task_team_menu"id)
    return 
PLUGIN_HANDLED

Doesn't work perfectly.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
 



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 20:13.


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