Raised This Month: $ Target: $400
 0% 

[HOW]Create Menu?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
McChillerDomi
Member
Join Date: Jun 2014
Location: United Kingdom
Old 07-18-2014 , 07:18   [HOW]Create Menu?
Reply With Quote #1

Hey How i can Create a Menu?
McChillerDomi is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-18-2014 , 07:26   Re: [HOW]Create Menu?
Reply With Quote #2

There are a few tutorials for this subject, search
__________________
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
McChillerDomi
Member
Join Date: Jun 2014
Location: United Kingdom
Old 07-18-2014 , 08:36   Re: [HOW]Create Menu?
Reply With Quote #3

What i will search?
McChillerDomi is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-18-2014 , 08:42   Re: [HOW]Create Menu?
Reply With Quote #4

Try 'menu' in the wiki and the tutorial sections
__________________
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
McChillerDomi
Member
Join Date: Jun 2014
Location: United Kingdom
Old 07-18-2014 , 09:00   Re: [HOW]Create Menu?
Reply With Quote #5

can't find what i search :/
McChillerDomi is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-18-2014 , 09:03   Re: [HOW]Create Menu?
Reply With Quote #6

Really? Are you sure you even searched?

https://forums.alliedmods.net/search...ax=0&userid=0&

https://wiki.alliedmods.net/index.ph...3ASearch&go=Go
__________________
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).

Last edited by YamiKaitou; 07-18-2014 at 09:04.
YamiKaitou is offline
McChillerDomi
Member
Join Date: Jun 2014
Location: United Kingdom
Old 07-18-2014 , 09:06   Re: [HOW]Create Menu?
Reply With Quote #7

Yes i have seen this page but i can't see add commands... /:


i will make my menu you know what i mean!

Last edited by McChillerDomi; 07-18-2014 at 09:13.
McChillerDomi is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-18-2014 , 09:18   Re: [HOW]Create Menu?
Reply With Quote #8

Start reading the appropriate threads, they give you an idea of what to do
__________________
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
McChillerDomi
Member
Join Date: Jun 2014
Location: United Kingdom
Old 07-18-2014 , 09:20   Re: [HOW]Create Menu?
Reply With Quote #9

Ohman Forget it -.-
McChillerDomi is offline
McChillerDomi
Member
Join Date: Jun 2014
Location: United Kingdom
Old 07-18-2014 , 09:31   Re: [HOW]Create Menu?
Reply With Quote #10

YamiKaitou

I have this code ^^( ͡° ͜ʖ ͡°)

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

#include <amxmodx>

public plugin_init()
{
    register_plugin("Plugin_Show", "1.0", "|>Domi<|");
    register_clcmd("say /plugins", "ShowMenu", _, "");
}

public ShowMenu(id)
{
    new menu = menu_create("Plugin_Show", "mh_MyMenu");

    menu_additem(menu, "Roll-The-Dice", "", 0); // case 0

    menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);

    menu_display(id, menu, 0);

    return PLUGIN_HANDLED;
}

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

    new command[6], name[64], access, callback;

    menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);

    switch(item)
    {
        case 0: client_print(id, print_chat, "You have selected Roll-The-Dice");
    }

    menu_destroy(menu);

    return PLUGIN_HANDLED;
}
So how i can make now Player Print in chat /rs?
McChillerDomi is offline
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 13:18.


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