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-04-2011 , 06:30   Re: help wiht menu
Reply With Quote #3

Quote:
Originally Posted by The Inhabitant Of Heavens View Post
PHP Code:
#include <amxmodx>
#include <cstrike>
 
public plugin_init() 
{
    
register_clcmd("say /help""MenuHelp")
    
register_clcmd("say_team /help""MenuHelp")
}
 
public 
MenuHelp(id)
{
    if (!(
cs_get_user_team(id) == CS_TEAM_T) )
    {
        
client_print(id,print_chat"[SERVER] For Only [Terrosist] !");
        return 
PLUGIN_HANDLED;
    }
 
    
HelpMenu(id
 
    return 
PLUGIN_CONTINUE;
 
}
 
public 
HelpMenu(id
{
    new 
menu menu_create("Help Menu""menu_handler");
 
    
menu_additem(menu"Show Admin""1");
    
menu_additem(menu"Show Help Motd""2");
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu);
}
public 
menu_handler(idmenuitem)

    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
 
    new 
data[6], szName[64];
    new 
accesscallback;
 
    
menu_item_getinfo(menuitemaccessdata,5szName63callback);
    new 
key str_to_num(data);
 
    switch(
key)
    {
        case 
1client_cmd(id,"say /admin")
        case 
2client_cmd(id,"say /motd")
    }
 
    return 
PLUGIN_HANDLED


not work
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