Raised This Month: $ Target: $400
 0% 

[SOLVED] Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Ayoub.nasr
Member
Join Date: Mar 2014
Location: IN MY MIND
Old 04-17-2014 , 11:57   Re: [HELP] Menu
Reply With Quote #21

Wait Spawner will create another :p
Ayoub.nasr is offline
Ayoub.nasr
Member
Join Date: Mar 2014
Location: IN MY MIND
Old 04-17-2014 , 11:58   Re: [HELP] Menu
Reply With Quote #22

Quote:
Originally Posted by hichamera View Post
bro don't work color chat menu & 1 no shop 2 top 15 4 color menu say /reg menu & give mé steam id or skype id (-_-)
test the new plugin ! If he not work wait spawner create another
Ayoub.nasr is offline
hichamera
Senior Member
Join Date: Feb 2014
Location: Algeria
Old 04-17-2014 , 12:01   Re: [HELP] Menu
Reply With Quote #23

Quote:
Originally Posted by Ayoub.nasr View Post
test the new plugin ! If he not work wait spawner create another
creat new ANd Im sOrrry
hichamera is offline
Send a message via Skype™ to hichamera
Spawner30
BANNED
Join Date: Dec 2013
Location: I Don't Know Yet
Old 04-17-2014 , 12:13   Re: [HELP] Menu
Reply With Quote #24

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

#include <amxmodx>
#include <cstrike>


#define MAX_MENU 22  
#define MAX_DISPLAY 8  
#define MAX_PAGES 3  

new g_nMenuPosition[33
new 
g_szMenuBodyMAX_MENU ][ ] = { 
"*DEFAULT*",
"*Sven Coop*",
"Aqua",
"Black",
"Blue",
"Brown",
"Forest Green",
"Gold",
"Gray",
"Green",
"Light Red",
"Maroon",
"Navy Blue",
"Orange",
"Pink",
"Purple",
"Red",
"Sea Green",
"Sky Blue",
"Teal",
"White",
"Yellow"
}

new 
g_szOptionsMAX_MENU ][ ] = {
"con_color 255+155+50",
"con_color 180+220+255",
"con_color 0+255+255",
"con_color 0+0+0",
"con_color 0+0+255",
"con_color 102+076+0",
"con_color 0+127+0",
"con_color 219+178+0",
"con_color 64+61+82",
"con_color 0+255+0",
"con_color 255+0+76",
"con_color 127+0+0",
"con_color 0+0+127",
"con_color 240+138+0",
"con_color 255+0+255",
"con_color 127+0+127",
"con_color 255+0+0",
"con_color 117+255+87",
"con_color 0+127+127",
"con_color 0+229+107",
"con_color 255+255+255",
"con_color 255+255+0"
}

// ===============================================================================
//     plugin_init
// ===============================================================================

public plugin_init()
{
    
register_plugin("Simple Menu""1.1""Spawner");
    
register_clcmd("chooseteam""ClCMD_ChooseTeam")
    
register_menucmd(register_menuid("Text Color Changer"),1023,"TextColorChoice")
}

// ===============================================================================
//     ClCMD_ChooseTeam - Called when you try to change your team.
// ===============================================================================

public ClCMD_ChooseTeam(id)
{
    new 
menu menu_create("\r|| \wZp Menu \r||","ClCMD_ChooseTeam_handler")
    
menu_additem(menu"Shop \w[ \rMenu \w]","1",0);
    
menu_additem(menu"Show Rank","2",0);
    
menu_additem(menu"ToP Players","3",0);
    
menu_addblank(menu,0)
    
menu_additem(menu"Chat Color \w[ \rMenu \w]","4",0);
    
menu_additem(menu"Register System","5",0);
    
menu_additem(menu"ChoosTeam \w[ \rMenu \w]","6",0);
    
menu_addblank(menu,0)
    
menu_additem(menu"Admin Menu","7",0,ADMIN_KICK);
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0);
    return 
PLUGIN_HANDLED
}

public 
ClCMD_ChooseTeam_handler(idmenuitem)
{
    new 
data[6], szName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
        
client_cmd(id,"say /shop")
        }
        case 
2:
        {
        
client_cmd(id,"say rank")
        }
        case 
3:
        {
        
client_cmd(id,"say /top15")
        }
        case 
4:
        {
        
TColor(id)
        }
        case 
5:
        {
        
client_cmd(id,"say /reg")
        }
        case 
6:
        {
        
TeamMenu (id)
        }
        case 
7:
        {
        
client_cmd(id,"say /shop")
        }
    }
}

// ===============================================================================
//     colormenu
// ===============================================================================
public TColor(id)
{
    
ShowMenuidg_nMenuPosition[id] = )
    return 
PLUGIN_HANDLED
}

public 
TextColorChoiceidkey )
{
    switch( 
key )
    {
        case 
8ShowMenuid, ++g_nMenuPosition[id] )
        case 
9ShowMenuid, --g_nMenuPosition[id] )
        default: 
client_cmdidg_szOptions[g_nMenuPosition[id] * key] )
    }
      return 
PLUGIN_HANDLED
}

public 
ShowMenuidpos )
{
    if ( 
pos ) return
    new 
i0
    
new nKeysnStartnEndnLen
    
new szMenuBody[512]
    
nStart pos 8
    
if ( nStart >= MAX_MENU )
    
nStart pos g_nMenuPosition[id] = 0
    nLen 
formatszMenuBody511"Text Color Changer - [%d/%d]^n^n"pos 1MAX_PAGES )
    
nEnd nStart MAX_DISPLAY
    nKeys 
= (1<<9)
    if ( 
nEnd MAX_MENU nEnd MAX_MENU
    
for ( nStartnEndi++ )
    {
        
nKeys |= (1<<j++)
        
nLen += formatszMenuBody[nLen], (511-nLen), "%d. %s^n"jg_szMenuBody[i] )
    }
    if ( 
nEnd != MAX_MENU )
    {
        
formatszMenuBody[nLen], (511-nLen), "^n9. MORE...^n0. %s"pos "BACK" "EXIT" )
        
nKeys |= (1<<8)
    }
    else 
formatszMenuBody[nLen], (511-nLen), "^n0. %s"pos "BACK" "EXIT" )
    
show_menuidnKeysszMenuBody, -)
}  


// ===============================================================================
//     TeamMenu
// ===============================================================================

public TeamMenu (id)
{
    new 
menu menu_create("|| Team Menu ||","Choosing")
    
menu_additem(menu"Counter-Terro","1",0);
    
menu_additem(menu"Terro","2",0);
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0);
    return 
PLUGIN_HANDLED
}

public 
Choosing(idmenuitem)
{
    new 
data[6], szName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
        
cs_set_user_teamidCS_TEAM_CT )
        }
        case 
2:
        {
        
cs_set_user_teamidCS_TEAM_T )
        }
    }

Spawner30 is offline
Send a message via Skype™ to Spawner30
hichamera
Senior Member
Join Date: Feb 2014
Location: Algeria
Old 04-17-2014 , 12:15   Re: [HELP] Menu
Reply With Quote #25

Quote:
Originally Posted by Spawner30 View Post
Untested !
PHP Code:
// Generated with v3x's AMXX Menu Generator

#include <amxmodx>
#include <cstrike>


#define MAX_MENU 22  
#define MAX_DISPLAY 8  
#define MAX_PAGES 3  

new g_nMenuPosition[33
new 
g_szMenuBodyMAX_MENU ][ ] = { 
"*DEFAULT*",
"*Sven Coop*",
"Aqua",
"Black",
"Blue",
"Brown",
"Forest Green",
"Gold",
"Gray",
"Green",
"Light Red",
"Maroon",
"Navy Blue",
"Orange",
"Pink",
"Purple",
"Red",
"Sea Green",
"Sky Blue",
"Teal",
"White",
"Yellow"
}

new 
g_szOptionsMAX_MENU ][ ] = {
"con_color 255+155+50",
"con_color 180+220+255",
"con_color 0+255+255",
"con_color 0+0+0",
"con_color 0+0+255",
"con_color 102+076+0",
"con_color 0+127+0",
"con_color 219+178+0",
"con_color 64+61+82",
"con_color 0+255+0",
"con_color 255+0+76",
"con_color 127+0+0",
"con_color 0+0+127",
"con_color 240+138+0",
"con_color 255+0+255",
"con_color 127+0+127",
"con_color 255+0+0",
"con_color 117+255+87",
"con_color 0+127+127",
"con_color 0+229+107",
"con_color 255+255+255",
"con_color 255+255+0"
}

// ===============================================================================
//     plugin_init
// ===============================================================================

public plugin_init()
{
    
register_plugin("Simple Menu""1.1""Spawner");
    
register_clcmd("chooseteam""ClCMD_ChooseTeam")
    
register_menucmd(register_menuid("Text Color Changer"),1023,"TextColorChoice")
}

// ===============================================================================
//     ClCMD_ChooseTeam - Called when you try to change your team.
// ===============================================================================

public ClCMD_ChooseTeam(id)
{
    new 
menu menu_create("\r|| \wZp Menu \r||","ClCMD_ChooseTeam_handler")
    
menu_additem(menu"Shop \w[ \rMenu \w]","1",0);
    
menu_additem(menu"Show Rank","2",0);
    
menu_additem(menu"ToP Players","3",0);
    
menu_addblank(menu,0)
    
menu_additem(menu"Chat Color \w[ \rMenu \w]","4",0);
    
menu_additem(menu"Register System","5",0);
    
menu_additem(menu"ChoosTeam \w[ \rMenu \w]","6",0);
    
menu_addblank(menu,0)
    
menu_additem(menu"Admin Menu","7",0,ADMIN_KICK);
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0);
    return 
PLUGIN_HANDLED
}

public 
ClCMD_ChooseTeam_handler(idmenuitem)
{
    new 
data[6], szName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
        
client_cmd(id,"say /shop")
        }
        case 
2:
        {
        
client_cmd(id,"say rank")
        }
        case 
3:
        {
        
client_cmd(id,"say /top15")
        }
        case 
4:
        {
        
TColor(id)
        }
        case 
5:
        {
        
client_cmd(id,"say /reg")
        }
        case 
6:
        {
        
TeamMenu (id)
        }
        case 
7:
        {
        
client_cmd(id,"say /shop")
        }
    }
}

// ===============================================================================
//     colormenu
// ===============================================================================
public TColor(id)
{
    
ShowMenuidg_nMenuPosition[id] = )
    return 
PLUGIN_HANDLED
}

public 
TextColorChoiceidkey )
{
    switch( 
key )
    {
        case 
8ShowMenuid, ++g_nMenuPosition[id] )
        case 
9ShowMenuid, --g_nMenuPosition[id] )
        default: 
client_cmdidg_szOptions[g_nMenuPosition[id] * key] )
    }
      return 
PLUGIN_HANDLED
}

public 
ShowMenuidpos )
{
    if ( 
pos ) return
    new 
i0
    
new nKeysnStartnEndnLen
    
new szMenuBody[512]
    
nStart pos 8
    
if ( nStart >= MAX_MENU )
    
nStart pos g_nMenuPosition[id] = 0
    nLen 
formatszMenuBody511"Text Color Changer - [%d/%d]^n^n"pos 1MAX_PAGES )
    
nEnd nStart MAX_DISPLAY
    nKeys 
= (1<<9)
    if ( 
nEnd MAX_MENU nEnd MAX_MENU
    
for ( nStartnEndi++ )
    {
        
nKeys |= (1<<j++)
        
nLen += formatszMenuBody[nLen], (511-nLen), "%d. %s^n"jg_szMenuBody[i] )
    }
    if ( 
nEnd != MAX_MENU )
    {
        
formatszMenuBody[nLen], (511-nLen), "^n9. MORE...^n0. %s"pos "BACK" "EXIT" )
        
nKeys |= (1<<8)
    }
    else 
formatszMenuBody[nLen], (511-nLen), "^n0. %s"pos "BACK" "EXIT" )
    
show_menuidnKeysszMenuBody, -)
}  


// ===============================================================================
//     TeamMenu
// ===============================================================================

public TeamMenu (id)
{
    new 
menu menu_create("|| Team Menu ||","Choosing")
    
menu_additem(menu"Counter-Terro","1",0);
    
menu_additem(menu"Terro","2",0);
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0);
    return 
PLUGIN_HANDLED
}

public 
Choosing(idmenuitem)
{
    new 
data[6], szName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
        
cs_set_user_teamidCS_TEAM_CT )
        }
        case 
2:
        {
        
cs_set_user_teamidCS_TEAM_T )
        }
    }

Press 7 Say /shop
Change Menu Team hhh So I change Team I don't SLAy i stay alive And change

Last edited by hichamera; 04-17-2014 at 12:23.
hichamera is offline
Send a message via Skype™ to hichamera
Spawner30
BANNED
Join Date: Dec 2013
Location: I Don't Know Yet
Old 04-17-2014 , 12:23   Re: [HELP] Menu
Reply With Quote #26

-_-
PHP Code:
#include <amxmodx>
#include <cstrike>


#define MAX_MENU 22  
#define MAX_DISPLAY 8  
#define MAX_PAGES 3  

new g_nMenuPosition[33
new 
g_szMenuBodyMAX_MENU ][ ] = { 
"*DEFAULT*",
"*Sven Coop*",
"Aqua",
"Black",
"Blue",
"Brown",
"Forest Green",
"Gold",
"Gray",
"Green",
"Light Red",
"Maroon",
"Navy Blue",
"Orange",
"Pink",
"Purple",
"Red",
"Sea Green",
"Sky Blue",
"Teal",
"White",
"Yellow"
}

new 
g_szOptionsMAX_MENU ][ ] = {
"con_color 255+155+50",
"con_color 180+220+255",
"con_color 0+255+255",
"con_color 0+0+0",
"con_color 0+0+255",
"con_color 102+076+0",
"con_color 0+127+0",
"con_color 219+178+0",
"con_color 64+61+82",
"con_color 0+255+0",
"con_color 255+0+76",
"con_color 127+0+0",
"con_color 0+0+127",
"con_color 240+138+0",
"con_color 255+0+255",
"con_color 127+0+127",
"con_color 255+0+0",
"con_color 117+255+87",
"con_color 0+127+127",
"con_color 0+229+107",
"con_color 255+255+255",
"con_color 255+255+0"
}

// ===============================================================================
//     plugin_init
// ===============================================================================

public plugin_init()
{
    
register_plugin("Simple Menu""1.1""Spawner");
    
register_clcmd("chooseteam""ClCMD_ChooseTeam")
    
register_menucmd(register_menuid("Text Color Changer"),1023,"TextColorChoice")
}

// ===============================================================================
//     ClCMD_ChooseTeam - Called when you try to change your team.
// ===============================================================================

public ClCMD_ChooseTeam(id)
{
    new 
menu menu_create("\r|| \wZp Menu \r||","ClCMD_ChooseTeam_handler")
    
menu_additem(menu"Shop \w[ \rMenu \w]","1",0);
    
menu_additem(menu"Show Rank","2",0);
    
menu_additem(menu"ToP Players","3",0);
    
menu_addblank(menu,0)
    
menu_additem(menu"Chat Color \w[ \rMenu \w]","4",0);
    
menu_additem(menu"Register System","5",0);
    
menu_additem(menu"ChoosTeam \w[ \rMenu \w]","6",0);
    
menu_addblank(menu,0)
    
menu_additem(menu"Admin Menu","7",0,ADMIN_KICK);
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0);
    return 
PLUGIN_HANDLED
}

public 
ClCMD_ChooseTeam_handler(idmenuitem)
{
    new 
data[6], szName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
        
client_cmd(id,"say /shop")
        }
        case 
2:
        {
        
client_cmd(id,"say rank")
        }
        case 
3:
        {
        
client_cmd(id,"say /top15")
        }
        case 
4:
        {
        
TColor(id)
        }
        case 
5:
        {
        
client_cmd(id,"say /reg")
        }
        case 
6:
        {
        
TeamMenu (id)
        }
        case 
7:
        {
        
client_cmd(id,"say /shop")
        }
    }
}

// ===============================================================================
//     colormenu
// ===============================================================================
public TColor(id)
{
    
ShowMenuidg_nMenuPosition[id] = )
    return 
PLUGIN_HANDLED
}

public 
TextColorChoiceidkey )
{
    switch( 
key )
    {
        case 
8ShowMenuid, ++g_nMenuPosition[id] )
        case 
9ShowMenuid, --g_nMenuPosition[id] )
        default: 
client_cmdidg_szOptions[g_nMenuPosition[id] * key] )
}
    return 
PLUGIN_HANDLED
}

public 
ShowMenuidpos )
{
    if ( 
pos ) return
    new 
i0
    
new nKeysnStartnEndnLen
    
new szMenuBody[512]
    
nStart pos 8
    
if ( nStart >= MAX_MENU )
    
nStart pos g_nMenuPosition[id] = 0
    nLen 
formatszMenuBody511"Text Color Changer - [%d/%d]^n^n"pos 1MAX_PAGES )
    
nEnd nStart MAX_DISPLAY
    nKeys 
= (1<<9)
    if ( 
nEnd MAX_MENU nEnd MAX_MENU
    
for ( nStartnEndi++ )
    {
        
nKeys |= (1<<j++)
        
nLen += formatszMenuBody[nLen], (511-nLen), "%d. %s^n"jg_szMenuBody[i] )
    }
    if ( 
nEnd != MAX_MENU )
    {
        
formatszMenuBody[nLen], (511-nLen), "^n9. MORE...^n0. %s"pos "BACK" "EXIT" )
        
nKeys |= (1<<8)
    }
    else 
formatszMenuBody[nLen], (511-nLen), "^n0. %s"pos "BACK" "EXIT" )
    
show_menuidnKeysszMenuBody, -)
}  


// ===============================================================================
//     TeamMenu
// ===============================================================================

public TeamMenu (id)
{
    new 
menu menu_create("|| Team Menu ||","Choosing")
    
menu_additem(menu"Counter-Terro","1",0);
    
menu_additem(menu"Terro","2",0);
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0);
    return 
PLUGIN_HANDLED
}

public 
Choosing(idmenuitem)
{
    new 
data[6], szName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,charsmax(data), szName,charsmax(szName), callback);
    new 
key str_to_num(data);
    switch(
key)
    {
        case 
1:
        {
        
cs_set_user_teamidCS_TEAM_CT )
        }
        case 
2:
        {
        
cs_set_user_teamidCS_TEAM_T )
        }
    }

Spawner30 is offline
Send a message via Skype™ to Spawner30
hichamera
Senior Member
Join Date: Feb 2014
Location: Algeria
Old 04-17-2014 , 12:28   Re: [HELP] Menu
Reply With Quote #27

Tnkx a lot hh but PLugin have bug ://///
Change Menu Team hhh So I change Team I'm not Dead i stay alive And change
hichamera is offline
Send a message via Skype™ to hichamera
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 04-17-2014 , 13:15   Re: [HELP] Menu
Reply With Quote #28

I think he wants colorchat, not con_color.. But i could be wrong
__________________
PM me for private work.



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

The Problem Is Change Menu Team hhh So I change Team I'm not Dead i stay alive And change
hichamera is offline
Send a message via Skype™ to hichamera
Spawner30
BANNED
Join Date: Dec 2013
Location: I Don't Know Yet
Old 04-17-2014 , 13:36   Re: [HELP] Menu
Reply With Quote #30

Add This
PHP Code:
client_cmd(id,"kill"
Spawner30 is offline
Send a message via Skype™ to Spawner30
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