Raised This Month: $110 Target: $400
 27% 

Help! Wanna add a menu items with specials weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
strigl10
Member
Join Date: Oct 2012
Old 03-08-2021 , 20:49   Help! Wanna add a menu items with specials weapons
Reply With Quote #1

Hi, how are you all? I got a doubt here...On my server there's some items where you can buy things on the say or console, for example: say>bizon(typed) or directly on console typing the item's name. I want to add a buy menu where you can find the weapons I've added (the new one, not cs default) Could be possible to do that?
strigl10 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-08-2021 , 22:12   Re: Help! Wanna add a menu items with specials weapons
Reply With Quote #2

Talk to us in code. A vague explanation won't do it.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
strigl10
Member
Join Date: Oct 2012
Old 03-08-2021 , 22:19   Re: Help! Wanna add a menu items with specials weapons
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
Talk to us in code. A vague explanation won't do it.
Without handling any programming language, therefore, I would not know how to express it in the form of code
strigl10 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-09-2021 , 08:08   Re: Help! Wanna add a menu items with specials weapons
Reply With Quote #4

Without posting the plugin(s) you're using at the moment, we would not know how to (help you) edit them.
How do we make a menu of something that doesn't exist?

Last edited by OciXCrom; 03-09-2021 at 08:09.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
strigl10
Member
Join Date: Oct 2012
Old 03-11-2021 , 22:47   Re: Help! Wanna add a menu items with specials weapons
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
Without posting the plugin(s) you're using at the moment, we would not know how to (help you) edit them.
How do we make a menu of something that doesn't exist?
De esta manera, saludos!
PHP Code:
#include <amxmodx>

#define PLUGIN  "Menu de Comandos"
#define VERSION "1.1"
#define AUTHOR  "[N]drs"

enum _:Items_Info
{
    
ITEM_NAME[32],
    
ITEM_CMD[32]
}

// El Ășltimo item no debe llevar coma
new const Items[][Items_Info] = {
    {
"Comprar R8 Resolver""say r8"},
    {
"Comprar CZ75""say cz75"},
    {
"Comprar P2000""p2000"},
    {
"Comprar Zeus""zeus"},
    {
"Comprar Bizon""say bizon"},
    {
"Comprar Mag7 CT""say mag7"},
    {
"Comprar sawedoff TT""say sawedoff"},
    {
"Comprar Escopeta KSG CT""ksg"},
    {
"Comprar Sniper No""awpns"},
    {
"Comprar Rifle TT""whitedeath"},
    {
"Comprar MP5 GO""say mp5sd"},
    {
"Comprar MiniGun""say /minigun"},
    {
"Comprar Zeasdus""zesdaus"}
    
    
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("nightvision""menu")
}

public 
menu(id)
{
    new 
iMenu menu_create("\wArmas Especiales: [USP] \r[\yv1.0\r]""handler_menu")

    for(new 
isizeof(Items) - 1i++)
        
menu_additem(iMenuItems[i][ITEM_NAME])

    
menu_display(idiMenu)

    return 
PLUGIN_HANDLED
}

public 
handler_menu(idiMenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_destroy(iMenu)
        return 
PLUGIN_HANDLED
    
}

    
client_cmd(id"%s"Items[item][ITEM_CMD])

    
menu_destroy(iMenu)
    return 
PLUGIN_HANDLED

strigl10 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-12-2021 , 08:53   Re: Help! Wanna add a menu items with specials weapons
Reply With Quote #6

So your problem is solved?
OciXCrom is offline
Send a message via Skype™ to OciXCrom
North_Fiv3
Junior Member
Join Date: Mar 2021
Old 03-12-2021 , 12:43   Re: Help! Wanna add a menu items with specials weapons
Reply With Quote #7

As I see he don't want to replace these new weapons with the standard cs 1.6 weapons, he wants to add these new weapons separated

OciXCrom need the source of the weapons, not the menu source

Last edited by North_Fiv3; 03-12-2021 at 12:47.
North_Fiv3 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 19:55.


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