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 |
|
|
|