Raised This Month: $ Target: $400
 0% 

help wiht menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
oei
Junior Member
Join Date: Nov 2011
Old 11-04-2011 , 01:36   help wiht menu
Reply With Quote #1

i need help if this menu this is menu for teror and i wont ct can open the menu but do not choose something from the menu if is choose say to hem : "you can use on this menu you must be teror"
thx


PHP Code:
 Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#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)
{
HelpMenu(id)
return 
PLUGIN_HANDLED
}
else if(
get_user_team(id) != 1)
{
return 
PLUGIN_HANDLED
}
return 
PLUGIN_HANDLED
}
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 
1:
{
client_cmd(id,"say /admin")
}

case 
2:
{
client_cmd(id,"say /motd")
}
}
return 
PLUGIN_HANDLED

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