Raised This Month: $ Target: $400
 0% 

Store Weapon Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
victorngl
Member
Join Date: Feb 2011
Old 12-19-2011 , 18:07   Store Weapon Help
Reply With Quote #1

I need help with the menu.
I need him to save the previous weapons
if someone could help me.




PHP Code:
public first(id)  
{  
    new 
menu menu_create("\yPrimary Weapons:""first_handle")  
    
menu_additem(menu"\wNew weapons""1"0)  
    
menu_additem(menu"\wLast weapons""2"0)  
      
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)  

    
menu_display(idmenu0)  
      
}  
public 
first_handle(idmenuitem)  
{  
    if (
item == MENU_EXIT)  
    {  
        
menu_destroy(menu)  
        return 
PLUGIN_HANDLED  
    
}  
    new 
data[6], iName[64]  
    new 
accesscallback  
    menu_item_getinfo
(menuitemaccessdata,5iName63callback)  
    new 
key str_to_num(data)  
    switch(
key)  
    {  
        case 
1:{  
                
second(id
        }  
        case 
2:{  
                         !!!!!!!!!!!!!!!!!!                 !!!!!!!!!!!!!!!!! 
              !!!!!!!!!!!!!!!!  
That STORED WEAPON ://///// !!!!!!!!!!!! 
        
}  
    }      
    
menu_destroy(menu)  
    return 
PLUGIN_HANDLED  

public 
second(id)  
{  
    new 
menu menu_create("\yPrimary Weapons:""second_handle")  
    
menu_additem(menu"\wAK47""1"0)  
    
menu_additem(menu"\wM4A1""2"0)  
      
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)  

    
menu_display(idmenu0)  
      
}  
public 
second_handle(idmenuitem)  
{  
    if (
item == MENU_EXIT)  
    {  
        
menu_destroy(menu)  
        return 
PLUGIN_HANDLED  
    
}  
    new 
data[6], iName[64]  
    new 
accesscallback  
    menu_item_getinfo
(menuitemaccessdata,5iName63callback)  
    new 
key str_to_num(data)  
    switch(
key)  
    {  
        case 
1:{  
                
give_item(AK47-EXAMPLE)  
        }  
        case 
2:{  
                
give item(M4a1-EXAMPLE)  
        }  
    }      
    
menu_destroy(menu)  
    return 
PLUGIN_HANDLED  


Last edited by victorngl; 12-20-2011 at 00:50.
victorngl is offline
Send a message via MSN to victorngl Send a message via Skype™ to victorngl
 



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 11:46.


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