|
发表于 2006-2-1 23:56:05
|
显示全部楼层
来自 中国–云南–西双版纳傣族自治州–景洪市
回复: 谁又amxx2006里面得stats.sma源文件?
AMXX1.60的TOP15样式。难玩死了CS1.6难用死了AMXX
/* get top 15 */
getTop15() {
new pos, stats[8], body[8], name[32]
#if !defined NO_STEAM
new state[4]
pos = copy(g_Buffer,2047,"<html><head><body><style type=^"text/css^">")
pos += copy(g_Buffer[pos],2047-pos,"body{font-family:Arial,sans-serif;font-size:12px;color:#FFCC99;background-color:#000000;margin-left:8px;margin-top:3px}.header{background-color:#9C0000;}.one{background-color:#310000;}.two{background-color:#630000;}td{font-size:14px}</style><center><b><font size=4>云南省西双版纳反恐精英Top15排名表</b><table width=500>")
pos += copy(g_Buffer[pos],2047-pos,"</style></head><body><table><tr class=^"header^"><td>#</td><td>昵称</td><td>杀敌</td><td>死亡</td><td>击中</td><td>开枪</td><td>爆头</td></tr>")
new imax = get_statsnum()
if (imax > 15) imax = 15
for(new a = 0; a < imax; ++a){
if (equal(state,"one")) copy(state,3,"two")
else copy(state,3,"one")
get_stats(a,stats,body,name,31)
pos += format(g_Buffer[pos],2047-pos,"<tr class=^"%s^"><td>%d.</td><td>%s</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td><td>%d</td></tr>",state,a+1,name,stats[0],stats[1],stats[5],stats[4],stats[2])
}
copy(g_Buffer[pos],2047-pos,"</table><hr size=1 color=blue></font>月光疾L制作")
#else
pos = format(g_Buffer,2047," # %-28.27s %6s %6s %6s %6s %6s^n",
"nick", "kills" , "deaths" , "hits","shots","hs" )
new imax = get_statsnum()
if (imax > 15) imax = 15
for(new a = 0; a < imax; ++a){
get_stats(a,stats,body,name,31)
pos += format(g_Buffer[pos],2047-pos,"%2d. %-28.27s %6d %6d %6d %6d %6d^n",a+1,name,stats[0],stats[1],stats[5],stats[4],stats[2])
}
#endif
} |
|