Raised This Month: $ Target: $400
 0% 

[REQ]/[Help] In Custom /menu Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jeremyjohn
BANNED
Join Date: Jun 2009
Location: Malaysia
Old 04-13-2010 , 00:21   [REQ]/[Help] In Custom /menu Plugin
Reply With Quote #1

Hi, is there any small coding to do this?:

When Players Say /menu, CT Say /menu or T Say /menu this will options appear:

============================================= =========
1 "Buy A Golden AK47" which execute "Say /goldenak"
2 "Buy A MiniGun" which execute "Say /minigun"
3 "Buy A Helicopter" which execute "amx_apache"
4 "Destroy Your Helicopter" which execute "amx_destroyapache"
5 "Buy A Parachute" which execute "Say /buy_parachute"
6 "Sell Your Parachute" which execute "Say /sell_parachute"
7 "Buy A Jet Pack" which execute "Say /bjp"
8 "Buy A Jumppack" which execute "Say /buyjumppack"

Page 2:
1 "Re-Enable Your Buy Menu For CSDM" which execute "Say /guns"
2 "Give Me Free $16000" which execute "Say /moneyme"
3 "Help Menu" which execute "Say /help"


9 "Rules" which then open a help.txt file in the configs
0 "Exit" Then Exit This Menu
============================================= =========

Really need this urgent.

Thanks
jeremyjohn is offline
Send a message via MSN to jeremyjohn
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 04-13-2010 , 03:28   Re: [REQ]/[Help] In Custom /menu Plugin
Reply With Quote #2

try this

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Menu stuff"
#define VERSION "1.0"
#define AUTHOR "Drekes"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /menu""menu")
    
register_clcmd("say_team /menu""menu")
}

public 
menu(id
{
    new 
menu menu_create("Buy menu""menu_handler");
    
    
menu_additem(menu"Buy A Golden AK47""1");
    
menu_additem(menu"Buy A minigun""2");
    
menu_additem(menu"Buy A Helicopter""3");
    
menu_additem(menu"Destroy Your Helicopter""4");
    
menu_additem(menu"Buy A Parachute""5");
    
menu_additem(menu"Sell Your Parachute""6");       
    
menu_additem(menu"Buy Jet Pack""7");
    
menu_additem(menu"Buy A Jumppack""8");
    
menu_additem(menu"Reenable guns menu""9");
    
menu_additem(menu"Give Me Free $16000""10");
    
menu_additem(menu"Help Menu""11");

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_display(idmenu);
}

public 
menu_handler(idmenuitem)
{    
    if(
item == MENU_EXIT)
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    new 
data[6], szName[64];
    new 
accesscallback;
     
    
menu_item_getinfo(menuitemaccessdata,5szName63callback);
    new 
key str_to_num(data);

    switch(
key)
    {
        case 
1:
        {
            
client_cmd(id"say /goldenak")
        }
        
        case 
2:
        {
            
client_cmd(id"say /minigun")
        }
        
        case 
3:
        {
            
client_cmd(id"amx_apache")
        }
        
        case 
4:
        {
            
client_cmd(id"amx_destroyapache")
        }
        
        case 
5:
        {
            
client_cmd(id"say /buyparachute")
        }
        
        case 
6:
        {
            
client_cmd(id"say /sellparachute")
        }
        
        case 
7:
        {
            
client_cmd(id"say bjp")
        }
        
        case 
8:
        {
            
client_cmd(id"say /buyjumppack")
        }
        
        case 
9:
        {
            
client_cmd(id"say /guns")
        }
        
        case 
10:
        {
            
client_cmd(id"say /moneyme")
        }
        
        case 
11:
        {
            
client_cmd(id"say /help")
        }
    }
    return 
PLUGIN_HANDLED

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 04-14-2010 , 08:12   Re: [REQ]/[Help] In Custom /menu Plugin
Reply With Quote #3

Thats good ))
__________________
dj_freeze is offline
Send a message via Skype™ to dj_freeze
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 04-14-2010 , 15:38   Re: [REQ]/[Help] In Custom /menu Plugin
Reply With Quote #4

Come on... I made this less than 2 days ago. Search before you post.

http://forums.alliedmods.net/showthread.php?t=123990
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 04-14-2010 , 15:39   Re: [REQ]/[Help] In Custom /menu Plugin
Reply With Quote #5

sorry wrecked, i did'nt search either.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 00:32.


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