|
发表于 2008-5-30 21:56:01
|
显示全部楼层
|阅读模式
来自 日本–东京都–千代田区
以下为他人发的插件dsinfo上修改的。
但是修改之后,无法显示信息。请帮忙修改下。
想给死后玩家和观看的玩家显示信息。对活的玩家不显示信息。并且其他信息不影响该插件显示的信息。
#include <amxmodx>
new bool:died[33]
public plugin_init()
{
register_plugin("Showds","0.1","jumper")
register_event("DeathMsg","death_msg","a")
register_event("ResetHUD","newround","be")
register_cvar("amx_dsinfo","SV_INFO")
return PLUGIN_CONTINUE
}
public newround(id) {
if (died[id]) {
died[id] = false
}
return PLUGIN_CONTINUE
}
public death_msg(){
new dsinfo[256]
get_cvar_string("amx_dsinfo",dsinfo,255)
new victim = read_data(2)
set_hudmessage( 200, 100, 10, -1.0, 0.0, 0, 1.0, 5.0, 0.5, 0.5, 20)
show_hudmessage(victim,dsinfo)
died[victim] = true
return PLUGIN_CONTINUE
}
public client_putinserver(id) {
died[id] = true
return PLUGIN_CONTINUE
} |
|