Raised This Month: $ Target: $400
 0% 

[Need Help] with statxs' colorfix.


Post New Thread Reply   
 
Thread Tools Display Modes
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
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-29-2011 , 06:15   Re: [Need Help] with statxs' colorfix.
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=94960
__________________
Arkshine is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 04-29-2011 , 06:24   Re: [Need Help] with statxs' colorfix.
Reply With Quote #3

http://forums.alliedmods.net/showthr...ight=colorchat

PHP Code:
 
  client_print_color
(idGREEN,  "%L"id"YOUR_RANK_IS"iRankPosiRankMaxizStats[STATS_KILLS], izStats[STATS_HITS], fEfffAcc
.Dare Devil. is offline
zippel
Member
Join Date: Mar 2011
Location: RF
Old 04-29-2011 , 06:39   Re: [Need Help] with statxs' colorfix.
Reply With Quote #4

Quote:
Quote:
Originally Posted by .Dare Devil. View Post
http://forums.alliedmods.net/showthr...ight=colorchat

PHP Code:
 
  client_print_color
(idGREEN,  "%L"id"YOUR_RANK_IS"iRankPosiRankMaxizStats[STATS_KILLS], izStats[STATS_HITS], fEfffAcc
Quote:
Originally Posted by Arkshine View Post
I've explored these topics, but didn't come to the final version. And tried many different ways, using both headers - no avail.

Last edited by zippel; 04-29-2011 at 06:46.
zippel is offline
Send a message via ICQ to zippel Send a message via Skype™ to zippel
zippel
Member
Join Date: Mar 2011
Location: RF
Old 04-29-2011 , 06:44   Re: [Need Help] with statxs' colorfix.
Reply With Quote #5

Quote:
Originally Posted by .Dare Devil. View Post

Code:
client_print_color(id, GREEN,  "%L", id, "YOUR_RANK_IS", iRankPos, iRankMax, izStats[STATS_KILLS], izStats[STATS_HITS], fEff, fAcc)
I can make a line in one color.
However, I would like to learn how to make them loose.
zippel is offline
Send a message via ICQ to zippel Send a message via Skype™ to zippel
Reply



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