husano896
|
分享:
▲
▼
下面是引用 op47 于 2012-07-05 21:47 发表的 : ANDY 大大, 我有使用过FAKECLIENT, 我的FAKECLIENT 会出现在地图中心的上方, 但FAKECLIENT可以打死, 但不可以处死, 这就是问题, 大大,可否给我看看FAKECLIENT怎样写? fakeclient制造的代码 复制程式
new const name[] = "FakeClient"
fakeclient = engfunc(EngFunc_CreateFakeClient, name)
if(pev_valid(fakeclient))
{
engfunc(EngFunc_FreeEntPrivateData, fakeclient)
dllfunc(MetaFunc_CallGameEntity, "player", fakeclient)
set_user_info(fakeclient, "rate", "3500")
set_user_info(fakeclient, "cl_updaterate", "25")
set_user_info(fakeclient, "cl_lw", "1")
set_user_info(fakeclient, "cl_lc", "1")
set_user_info(fakeclient, "cl_dlmax", "128")
set_user_info(fakeclient, "cl_righthand", "1")
set_user_info(fakeclient, "_vgui_menus", "0")
set_user_info(fakeclient, "_ah", "0")
set_user_info(fakeclient, "dm", "0")
set_user_info(fakeclient, "tracker", "0")
set_user_info(fakeclient, "friends", "0")
set_user_info(fakeclient, "*bot", "1")
set_pev(fakeclient, pev_flags, pev(fakeclient, pev_flags) | FL_FAKECLIENT)
set_pev(fakeclient, pev_colormap, fakeclient)
new msg[128]
dllfunc(DLLFunc_ClientConnect, fakeclient, name, "0.0.0.0", msg)
dllfunc(DLLFunc_ClientPutInServer, fakeclient)
fm_set_user_team(fakeclient, CS_TEAM_T)
set_pev(fakeclient, pev_effects, pev(fakeclient, pev_effects ) | EF_NODRAW);
set_pev(fakeclient, pev_solid, SOLID_NOT);
set_pev(fakeclient, pev_health, 100.0)
set_pev(fakeclient, pev_takedamage, 1.0)
fkclient_id = get_user_index("FakeClient")
}
完场方式 复制程式
public set_end_round()
{
set_msg_block(get_user_msgid("DeathMsg"), BLOCK_ONCE)
ExecuteHamB(Ham_Killed, fakeclient, fakeclient, 0)
}
以上仅供参考 还有我本身人类都是丢CT FakeClient丢TR
|
|
x0
[6 楼]
From:台湾中华电信股份有限公司 | Posted:2012-07-06 16:30 |
|
|
|