|
楼主 |
发表于 2008-3-16 17:34:54
|
显示全部楼层
来自 中国–甘肃–兰州
回复: 求助: 玩家死后自爆 + 范围性伤害插件
HOOO~ 测试成功啦!十二万分地感谢jim_yang楼主,这个困扰了三个多月的问题终于得到了圆满的解决!不过,函数注册的那部分代码没有写完整,把这段代码:
[PHP]public plugin_init()
{
register_plugin("Death Explode","1.0","LiToViEtBoI & X-man")
register_cvar("death_explode", "1")
register_event("DeathMsg","death","a")
register_cvar("explosion_radius", "250")
register_cvar("explosion_damage", "200")
g_maxplayers = get_maxplayers()
}[/PHP]
改成下面这样后,重新编译插件就行了。
[PHP]public plugin_init()
{
register_plugin("Death Explode","1.0","LiToViEtBoI & X-man")
register_event("DeathMsg","death","a")
g_cvar_death_explode = register_cvar("death_explode", "1")
g_cvar_radius = register_cvar("explosion_radius", "250")
g_cvar_damage = register_cvar("explosion_damage", "200")
g_maxplayers = get_maxplayers()
}[/PHP] |
|