When u don't understand it here is a littel snippet from my top15 list:
Code:
public show_top15_climbers( id ) {
if( !climbtimer_on )
return PLUGIN_HANDLED
//new buffer[2048]
new line[256]
new motd[2048]
add(motd,2048,"<html><head><style>")
add(motd,2048,"body { background-color:#182030; font-family:verdana; font-size:10px; color:#FFFFFF; }")
add(motd,2048,".tabel { background-color: #182030; border-style:solid; border-width:1px; border-color:#416782; font-family:verdana; font-size:10px; color:#e7e7e7; }")
add(motd,2048,".header { background-color:; font-family:verdana; font-size:10px; color:#FFFFFF; font-weight:800; }")
add(motd,2048,"</style></head><body>")
add(motd,2048,"<div align=center><img src=http://www.climbers-germany.de/top15log.jpg> </div>")
new len = add(motd,2048,"<table border=0 cellspacing=0 cellpadding=1 width=90% align=center class=tabel background=http://climbers-germany.de/e107_themes/cg2k6/images/boxbg.png>")
len += add(motd[len],2048-len,"<tr><td class=header>#</td><td class=header>Name</td><td class=header>Time</td></tr>")
for(new i = 0; i < 15; ++i) {
if( top15_times[i] == CT_MAX_TIME )
{
format(line,255,"<tr><td> %d. <td> %s <td> %s", (i+1), "<---------->", "<not set>")
}
else{
format(line,255,"<tr><td> %d. <td> %s <td> (%d:%02d)", (i+1), top15_names[i], (top15_times[i]/60) , (top15_times[i]%60))
}
len += add(motd[len], 2048-len, line )
}
format(line, 255, "</table>" )
len += format( motd[len], 2048-len, line )
add(motd,2048,"</body></html>")
show_motd( id, motd, "CG-Climbers")
return PLUGIN_HANDLED
}