|
{
g_total+=1
client_color(0, "/y比赛第/g%d/y轮,还差/g%d/y轮结束比赛!!!",g_total,get_pcvar_num(g_SF)-g_total)
}
else if(g_total>=get_pcvar_num(g_SF)&&g_Compation)
{
g_total=0
g_Compation=false
iLen = format(sBuffer, 1023, "<head><meta http-equiv=content-type content='text/html ;charset=UTF-8'></head><style>body{color:#FFFFFF;background-color:black;margin-top:5}.A{background-color:#008000}.B{background-color:#004000}td{font-size:14px}</style><center><font size=3><b>比赛结果</b></font></center><hr size=2 color=blue>" )
iLen += format(sBuffer[iLen], 1023 - iLen, "<table width=550 align=center><tr class=A align=center> <td>%s<td>%s<td>%s<td>%s<td>%s","排名","昵称","杀敌","死亡","得分")
for(new is=1;is<get_playersnum();is++)
{
new name[64],num=1
get_user_name(is,name,63)
new score=g_kill[is]*2-g_death[is]
for(new i=1;i<get_playersnum();i++)
{
new score1=g_kill[i]*2-g_death[i]
if(score1>score)
num+=1
}
iLen += format(sBuffer[iLen], 1023 - iLen, "<tr class=B align=center><td>%d<td>%s<td>%d<td>%d<td>%d",num,name,g_kill[is],g_death[is],score)
}
for(new i=1;i<get_playersnum();i++)
show_motd(i,sBuffer,"请对此表进行截图兑换")
client_color(0, "/g比赛结束!!!")
|
|