最近我想新增一个玩家等级升级公告资讯的功能
想全体玩家皆可看见此资讯
虽然经测试过字幕有显示出来
但是玩家ID迟迟没有显示只显示后方资讯
请问要如何正确注册get_user_name语法或者新增新的代吗??
复制程式
public eDeath()
{
new attacker = read_data(1)
new damage = read_data(2)
new headshot = read_data(3)
new name[35]
SM3[damage] = false
SAKM4[damage] = false
SMP5[damage] = false
STMP[damage] = false
g_hasantidotegun[damage] = false
BunnyHop[damage] = false
HLight[damage] = false
if (attacker && (attacker != damage))
{
if (headshot)
{
ZPKillPoint[attacker] += 5
client_print(attacker, print_chat, "你爆头消灭敌人.获得 5 EXP经验值.")
}
else
{
ZPKillPoint[attacker] += 3
client_print(attacker, print_chat, "你消灭敌人.获得 3 EXP经验值.")
}
while(ZPKillPoint[attacker] >= LEVELS[level[attacker]])
{
if(get_user_flags(attacker) & ACCESS_FLAG3)
levelpoint[attacker] += 4
else
levelpoint[attacker] += 4
ZPKillRank[attacker] += 1
level[attacker] += 1
client_print(0, print_chat, " %s 升级至[阶级:%s | EXP:%d]^n", name, RANKS[ZPKillRank[id]], ZPKillPoint[id])
}
}
return PLUGIN_CONTINUE
}