Raised This Month: $ Target: $400
 0% 

Handle Menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 04-19-2013 , 10:07   Re: Handle Menu
Reply With Quote #8

PHP Code:
public Music_Options(idmenuitem)
{
    if (
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    new 
info[3], name[64]
    new 
accesscallback
    menu_item_getinfo
(menuitemaccessinfo2name63callback)
    
    new 
key str_to_num(info)
    
    if(
key == 1)
    {
        
client_cmd(id"mp3 stop")
        
menu_display(idmenu0)
    }
    
        
    else
    {
        new 
szSongName[64]
        
TrieGetString(g_tSongsnameszSongName63)
        
client_cmd(id"mp3 play %s"szSongName)
        
        
menu_display(idmenu2)
    }
    
    return 
PLUGIN_CONTINUE

Ps. Post menu_create pages its help us to see a number of pages in menu. or complete code by preference.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 04-19-2013 at 10:08.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
 



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 10:50.


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