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.
|