Raised This Month: $ Target: $400
 0% 

AMXX Menu system / chooseteam


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-28-2020 , 10:37   AMXX Menu system / chooseteam
Reply With Quote #1

Hello.
So far i got it right, no compile errors or something else, but when i enter server and press M button it doesnt show the menu but team choose, any solutions?

PHP Code:
 #include <amxmodx>

 
public plugin_init()
 {
    
register_clcmd"chooseteam","mainmenu" );
 }
 public 
mainmenuid )
 {
    new 
menu menu_create"\rLook at this awesome Menu!:""menu_handler" );
    
menu_additemmenu"\wI'm Selection #1""");
    
menu_additemmenu"\wI'm Selection #2""");
    
menu_additemmenu"\wI'm Secret Selection #3"""ADMIN_ADMIN );
    
menu_setpropmenuMPROP_EXITMEXIT_ALL );
    
menu_displayidmenu);
 }
 public 
menu_handleridmenuitem )
 {
    switch( 
item )
    {
        case 
0:
        {
            
client_printidprint_chat"Hooray! You selected the Awesome 1st Selection" );
            
            
menu_destroymenu );
            return 
PLUGIN_HANDLED;
        }
        case 
1:
        {
            
client_printidprint_chat"OH NO! You selected the Awesome 2nd Selection! BEWARE!" );
        }
        case 
2:
        {
            
client_printidprint_chat"You have selected the Awesome Admin Selection! Hail Teh Bail!" );
        }
        case 
MENU_EXIT:
        {
            
client_printidprint_chat"You exited the menu... what a bummer!" );
        }
    }
    
menu_destroymenu );
    return 
PLUGIN_HANDLED;
 } 

Last edited by HowToRuski; 08-28-2020 at 10:37.
HowToRuski 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 17:42.


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