Raised This Month: $ Target: $400
 0% 

Menu Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-16-2011 , 17:34   Menu Help
Reply With Quote #1

PHP Code:
public Menu(Client)
{
    new 
Title[32]
    
formatex(Title,charsmax(Title),"%L",LANG_SERVER,"MENU TITTLE")
    new 
Users menu_create(Title,"UsersHandler")
    
    new 
Name[32],Tempid[10]
    
    new 
iPlayers[32],iNum
    get_players
(iPlayers,iNum,"ch")
    
    for(new 
iiNumi++)
    {
        if(
iPlayers[i] == Client || is_user_admin(iPlayers[i])) continue 
        
        
get_user_name(iPlayers[i],Name,charsmax(Name))
        
num_to_str(iPlayers[i],Tempid,charsmax(Tempid))
        
        
menu_additem(Users,Name,Tempid,0)
        
menu_setprop(UsersMPROP_BACKNAME"Voltar")
        
menu_setprop(UsersMPROP_NEXTNAME"Proximo")
        
menu_setprop(UsersMPROP_EXITNAME"Sair")  
    }
    
menu_display(Client,Users,0)
    return 
PLUGIN_HANDLED

I need the menu to show only players on the same team.
__________________

Last edited by kramesa; 12-16-2011 at 17:34.
kramesa is offline
 


Thread Tools
Display Modes

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 20:49.


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