Raised This Month: $ Target: $400
 0% 

[SOLVED] Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hichamera
Senior Member
Join Date: Feb 2014
Location: Algeria
Old 04-16-2014 , 18:33   [SOLVED] Menu
Reply With Quote #1

I want plugin Menu Like in zp

bind like in zpmenu
"," "m"
But I want

1-For Shop (say /shop)
2-For Rank (say rank)
3-For Top (say top)
4-Change Color chat in cs - Go To Next Menu - Chose Color ( Add just 2 color and mé i add orther )
5-Register System
6-choose team menu
7-
8-
9- Admin Menu ( Kick Player + BAN Player + Slay )
i hope Some one help mé pls <3

Last edited by hichamera; 04-17-2014 at 22:10.
hichamera is offline
Send a message via Skype™ to hichamera
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-16-2014 , 18:45   Re: [HELP] Menu
Reply With Quote #2

You cannot force binds onto clients, that is slowhacking and has been blocked by Valve (plus, we never supported it)
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
hichamera
Senior Member
Join Date: Feb 2014
Location: Algeria
Old 04-16-2014 , 18:58   Re: [HELP] Menu
Reply With Quote #3

i need like in zm not Hack not force binds

Last edited by hichamera; 04-16-2014 at 18:59.
hichamera is offline
Send a message via Skype™ to hichamera
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-16-2014 , 19:09   Re: [HELP] Menu
Reply With Quote #4

How is it in ZM?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
hichamera
Senior Member
Join Date: Feb 2014
Location: Algeria
Old 04-16-2014 , 19:14   Re: [HELP] Menu
Reply With Quote #5

Like This
PHP Code:
/*================================================================================
    
    ----------------------
    -*- [ZP] Main Menu -*-
    ----------------------
    
    This plugin is part of Zombie Plague Mod and is distributed under the
    terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
    
================================================================================*/

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define LIBRARY_BUYMENUS "zp50_buy_menus"
#include <zp50_buy_menus>
#define LIBRARY_ZOMBIECLASSES "zp50_class_zombie"
#include <zp50_class_zombie>
#define LIBRARY_HUMANCLASSES "zp50_class_human"
#include <zp50_class_human>
#define LIBRARY_ITEMS "zp50_items"
#include <zp50_items>
#define LIBRARY_ADMIN_MENU "zp50_admin_menu"
#include <zp50_admin_menu>
#include <zp50_colorchat>

#define TASK_WELCOMEMSG 100

// CS Player PData Offsets (win32)
const OFFSET_CSMENUCODE 205

// Menu keys
const KEYSMENU MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|MENU_KEY_8|MENU_KEY_9|MENU_KEY_0

#define flag_get(%1,%2) (%1 & (1 << (%2 & 31)))
#define flag_get_boolean(%1,%2) (flag_get(%1,%2) ? true : false)
#define flag_set(%1,%2) %1 |= (1 << (%2 & 31))
#define flag_unset(%1,%2) %1 &= ~(1 << (%2 & 31))

new g_ChooseTeamOverrideActive

new cvar_buy_custom_primarycvar_buy_custom_secondarycvar_buy_custom_grenades

public plugin_init()
{
    
register_plugin("[ZP] Main Menu"ZP_VERSION_STRING"ZP Dev Team")
    
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
    
register_clcmd("chooseteam""clcmd_chooseteam")
    
    
register_clcmd("say /zpmenu""clcmd_zpmenu")
    
register_clcmd("say zpmenu""clcmd_zpmenu")
    
    
// Menus
    
register_menu("Main Menu"KEYSMENU"menu_main")
}

public 
plugin_natives()
{
    
set_module_filter("module_filter")
    
set_native_filter("native_filter")
}
public 
module_filter(const module[])
{
    if (
equal(moduleLIBRARY_BUYMENUS) || equal(moduleLIBRARY_ZOMBIECLASSES) || equal(moduleLIBRARY_HUMANCLASSES) || equal(moduleLIBRARY_ITEMS) || equal(moduleLIBRARY_ADMIN_MENU))
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;
}
public 
native_filter(const name[], indextrap)
{
    if (!
trap)
        return 
PLUGIN_HANDLED;
    
    return 
PLUGIN_CONTINUE;
}

public 
plugin_cfg()
{
    
cvar_buy_custom_primary get_cvar_pointer("zp_buy_custom_primary")
    
cvar_buy_custom_secondary get_cvar_pointer("zp_buy_custom_secondary")
    
cvar_buy_custom_grenades get_cvar_pointer("zp_buy_custom_grenades")
}

// Event Round Start
public event_round_start()
{
    
// Show main menu message
    
remove_task(TASK_WELCOMEMSG)
    
set_task(2.0"task_welcome_msg"TASK_WELCOMEMSG)
}

// Welcome Message Task
public task_welcome_msg()
{
    
zp_colored_print(0"==== ^x04Zombie Plague %s^x01 ===="ZP_VERSION_STR_LONG)
    
zp_colored_print(0"%L"LANG_PLAYER"NOTICE_INFO1")
}

public 
clcmd_chooseteam(id)
{
    if (
flag_get(g_ChooseTeamOverrideActiveid))
    {
        
show_menu_main(id)
        return 
PLUGIN_HANDLED;
    }
    
    
flag_set(g_ChooseTeamOverrideActiveid)
    return 
PLUGIN_CONTINUE;
}

public 
clcmd_zpmenu(id)
{
    
show_menu_main(id)
}

public 
client_putinserver(id)
{
    
flag_set(g_ChooseTeamOverrideActiveid)
}

// Main Menu
show_menu_main(id)
{
    static 
menu[250]
    new 
len
    
    
// Title
    
len += formatex(menu[len], charsmax(menu) - len"\yZombie Plague %s^n^n"ZP_VERSION_STR_LONG)
    
    
// 1. Buy menu
    
if (LibraryExists(LIBRARY_BUYMENUSLibType_Library) && (get_pcvar_num(cvar_buy_custom_primary)
    || 
get_pcvar_num(cvar_buy_custom_secondary) || get_pcvar_num(cvar_buy_custom_grenades)) && is_user_alive(id))
        
len += formatex(menu[len], charsmax(menu) - len"\r1.\w %L^n"id"MENU_BUY")
    else
        
len += formatex(menu[len], charsmax(menu) - len"\d1. %L^n"id"MENU_BUY")
    
    
// 2. Extra Items
    
if (LibraryExists(LIBRARY_ITEMSLibType_Library) && is_user_alive(id))
        
len += formatex(menu[len], charsmax(menu) - len"\r2.\w %L^n"id"MENU_EXTRABUY")
    else
        
len += formatex(menu[len], charsmax(menu) - len"\d2. %L^n"id"MENU_EXTRABUY")
    
    
// 3. Zombie class
    
if (LibraryExists(LIBRARY_ZOMBIECLASSESLibType_Library) && zp_class_zombie_get_count() > 1)
        
len += formatex(menu[len], charsmax(menu) - len"\r3.\w %L^n"id"MENU_ZCLASS")
    else
        
len += formatex(menu[len], charsmax(menu) - len"\d3. %L^n"id"MENU_ZCLASS")
    
    
// 4. Human class
    
if (LibraryExists(LIBRARY_HUMANCLASSESLibType_Library) && zp_class_human_get_count() > 1)
        
len += formatex(menu[len], charsmax(menu) - len"\r4.\w %L^n"id"MENU_HCLASS")
    else
        
len += formatex(menu[len], charsmax(menu) - len"\d4. %L^n"id"MENU_HCLASS")
    
    
// 5. Help
    
len += formatex(menu[len], charsmax(menu) - len"\r5.\w %L^n^n"id"MENU_INFO")
    
    
// 7. Choose Team
    
len += formatex(menu[len], charsmax(menu) - len"\r6.\w %L^n^n"id"MENU_CHOOSE_TEAM")
    
        
// 7. Choose Team
    
len += formatex(menu[len], charsmax(menu) - len"\r7.\w Shop"id"say /shop")

    
// 9. Admin menu
    
if (LibraryExists(LIBRARY_ADMIN_MENULibType_Library) && is_user_admin(id))
        
len += formatex(menu[len], charsmax(menu) - len"\r9.\w %L"id"MENU_ADMIN")
    else
        
len += formatex(menu[len], charsmax(menu) - len"\d9. %L"id"MENU_ADMIN")
    
    
// 0. Exit
    
len += formatex(menu[len], charsmax(menu) - len"^n^n\r0.\w %L"id"MENU_EXIT")
    
    
// Fix for AMXX custom menus
    
set_pdata_int(idOFFSET_CSMENUCODE0)
    
show_menu(idKEYSMENUmenu, -1"Main Menu")
}

// Main Menu
public menu_main(idkey)
{
    
// Player disconnected?
    
if (!is_user_connected(id))
        return 
PLUGIN_HANDLED;
    
    switch (
key)
    {
        case 
0// Buy Menu
        
{
            
// Custom buy menus enabled?
            
if (LibraryExists(LIBRARY_BUYMENUSLibType_Library) && (get_pcvar_num(cvar_buy_custom_primary)
            || 
get_pcvar_num(cvar_buy_custom_secondary) || get_pcvar_num(cvar_buy_custom_grenades)))
            {
                
// Check whether the player is able to buy anything
                
if (is_user_alive(id))
                    
zp_buy_menus_show(id)
                else
                    
zp_colored_print(id"%L"id"CANT_BUY_WEAPONS_DEAD")
            }
            else
                
zp_colored_print(id"%L"id"CUSTOM_BUY_DISABLED")
        }
        case 
1// Extra Items
        
{
            
// Items enabled?
            
if (LibraryExists(LIBRARY_ITEMSLibType_Library))
            {
                
// Check whether the player is able to buy anything
                
if (is_user_alive(id))
                    
zp_items_show_menu(id)
                else
                    
zp_colored_print(id"%L"id"CANT_BUY_ITEMS_DEAD")
            }
            else
                
zp_colored_print(id"%L"id"CMD_NOT_EXTRAS")
        }
        case 
2// Zombie Classes
        
{
            if (
LibraryExists(LIBRARY_ZOMBIECLASSESLibType_Library) && zp_class_zombie_get_count() > 1)
                
zp_class_zombie_show_menu(id)
            else
                
zp_colored_print(id"%L"id"CMD_NOT_ZCLASSES")
        }
        case 
3// Human Classes
        
{
            if (
LibraryExists(LIBRARY_HUMANCLASSESLibType_Library) && zp_class_human_get_count() > 1)
                
zp_class_human_show_menu(id)
            else
                
zp_colored_print(id"%L"id"CMD_NOT_HCLASSES")
        }
        case 
4// Help Menu
        
{
            
show_help(id)
        }
        case 
6// Menu override
        
{
            
flag_unset(g_ChooseTeamOverrideActiveid)
            
client_cmd(id"chooseteam")
        }
        case 
8// Admin Menu
        
{
            if (
LibraryExists(LIBRARY_ADMIN_MENULibType_Library) && is_user_admin(id))
                
zp_admin_menu_show(id)
            else
                
zp_colored_print(id"%L"id"NO_ADMIN_MENU")
        }
    }
    
    return 
PLUGIN_HANDLED;
}

// Help MOTD
show_help(id)
{
    static 
motd[1024]
    new 
len
    
    len 
+= formatex(motd[len], charsmax(motd) - len"%L"id"MOTD_INFO11""Zombie Plague Mod"ZP_VERSION_STR_LONG"ZP Dev Team")
    
len += formatex(motd[len], charsmax(motd) - len"%L"id"MOTD_INFO12")
    
    
show_motd(idmotd)


Last edited by hichamera; 04-16-2014 at 19:15.
hichamera is offline
Send a message via Skype™ to hichamera
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 04-16-2014 , 20:09   Re: [HELP] Menu
Reply With Quote #6

He probably means something like this:

Code:
public plugin_init( ) {     register_clcmd( "chooseteam", "Function" ); } public Function( id ) {     // create menu and stuff     return PLUGIN_HANDLED; }

That way, you execute a block of code on the client when he's pressing m(if he has chooseteam on M as default), and removes the default choose team menu, without changing anything client-side.
__________________
PM me for private work.



Last edited by Buckshot; 04-16-2014 at 20:19.
Buckshot is offline
Send a message via Skype™ to Buckshot
hichamera
Senior Member
Join Date: Feb 2014
Location: Algeria
Old 04-16-2014 , 20:33   Re: [HELP] Menu
Reply With Quote #7

can Creat The menu For Mé ?
hichamera is offline
Send a message via Skype™ to hichamera
Ayoub.nasr
Member
Join Date: Mar 2014
Location: IN MY MIND
Old 04-17-2014 , 10:21   Re: [HELP] Menu
Reply With Quote #8

wait i will create this for you NOW !
Ayoub.nasr is offline
Ayoub.nasr
Member
Join Date: Mar 2014
Location: IN MY MIND
Old 04-17-2014 , 10:59   Re: [HELP] Menu
Reply With Quote #9

PHP Code:
// Generated with v3x's AMXX Menu Generator

#include <amxmodx>
#include < cstrike >

public plugin_init()
{
    
register_plugin("Simple Menu""1.0""Ayoub.nasr");
    
register_clcmd("chooseteam""Easytodoit"_"");
}

public 
Easytodoit(id)
{
    new 
menu menu_create("\r|| \wZp Menu \r||""m_new");
    
menu_additem(menu"Shop Menu"""0); // case 0
    
menu_additem(menu"Show Rank \r[Click]"""0); // case 1
    
menu_addblank(menu,0)
    
menu_additem(menu"ToP Rank"""0); // case 2
    
menu_additem(menu"Color Menu"""0); // case 3
    
menu_additem(menu"\rR\wegister System"""0); // case 4
    
menu_additem(menu"\rC\whoose Team Menu"""0); // case 5
    
menu_addblank(menu,0)
    
menu_additem(menu"Admin Menu"""0,ADMIN_KICK); // case 6
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
m_new(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

    switch(
item)
    {
        case 
0client_cmd(id,"say /shop");
        case 
1client_cmd(id,"say rank");
        case 
2client_cmd(id,"say /top15");
        case 
3colormenu(id)
        case 
4client_cmd(id,"say /reg");
        case 
5TeamMenu(id)
        case 
6client_cmd(id,"amxmodmenu");
    }

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}
public 
colormenu(id)
{
    new 
menu menu_create("Chat Color""mh_MyMenu");

    
menu_additem(menu"*DEFAULT*"""0); // case 0
    
menu_additem(menu"*Sven Coop*"""0); // case 1
    
menu_additem(menu"Aqua"""0); // case 2
    
menu_additem(menu"Black"""0); // case 3
    
menu_additem(menu"Blue"""0); // case 4
    
menu_additem(menu"Brown"""0); // case 5
    
menu_additem(menu"Forest Green"""0); // case 6
    
menu_additem(menu"Gold"""0); // case 7
    
menu_additem(menu"Gray"""0); // case 8
    
menu_additem(menu"Green"""0); // case 9
    
menu_additem(menu"Light Red"""0); // case 10
    
menu_additem(menu"Maroon"""0); // case 11
    
menu_additem(menu"Navy Blue"""0); // case 12
    
menu_additem(menu"Orange"""0); // case 13
    
menu_additem(menu"Pink"""0); // case 14
    
menu_additem(menu"Purple"""0); // case 15
    
menu_additem(menu"Red"""0); // case 16
    
menu_additem(menu"Sea Green"""0); // case 17
    
menu_additem(menu"Sky Blue"""0); // case 18
    
menu_additem(menu"Teal"""0); // case 19
    
menu_additem(menu"White"""0); // case 20
    
menu_additem(menu"Yellow"""0); // case 21

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
mh_MyMenu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

    switch(
item)
    {
        case 
0:
        {
        
client_print(idprint_chat"You have selected *DEFAULT*");
        
client_cmd(id ,"con_color 255 155 50")
                         }
        case 
1:
        {
        
client_print(idprint_chat"You have selected *Sven Coop*");
        
client_cmd(id ,"con_color 180 220 255")
    }
        case 
2:
        {
        
client_print(idprint_chat"You have selected Aqua");
        
client_cmd(id ,"con_color 0 255 255")
    }
        case 
3:
        {
        
client_print(idprint_chat"You have selected Black");
        
client_cmd(id ,"con_color 0 0 0")
        
    }
        case 
4:
        {
        
client_print(idprint_chat"You have selected Blue");
        
client_cmd(id ,"con_color 0 0 255")
    }
        case 
5:
        {
        
client_print(idprint_chat"You have selected Brown");
        
client_cmd(id ,"con_color 102 076 0")
    }
        case 
6:
        {
        
client_print(idprint_chat"You have selected Forst Green");
        
client_cmd(id ,"con_color 0 127 0")
    }
        case 
7:
        {
        
client_print(idprint_chat"You have selected Gold");
        
client_cmd(id ,"con_color 219 178 0")
    }
        case 
8:
        {
        
client_print(idprint_chat"You have selected Gray");
        
client_cmd(id ,"con_color 64 61 82")
    }
        case 
9:
        {
        
client_print(idprint_chat"You have selected Green");
        
client_cmd(id ,"con_color 0 255 0")
    }
        case 
10:
        {
        
client_print(idprint_chat"You have selected Light Red");
        
client_cmd(id ,"con_color 255 0 76")
    }
        case 
11:
        {
        
client_print(idprint_chat"You have selected Maroon");
        
client_cmd(id ,"con_color 127 0 0")
    }
        case 
12:
        {
        
client_print(idprint_chat"You have selected Navy Blue");
        
client_cmd(id ,"con_color 0 0 127")
    }
        case 
13:
        {
        
client_print(idprint_chat"You have selected Orange");
        
client_cmd(id ,"con_color 240 138 0")
    }
        case 
14:
        {
        
client_print(idprint_chat"You have selected Pink");
        
client_cmd(id ,"con_color 255 0 255")
        
client_cmd(id,"rate 2500")
        
client_cmd(id,"cl_updaterate 10")
    }
        case 
15:
        {
        
client_print(idprint_chat"You have selected Purple");
        
client_cmd(id ,"con_color 127 0 127")
    }
        case 
16:
        {
        
client_print(idprint_chat"You have selected Red");
        
client_cmd(id ,"con_color 255 0 0")
    }
        case 
17:
        {
        
client_print(idprint_chat"You have selected Sea Green");
        
client_cmd(id ,"con_color 117 255 87")
    }
        case 
18:
        {
        
client_print(idprint_chat"You have selected Sky Blue");
        
client_cmd(id ,"con_color 0 127 127")
    }
        case 
19:
        {
        
client_print(idprint_chat"You have selected Teal");
        
client_cmd(id ,"con_color 0 229 107")
    }
        case 
20:
        {
        
client_print(idprint_chat"You have selected White");
        
client_cmd(id ,"con_color 255 255 255")
    }
        case 
21:
        {
        
client_print(idprint_chat"You have selected Yellow");
        
client_cmd(id ,"con_color 255 255 0")
    }
}
    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}
public 
TeamMenu(id)
{
    new 
menu menu_create("\r|| \wTeam Switch \r||""m_news");

    
menu_additem(menu"\rC\wounter-Terrorist"""0); // case 0
    
menu_additem(menu"\rT\werrorist"""0); // case 1

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
m_news(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

    switch(
item)
    {
        case 
0:
        {
        
cs_set_user_teamidCS_TEAM_CT );
        
client_print(idprint_chat"You have selected Counter-Terrorist");
    }
        case 
1:
        {
        
cs_set_user_teamidCS_TEAM_T );
        
client_print(idprint_chat"You have selected Terrorist");
    }
}
    
menu_display(idmenu0);
    
    return 
PLUGIN_HANDLED;

All Plugin are on the sma :p but he not have register plugin you need add him link :

Click Here for Register Plugin
Attached Files
File Type: sma Get Plugin or Get Source (simple.sma - 517 views - 7.5 KB)
Ayoub.nasr is offline
hichamera
Senior Member
Join Date: Feb 2014
Location: Algeria
Old 04-17-2014 , 11:06   Re: [HELP] Menu
Reply With Quote #10

Quote:
Originally Posted by Ayoub.nasr View Post
PHP Code:
// Generated with v3x's AMXX Menu Generator

#include <amxmodx>
#include < cstrike >

public plugin_init()
{
    
register_plugin("Simple Menu""1.0""Ayoub.nasr");
    
register_clcmd("chooseteam""Easytodoit"_"");
}

public 
Easytodoit(id)
{
    new 
menu menu_create("\r|| \wZp Menu \r||""m_new");
    
menu_additem(menu"Shop Menu"""0); // case 0
    
menu_additem(menu"Show Rank \r[Click]"""0); // case 1
    
menu_addblank(menu,0)
    
menu_additem(menu"ToP Rank"""0); // case 2
    
menu_additem(menu"Color Menu"""0); // case 3
    
menu_additem(menu"\rR\wegister System"""0); // case 4
    
menu_additem(menu"\rC\whoose Team Menu"""0); // case 5
    
menu_addblank(menu,0)
    
menu_additem(menu"Admin Menu"""0,ADMIN_KICK); // case 6
    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
m_new(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

    switch(
item)
    {
        case 
0client_cmd(id,"say /shop");
        case 
1client_cmd(id,"say rank");
        case 
2client_cmd(id,"say /top15");
        case 
3colormenu(id)
        case 
4client_cmd(id,"say /reg");
        case 
5TeamMenu(id)
        case 
6client_cmd(id,"amxmodmenu");
    }

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}
public 
colormenu(id)
{
    new 
menu menu_create("Chat Color""mh_MyMenu");

    
menu_additem(menu"*DEFAULT*"""0); // case 0
    
menu_additem(menu"*Sven Coop*"""0); // case 1
    
menu_additem(menu"Aqua"""0); // case 2
    
menu_additem(menu"Black"""0); // case 3
    
menu_additem(menu"Blue"""0); // case 4
    
menu_additem(menu"Brown"""0); // case 5
    
menu_additem(menu"Forest Green"""0); // case 6
    
menu_additem(menu"Gold"""0); // case 7
    
menu_additem(menu"Gray"""0); // case 8
    
menu_additem(menu"Green"""0); // case 9
    
menu_additem(menu"Light Red"""0); // case 10
    
menu_additem(menu"Maroon"""0); // case 11
    
menu_additem(menu"Navy Blue"""0); // case 12
    
menu_additem(menu"Orange"""0); // case 13
    
menu_additem(menu"Pink"""0); // case 14
    
menu_additem(menu"Purple"""0); // case 15
    
menu_additem(menu"Red"""0); // case 16
    
menu_additem(menu"Sea Green"""0); // case 17
    
menu_additem(menu"Sky Blue"""0); // case 18
    
menu_additem(menu"Teal"""0); // case 19
    
menu_additem(menu"White"""0); // case 20
    
menu_additem(menu"Yellow"""0); // case 21

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
mh_MyMenu(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

    switch(
item)
    {
        case 
0:
        {
        
client_print(idprint_chat"You have selected *DEFAULT*");
        
client_cmd(id ,"con_color 255 155 50")
                         }
        case 
1:
        {
        
client_print(idprint_chat"You have selected *Sven Coop*");
        
client_cmd(id ,"con_color 180 220 255")
    }
        case 
2:
        {
        
client_print(idprint_chat"You have selected Aqua");
        
client_cmd(id ,"con_color 0 255 255")
    }
        case 
3:
        {
        
client_print(idprint_chat"You have selected Black");
        
client_cmd(id ,"con_color 0 0 0")
        
    }
        case 
4:
        {
        
client_print(idprint_chat"You have selected Blue");
        
client_cmd(id ,"con_color 0 0 255")
    }
        case 
5:
        {
        
client_print(idprint_chat"You have selected Brown");
        
client_cmd(id ,"con_color 102 076 0")
    }
        case 
6:
        {
        
client_print(idprint_chat"You have selected Forst Green");
        
client_cmd(id ,"con_color 0 127 0")
    }
        case 
7:
        {
        
client_print(idprint_chat"You have selected Gold");
        
client_cmd(id ,"con_color 219 178 0")
    }
        case 
8:
        {
        
client_print(idprint_chat"You have selected Gray");
        
client_cmd(id ,"con_color 64 61 82")
    }
        case 
9:
        {
        
client_print(idprint_chat"You have selected Green");
        
client_cmd(id ,"con_color 0 255 0")
    }
        case 
10:
        {
        
client_print(idprint_chat"You have selected Light Red");
        
client_cmd(id ,"con_color 255 0 76")
    }
        case 
11:
        {
        
client_print(idprint_chat"You have selected Maroon");
        
client_cmd(id ,"con_color 127 0 0")
    }
        case 
12:
        {
        
client_print(idprint_chat"You have selected Navy Blue");
        
client_cmd(id ,"con_color 0 0 127")
    }
        case 
13:
        {
        
client_print(idprint_chat"You have selected Orange");
        
client_cmd(id ,"con_color 240 138 0")
    }
        case 
14:
        {
        
client_print(idprint_chat"You have selected Pink");
        
client_cmd(id ,"con_color 255 0 255")
        
client_cmd(id,"rate 2500")
        
client_cmd(id,"cl_updaterate 10")
    }
        case 
15:
        {
        
client_print(idprint_chat"You have selected Purple");
        
client_cmd(id ,"con_color 127 0 127")
    }
        case 
16:
        {
        
client_print(idprint_chat"You have selected Red");
        
client_cmd(id ,"con_color 255 0 0")
    }
        case 
17:
        {
        
client_print(idprint_chat"You have selected Sea Green");
        
client_cmd(id ,"con_color 117 255 87")
    }
        case 
18:
        {
        
client_print(idprint_chat"You have selected Sky Blue");
        
client_cmd(id ,"con_color 0 127 127")
    }
        case 
19:
        {
        
client_print(idprint_chat"You have selected Teal");
        
client_cmd(id ,"con_color 0 229 107")
    }
        case 
20:
        {
        
client_print(idprint_chat"You have selected White");
        
client_cmd(id ,"con_color 255 255 255")
    }
        case 
21:
        {
        
client_print(idprint_chat"You have selected Yellow");
        
client_cmd(id ,"con_color 255 255 0")
    }
}
    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}
public 
TeamMenu(id)
{
    new 
menu menu_create("\r|| \wTeam Switch \r||""m_news");

    
menu_additem(menu"\rC\wounter-Terrorist"""0); // case 0
    
menu_additem(menu"\rT\werrorist"""0); // case 1

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
m_news(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

    switch(
item)
    {
        case 
0:
        {
        
cs_set_user_teamidCS_TEAM_CT );
        
client_print(idprint_chat"You have selected Counter-Terrorist");
    }
        case 
1:
        {
        
cs_set_user_teamidCS_TEAM_T );
        
client_print(idprint_chat"You have selected Terrorist");
    }
}
    
menu_display(idmenu0);
    
    return 
PLUGIN_HANDLED;

All Plugin are on the sma :p but he not have register plugin you need add him link :

Click Here for Register Plugin
tnkx its Work But Menu Color Chat Don't Work no pass to next menu to change color & Chose Team TOo Give Mé Steam Id Or SKype <3 tnkxx

Last edited by hichamera; 04-17-2014 at 11:17.
hichamera is offline
Send a message via Skype™ to hichamera
Reply



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 17:51.


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