This was the most easy solution that i could find, but then i don't know what to do to modify top15
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()
new TestingPos = (iRankMax - iRankPos) + 1
fEff = effec(izStats)
fAcc = accuracy(izStats)
client_print(id, print_chat, "* %L", id, "YOUR_RANK_IS", TestingPos, iRankMax, izStats[STATS_KILLS], izStats[STATS_HITS], fEff, fAcc)
return PLUGIN_CONTINUE
}
But now the problem is that when 2 players have the same frags, the better is showed last.
John = 1 dead 1 kill 100eff
Paul = 1 dead 1 kill 50eff
Paul rank showed with my script is 1, and john 2.
It is possible that stats arent showed in negative numbers, but are counted like negative?? because what i'm thinking is that i could multiply frags * 2 and make it positive, somebody can tell me how i can multply frags?