AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HOW]Create Menu? (https://forums.alliedmods.net/showthread.php?t=244428)

McChillerDomi 07-18-2014 07:18

[HOW]Create Menu?
 
Hey How i can Create a Menu?

YamiKaitou 07-18-2014 07:26

Re: [HOW]Create Menu?
 
There are a few tutorials for this subject, search

McChillerDomi 07-18-2014 08:36

Re: [HOW]Create Menu?
 
What i will search?

YamiKaitou 07-18-2014 08:42

Re: [HOW]Create Menu?
 
Try 'menu' in the wiki and the tutorial sections

McChillerDomi 07-18-2014 09:00

Re: [HOW]Create Menu?
 
can't find what i search :/

YamiKaitou 07-18-2014 09:03

Re: [HOW]Create Menu?
 
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

McChillerDomi 07-18-2014 09:06

Re: [HOW]Create Menu?
 
Yes i have seen this page but i can't see add commands... /:


i will make my menu you know what i mean! :(

YamiKaitou 07-18-2014 09:18

Re: [HOW]Create Menu?
 
Start reading the appropriate threads, they give you an idea of what to do

McChillerDomi 07-18-2014 09:20

Re: [HOW]Create Menu?
 
Ohman Forget it -.-

McChillerDomi 07-18-2014 09:31

Re: [HOW]Create Menu?
 
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?


All times are GMT -4. The time now is 13:18.

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