Raised This Month: $ Target: $400
 0% 

Last Choosen Weapon Menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
m4m3ts
Senior Member
Join Date: Jun 2012
Old 05-12-2013 , 23:46   Last Choosen Weapon Menu
Reply With Quote #1

i have a simple weapon menu:

PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init()
{
    
RegisterHam(Ham_Spawn"player""PlayerSpawn"1);
    
register_clcmd("say xp""MyMenu")
}

public 
PlayerSpawn(id)
{
    
client_cmd(id"say xp")
}
public 
MyMenu (id)
{
    new 
menu menu_create("Weapon Menu","menu_handler")
    
menu_additem(menu"Skull4","1",0);
    
menu_additem(menu"Skulllss4","2",0);
    
menu_additem(menu"Skoll4","3",0);
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0);
    return 
PLUGIN_HANDLED
}

public 
menu_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"skull4")
        }
        case 
2:
        {
                
client_cmd(id"say OK")
        }
        case 
3:
        {
                
client_cmd(id"say Yes")
        }
    }

I've trouble creating Previous Setup menu, in weapon menu.
can someone help me creating it in my menu ??

I want like CSDM Gun menu:
-----------------------------------------
1. New Weapons
2. Previous Setup
3. Don't Show this menu again.

Type /guns to enable this menu again
-----------------------------------------

thanks b4....
Attached Files
File Type: sma Get Plugin or Get Source (Skull-4_2.sma - 488 views - 817 Bytes)

Last edited by m4m3ts; 05-12-2013 at 23:48.
m4m3ts is offline
 



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 16:21.


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