Raised This Month: $ Target: $400
 0% 

Menu Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-16-2011 , 18:06   Re: Menu Help
Reply With Quote #2

PHP Code:
public Menu(Client)
{
    new 
Title[32]
    
formatex(Titlecharsmax(Title), "%L"LANG_SERVER"MENU TITTLE")
    new 
pPlayerMenu menu_create(Title"pPlayerMenuHandler")

    new 
Name[32], Tempid[10]

    new 
iPlayers[32], iNumiPlayer
    get_players
(iPlayersiNum"ch")

    for(new 
iiNumi++)
    {
        
iPlayer iPlayers[i]
        if(
iPlayer == Client || is_user_admin(iPlayer) || get_user_team(Client) != get_user_team(iPlayer))
            continue

        
get_user_name(iPlayerNamecharsmax(Name))
        
num_to_str(iPlayerTempidcharsmax(Tempid))

        
menu_additem(pPlayerMenuNameTempid0)
    }

    
menu_setprop(pPlayerMenuMPROP_BACKNAME"Voltar")
    
menu_setprop(pPlayerMenuMPROP_NEXTNAME"Proximo")
    
menu_setprop(pPlayerMenuMPROP_EXITNAME"Sair")

    
menu_display(ClientpPlayerMenu0)
    return 
PLUGIN_HANDLED

I'm guessing your lang key won't work.
__________________

Last edited by fysiks; 12-16-2011 at 18:06.
fysiks 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 20:49.


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