Raised This Month: $ Target: $400
 0% 

[Need Help] with statxs' colorfix.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zippel
Member
Join Date: Mar 2011
Location: RF
Old 04-29-2011 , 06:13   [Need Help] with statxs' colorfix.
Reply With Quote #1

For example I need to remake output information of /rank.
But I can't do it :'-(
Plz, help me to rewrite the code so that when you type the command /rank you can see colorful statistics.

Code:
public cmdRank(id)
{
    if (!SayRank)
    {
        client_print(id, print_chat, "%L", id, "DISABLED_MSG")
        return PLUGIN_HANDLED
    }

    new izStats[8], izBody[8]
    new iRankPos, iRankMax
    new Float:fEff, Float:fAcc
    
    iRankPos = get_user_stats(id, izStats, izBody)
    iRankMax = get_statsnum()
    
    fEff = effec(izStats)
    fAcc = accuracy(izStats)
    
    client_print(id, print_chat, "%L", id, "YOUR_RANK_IS", iRankPos, iRankMax, izStats[STATS_KILLS], izStats[STATS_HITS], fEff, fAcc)
    
    return PLUGIN_CONTINUE
}
Quote:
mult:
Your rank is %d of %d with %d kill(s), %d hit(s), %0.2f%% eff. and %0.2f%% acc.
zippel is offline
Send a message via ICQ to zippel Send a message via Skype™ to zippel
 



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 04:22.


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