Raised This Month: $ Target: $400
 0% 

Plugin Menu M.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Raul3w
Member
Join Date: Apr 2017
Old 05-25-2017 , 15:24   Plugin Menu M.
Reply With Quote #1

Hello everyone.
I want a menu for base builder mode 6.5 en 1.6.
This menu contains:
1.Weapon Menu
2.Zombie Class
3.Human Class
4.Shop
5.Respawn
6.Vip Menu
7.Knife Skin Menu
8.Ak47 Skin Menu.
Command:
1./guns
2./class
3./race
4./shop
5./revive
6./vmenu
7./knife
8./ak47
BB.Ecila.Ro menu appears
Hope to make this menu please.
I did one but it's not good
Quote:
#include <amxmodx>

#define PLUGIN "Meniu BB"
#define VERSION "1.0"
#define AUTHOR "Raul3w"

public plugin_init() {

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

public cmdMenu(id) {
new i_Menu = menu_create("\rServer Menu", "menu_handler");
menu_additem(i_Menu, "\wMeniu Arme \rOnly Human", "1", 0);
menu_additem(i_Menu, "\wZombie Class", "2", 0);
menu_additem(i_Menu, "\wHuman Class \rOnly CT", "3", 0);
menu_additem(i_Menu, "\wRespawn", "4", 0);
menu_additem(i_Menu, "\wShop", "5", 0);
menu_additem(i_Menu, "\wKnife \rMenu", "6", 0);
menu_additem(i_Menu, "\wAk47 \rMenu", "7", 0);
menu_additem(i_Menu, "\wVip \rMenu", "8", ADMIN_LEVEL_H);
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 /guns")
}
case 2: {
client_cmd(id, "say /class")
}
case 3: {
client_cmd(id, "say /race")
}
case 4: {
client_cmd(id, "say /revive")
}
case 5: {
client_cmd(id, "say /shop")
}
case 6: {
client_cmd(id, "say /knife")
}
case 7: {
client_cmd(id, "say /ak47")
}
case 8: {
client_cmd(id, "say /vmenu")
}
}
return PLUGIN_HANDLED;
}
Raul3w 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 19:08.


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