Raised This Month: $ Target: $400
 0% 

Help edit top rank


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 07-15-2014 , 13:21   Help edit top rank
Reply With Quote #1

Can someone fix that code?

It shows me the list of players on the server, and then I click on it it will show me the details of his
Kills + online time + deaths

change the Your rank to szName stats is

I edited the code and did I do /top
I will show players list and then show me the names and I will press and show me their data by the image.
https://forums.alliedmods.net/showpo...73&postcount=5

Code:
public CmdPlayerMenu( client )
{
        new szMenu[ 64 ];
       
        formatex( szMenu, charsmax( szMenu ), "\yPlayers Stats\w Menu");
       
        new iMenu = menu_create( szMenu, "SubPlayerMenu" );
       
        new players[ 32 ], pnum, tempid, szTempid[ 10 ];
       
        get_players( players, pnum );
       
        for( new i ; i < pnum; i++ )
        {
                tempid = players[ i ];
               
                num_to_str(tempid, szTempid, charsmax(szTempid));
               
       formatex(szMenu, charsmax(szMenu),  "\r%s \wStats",szName( tempid ))
               
                menu_additem( iMenu, szMenu, szTempid, 0 );
        }
       
        menu_display( client, iMenu );
}

public SubPlayerMenu( client, iMenu, Item )

stock szName( const index )
{
    static Name[ 32 ];
    
    get_user_name( index, Name, charsmax( Name ) );
    
    return Name;
}

Last edited by Snitch; 07-15-2014 at 13:22.
Snitch is offline
Send a message via Skype™ to Snitch
 


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 21:17.


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