请问查询排名的插件中暴头率的参数?
问题如上..请看清楚不是暴头数量...而是暴头率... 暴头数/杀人数 在设置第一人称的代码怎样写?暴头数代码%hs%
杀人数代码%kills%
这样写?
某某某/n排名:%names%/n级别%rank%/n暴头率:%hs%/%kills% 3# dsylmm
看下statsx插件。// Get and format rankstats
format_rankstats(id, sBuffer, iMyId = 0)
{
new izStats = {0, ...}
new izBody
new iRankPos, iLen
new lKills, lHs, lDeaths, lHits, lShots, lDamage, lEff, lAcc, lLb
format(lKills, 15, "%L", id, "KILLS")
format(lHs, 15, "%L", id, "HS_1")
format(lDeaths, 15, "%L", id, "DEATHS")
format(lHits, 15, "%L", id, "HITS")
format(lShots, 15, "%L", id, "SHOTS")
format(lDamage, 15, "%L", id, "DAMAGE")
format(lEff, 15, "%L", id, "EFF")
format(lAcc, 15, "%L", id, "ACC")
format(lLb, 15, "%L", id, "LB_1")
ucfirst(lEff)
ucfirst(lAcc)
iRankPos = get_user_stats(id, izStats, izBody)
iLen = format( sBuffer, MAX_BUFFER_LENGTH,
"<head><META http-equiv=Content-Type content='text/html ;charset=UTF-8'></head><style>body{color:#FFCC99;background-color:black;margin-top:5}.A{background-color:#310000}.B{background-color:#630000}td{font-size:14px}</style><center><b><font size=4>RANKSTATS</b></center><tr><td> </td><td> </td></tr>" )
iLen += format(sBuffer, MAX_BUFFER_LENGTH - iLen, "<tr><td colspan=2>%L %L^n^n</td></tr>", id, (!iMyId || iMyId == id) ? "YOUR" : "PLAYERS", id, "RANK_IS", iRankPos, get_statsnum())
iLen += format(sBuffer, MAX_BUFFER_LENGTH - iLen, "<table width=300><tr class=B><td>%s:<td>%d<td>[%s]:<td>%d</tr><tr class=A><td>%s:<td>%d<tr class=B><td>%s:<td>%d<tr class=A><td>%s:<td>%d<tr class=B><td>%s:<td>%d<tr class=A><td>%s:<td>%0.2f%%<tr class=B><td>%s:<td>%0.2f%%</tr><tr><td> </td><td> </td></tr></table>",
lKills, izStats, lHs, izStats, lDeaths, izStats, lHits, izStats, lShots, izStats,
lDamage, izStats, lEff, effec(izStats), lAcc, accuracy(izStats))
new L_BODY_PART
for (new i = 1; i < 8; i++)
{
format(L_BODY_PART, 31, "%L", id, BODY_PART)
}
iLen += format(sBuffer, MAX_BUFFER_LENGTH - iLen, "<tr><td colspan=2>%10s:</td></tr><table width=170><tr class=B><td>%10s:<td> %d^n<tr class=A><td>%10s:<td> %d^n<tr class=B><td>%10s:<td> %d^n<tr class=A><td>%10s:<td> %d^n<tr class=B><td>%10s:<td> %d^n<tr class=A><td>%10s:<td> %d^n<tr class=B><td>%10s:<td> %d</table>",
lLb, L_BODY_PART, izBody, L_BODY_PART, izBody, L_BODY_PART, izBody, L_BODY_PART, izBody, L_BODY_PART,
izBody, L_BODY_PART, izBody, L_BODY_PART, izBody)
} 如果我会修改代码就好了...希望高人指教我一下...不胜感激...
页:
[1]