Raised This Month: $ Target: $400
 0% 

help wiht menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
oei
Junior Member
Join Date: Nov 2011
Old 11-05-2011 , 03:04   Re: help wiht menu
Reply With Quote #8

Quote:
Originally Posted by Gooogle View Post
PHP Code:
#include < amxmodx >
#include < cstrike >
 
public plugin_init( )
{
    
register_clcmd"say /help""Help" );
    
register_clcmd"say_team /help""Help" );
}
 
public 
Helpid )
{
    if( 
cs_get_user_teamid ) != CS_TEAM_T )
    {
        
client_printidprint_chat"[AMXX] Sorry! Only Terrorist may use this menu!" );
        return 
PLUGIN_HANDLED;
    }
 
    
HelpMenuid );
 
    return 
PLUGIN_HANDLED;
}
 
public 
HelpMenuid )
{
    new 
MainMenu menu_create"Help Menu""sub_HelpMenu" );
 
    
menu_additemMainMenu"Show Admins""1");
    
menu_additemMainMenu"Show MOTD""2");
 
    
menu_displayidMainMenu);
}         
 
public 
sub_HelpMenuidMainMenuitem )
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroyMainMenu );
        return 
PLUGIN_HANDLED;
    }
 
    new 
Data[7], Name[64];
    new 
AccessCallback;
    
menu_item_getinfoMainMenuitemAccessData,5Name63Callback );
 
    new 
Key str_to_numData );
 
    switch( 
Key )
    {
        case 
1client_cmdid"say /admin" );
        case 
2client_cmdid"say /motd" );
    }
 
    
menu_destroyMainMenu );
    return 
PLUGIN_HANDLED;


dont work men /:
oei 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 14:25.


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