Raised This Month: $ Target: $400
 0% 

Menu add


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 01-07-2013 , 14:52   Menu add
Reply With Quote #1

Okay so this code shows all players on the server
something like this:
1. name
2. name

and i want to do the player who open the menu name red
and the others grey.
And i want to add text behind there names that telling them there precent
Code:
new percent = 100 * earned/total
like this
1. name [%i] Done
2. name [%i] Done

how can i do that??

Code:
    new iMenu = menu_create("\rPERCENT PLAYER MENU", "handlePlayerMenu");
   
    new iPlayers[32], iNum, iPlayer, szName[32], szKey[3];
    get_players(iPlayers, iNum);
   
    for( new i; i < iNum; i++ )
    {
        iPlayer = iPlayers[i];
        get_user_name(iPlayer, szName, charsmax(szName));
        num_to_str(iPlayer, szKey, charsmax(szKey));
        menu_additem(iMenu, szName, szKey);
    }
   
    menu_setprop(iMenu, MPROP_EXITNAME, "Back");
    menu_display(id, iMenu, 0);
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
 


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 13:25.


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