Код
public ProTop_show(id)
{
new buffer[2048], len, name[32]
len = formatex(buffer, 2047, "<body bgcolor=#3399FF><table width=100%% cellpadding=2 cellspacing=0 border=0>")
len += formatex(buffer[len], 2047-len, "<tr align=center bgcolor=#0052FF><th width=5%%> # <th width=45%% align=center> Player <th width=30%%> Time <th width=20%%> Weapon ")
for (new i = 0; i < 10; i++)
{
name = Pro_Names[i]
if( Pro_Times[i] > 9999999.0 )
{
len += formatex(buffer[len], 2047-len, "<tr align=center%s><td> %d <td align=center> %s <td> %s <td> %s", ((i%2)==0) ? " bgcolor=#5DA5FF" : " bgcolor=#3399FF", (i+1), "", "", "")
}
else
{
new minutos, Float:segundos
minutos = floatround(Pro_Times[i], floatround_floor)/60
segundos = Pro_Times[i] - (60*minutos)
len += formatex(buffer[len], 2047-len, "<tr align=center%s><td> %d <td align=center> %s <td> <b>%02d:%s%.2f <td> %s", ((i%2)==0) ? " bgcolor=#5DA5FF" : " bgcolor=#3399FF", (i+1), Pro_Names[i], minutos, segundos < 10 ? "0" : "", segundos, Pro_Date[i])
}
}
len += formatex(buffer[len], 2047-len, "</table></body>")
len += formatex(buffer[len], 2047-len, "<tr><Center><b><BR>Plugin created by p4ddY & nucLeaR")
show_motd(id, buffer, "Pro10 Climbers")
return PLUGIN_HANDLED
}
Отредактировал: sp0ke, - 10.3.2011, 22:10