|
发表于 2008-11-24 14:46:16
|
显示全部楼层
来自 中国–广东–惠州–惠城区
回复: 哪位有复活插件要基地复活的那种
直接挂个CSDM模块就行了,如果是用插件复活的,时间一久.复活次数多了会出错.
[php]
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#define PLUGIN_NAME "respawn"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "zwfgdlc"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_forward(FM_ClientKill,"fw_ClientKill")
}
public fw_ClientKill(id)
{
set_task(3.0,"respawn",id);
}
public respawn(id)
{
set_pev(id,pev_deadflag,DEAD_RESPAWNABLE);
dllfunc(DLLFunc_Think,id);
}[/php] |
|