Raised This Month: $120 Target: $400
 30% 

[Req] BaseBuilder menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
legendxd
Junior Member
Join Date: Mar 2020
Old 04-01-2020 , 11:15   [Req] BaseBuilder menu
Reply With Quote #1

hello guys i made this menu for my cs1.6 basebuilder server and i added it but when i press m it doesn't works the zm classes menu shows for me only ... so please i need help
#include <amxmodx>

#define PLUGIN "Menu BB"
#define VERSION "1.0"
#define AUTHOR "legend"

public plugin_init() {

register_clcmd("chooseteam", "cmdMenu");
register_plugin(PLUGIN, VERSION, AUTHOR);
}

public cmdMenu(id) {
new i_Menu = menu_create("\w[Shadowcm]\rBaseBuilder 6.5 Menu ", "menu_handler");
menu_additem(i_Menu, "\wBoost ", "1", 0);
menu_additem(i_Menu, "\wZombie Class", "2", 0);
menu_additem(i_Menu, "\wShop", "3", 0);
menu_additem(i_Menu, "\wRespawn", "4", 0);
menu_additem(i_Menu, "\wVIP Shop ", "5", ADMIN_LEVEL_H);
menu_additem(i_Menu, "\wKnife \rMenu", "6", 0);
menu_additem(i_Menu, "\wRules", "7", 0);
menu_additem(i_Menu, "\wADMIN \rMenu", "8", ADMIN_LEVEL_D);
menu_setprop(i_Menu, MPROP_NEXTNAME, "Next");
menu_setprop(i_Menu, MPROP_BACKNAME, "Back");
menu_setprop(i_Menu, MPROP_EXITNAME, "Exit");

menu_display(id, i_Menu, 0)
}

public client_authorized(id)
{
client_cmd(id, "bind ^"M^" ^"menu^"")
}

public menu_handler(id, menu, item) {
if( item < 0 ) return PLUGIN_CONTINUE;
new cmd[3], access, callback;
menu_item_getinfo(menu, item, access, cmd,2,_,_, callback);
new Choise = str_to_num(cmd)
switch (Choise) {
case 1: {
client_cmd(id, "say /howtoboost")
}
case 2: {
client_cmd(id, "say /class")
}
case 3: {
client_cmd(id, "say /shop")
}
case 4: {
client_cmd(id, "say /revive")
}
case 5: {
client_cmd(id, "say /vs")
}
case 6: {
client_cmd(id, "say /knife")
}
case 7: {
client_cmd(id, "say /rules")
}
case 8: {
client_cmd(id, "say /am")
}
}
return PLUGIN_HANDLED;
}
legendxd is offline
Old 04-01-2020, 11:16
legendxd
This message has been deleted by DarkDeviL. Reason: Left overs after merging bumps/cross-posts
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-01-2020 , 15:01   Re: [Req] BaseBuilder menu
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=284324
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Nutu_
Veteran Member
Join Date: Mar 2016
Location: Germany
Old 04-01-2020 , 15:12   Re: [Req] BaseBuilder menu
Reply With Quote #3

PHP Code:
public client_authorized(id)
{
client_cmd(id"bind ^"M^" ^"menu^"")

slowhack is fobidden.
use OciXCrom plugin
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
Reply


Thread Tools
Display Modes

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 02:56.


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