Raised This Month: $ Target: $400
 0% 

[Help!] Jointeam VGUI/OLD style menus


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-02-2010 , 01:35   Re: [Help!] Jointeam VGUI/OLD style menus
Reply With Quote #3

Quote:
Originally Posted by Sylwester View Post
you can do it this way:
PHP Code:
public plugin_init(){
    
register_message(get_user_msgid("ShowMenu"), "message_show_menu")
}

public 
message_show_menu(msgiddestid) {
    new 
tmp[32]
    
get_msg_arg_string(4tmp31)
    if(
contain(tmp"#Team_Select")==0){
        
//join team menu
        //return PLUGIN_HANDLED to block it
    
}else if(contain(tmp"#CT_Select")==|| contain(tmp"#Terrorist_Select")==0){
        
//join class menu
        //return PLUGIN_HANDLED to block it
    
}
    return 
PLUGIN_CONTINUE

Wrong, you have to use register_menu[...]
Something like this : http://forums.alliedmods.net/showpos...81&postcount=2
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 12-02-2010 at 01:40.
ConnorMcLeod 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 11:23.


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