Raised This Month: $ Target: $400
 0% 

Help Me In My MENU!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
izzle
Senior Member
Join Date: Aug 2009
Old 10-23-2009 , 19:32   Re: Help Me In My MENU!
Reply With Quote #6

for players:
PHP Code:
public PlayersMenu(id)
 {
    new 
menu menu_create("Player menu!:""menu_handler");
    new 
players[32], pnumtempid;
    new 
szName[32], szTempid[10];
    
get_players(playerspnum);
    for( new 
ii<pnumi++ )
    {

        
tempid players[i];
        
get_user_name(tempidszName31);
        
num_to_str(tempidszTempid9);
        
menu_additem(menuszNameszTempid0);
    }
    
menu_display(idmenu0);
 }
 public 
menu_handler(idmenuitem)
 {
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }

    new 
data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);

    new 
tempid str_to_num(data);

    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;
 } 
izzle 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 17:32.


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