Raised This Month: $ Target: $400
 0% 

How to add?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pacheco
Senior Member
Join Date: Jul 2011
Old 06-19-2012 , 17:27   How to add?
Reply With Quote #1

Hey, how to add in menu of all players connected, one message of logged or not logged (of register system) in front the nick?
Example:

Select the Player:

1. Player One [Logged]
2. Player Two [Logged]
3. Player Three [Not Logged]
4. Player Four [Logged]
[ ... ]

I have one code:
PHP Code:
public Players_Menu(id)
{
    new 
menu menu_create("\rSelect the Player:""menu_handler");

    new 
players[32], pnumtempid;
    new 
szName[32], szTempid[10];
    
get_players(playerspnum);

    for( new 
ii<pnumi++ )
    {
        
tempid players[i];

        
get_user_name(tempidszNamecharsmax(szName));
        
num_to_str(tempidszTempidcharsmax(szTempid));

        
menu_additem(menuszNameszTempid0); // Here, how to add??   g_is_logged[tempid] == true ? "\r[Logged In]" : "\r[Not Logged]")
        // Example: 1. Player One [Logged In]
             // 2. Player Two [Logged In]
            // 3. Player Three [Not Logged]
    
}
    
menu_display(idmenu0);

* From here: http://forums.alliedmods.net/showthread.php?t=46364
Thanks to all! ;)
__________________



pacheco 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 06:09.


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