Raised This Month: $ Target: $400
 0% 

Using connected players menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bibu
Veteran Member
Join Date: Sep 2010
Old 03-28-2011 , 16:19   Using connected players menu
Reply With Quote #1

In my plugin, I have some submenus where you can afterwards select a player, I've done it like that:

PHP Code:
public SomeMenu(id)
{
    new 
menu menu_create("something""menu_handler_something")
    
    new 
players[32], pnum
    
    
new szName[32], szTempid[10]
    
get_players(playerspnum)
    
    for(new 
ii<pnum;i++)
    {
        
tempid players[i]
        
        
get_user_name(tempidszName31)
        
num_to_str(tempidszTempid9)
        
menu_additem(menuszNameszTempid0)
    }
    
menu_display(idmenu0)

Now, is there a possibility to just use one menu like that, except, that I can change individual the title of the menu and also the key handler stuff for sure.
bibu 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 14:39.


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