|
发表于 2007-3-28 10:27:20
|
显示全部楼层
|阅读模式
来自 中国–广东–深圳–南山区
请问这段代码哪里是限制字节的?
统计量超过5人就显示不完全了。。。
[PHP]public disInfo(id)
{
const SIZE=1536
new istate[4],msg[SIZE+1],len=0,players[32],num,pname[32],t;
get_players(players,num);
//CS1.6
len += format(msg[len], SIZE - len, "<head><META http-equiv=Content-Type content='text/html ;charset=UTF-8'></head><style>");
len += format(msg[len], SIZE - len, "body{color:#FFCC99;background-color:black;margin-top:5}.A{background-color:#310000}.B{background-color:#630000}td{font-size:14px}");
len += format(msg[len], SIZE - len, "</style><center><b><font size=4>作弊检测</b><table width=500>");
len += format(msg[len], SIZE - len, "<tr bgcolor=#9C0000><td><b>CS_ID</b></td><td><b>穿墙杀人</b></td><td><b>超速次数</b></td><td><b>被闪杀人</b></td>");
for(new i=0;i<num;i++){
t=players;
if( !g_playerThWallWarn[t] && !g_playerSpeedWarn[t] && !g_playerFlashWarn[t])
continue;
else {
if (equal(istate,"A")) copy(istate,3,"B")
else copy(istate,3,"A")
get_user_name(t,pname,31);
len += format(msg[len], SIZE - len, "<tr class=%s><td>%s<td style='text-align=right'>%d<td style='text-align=right'>%d<td style='text-align=right'>%d",istate,pname,g_playerThWallWarn[t],g_playerSpeedWarn[t],g_playerFlashWarn[t]);
}
}
len += format(msg[len], SIZE - len, "</table><hr size=1 color=blue><font size=2>");
if( get_cvar_num("fc_startvote") )
len += format(msg[len], SIZE - len, "如果你的警告达到系统界限,系统将会投票 !");
else len += format(msg[len], SIZE - len, "如果你的警告达到系统界限,你将会被踢出服务器!");
len += format(msg[len], SIZE - len, "<p align=left><b>服务器默认设置:</b>");
len += format(msg[len], SIZE - len, "<p></p>");
len += format(msg[len], SIZE - len, "<p align=left>穿墙杀人警告次数: %d</p>",get_cvar_num("fc_thwallwarntime"));
len += format(msg[len], SIZE - len, "<p align=left>加速警告次数: %d</p>",get_cvar_num("fc_speedwarntime"));
len += format(msg[len], SIZE - len, "<p align=left>被闪时杀人警告次数: %d</p>",get_cvar_num("fc_flashwarntime"));
show_motd ( id, msg, "反作弊检测");
return PLUGIN_CONTINUE;
}
[/PHP] |
|