Hey, I made a small plugin, at first, but we managed to arrange plugin. I want to be in the middle. With me not care if I can arrange one, thanks.
Script:
Code:
format_top10(sBuffer[2048])
{
new iMax = get_statsnum()
new izStats[8], izBody[8], t_sName[32]
new iLen = 0
if (iMax > 10)
{
iMax = 10;
}
iLen = format(sBuffer, 2047, "<center><body bgcolor=#000000><font color=#FFFFFF size=4 face=helvetica><pre>")
iLen += format(sBuffer[iLen], 2047 - iLen, "%2s %22s %6s %6s %4s^n", "[Rank]", "[Nume]", "[Ucideri]", "[Decesuri]", "[HS]")
for (new i = 0; i < iMax && 2047 - iLen > 0; i++)
{
get_stats(i, izStats, izBody, t_sName, 31)
replace_all(t_sName, 31, "<", "[")
replace_all(t_sName, 31, ">", "]")
iLen += format(sBuffer[iLen], 2047 - iLen, "%-4.2d %22s %5.6d %6d %4d^n", i + 1, t_sName, izStats[0], izStats[1], izStats[2])
}
}
public cmdTop10(id)
{
format_top10(g_sBuffer)
show_motd(id, g_sBuffer, "Top 10")
client_cmd(id,"spk ^"vox/deeoo user status^"")
return PLUGIN_CONTINUE
}
Thank you, a good day.