谁有穿越队友的插件?
如题,谁能提供一下可以穿越队友的插件或该插件的名字吗?(记得跳跃插件有这个功能)
回复: 谁有穿越队友的插件?
这个是丧尸服按E键穿越队友,防止挡路的插件#include <amxmodx>
#include <fakemeta>
#include <xs>
#tryinclude <biohazard>
#if !defined _biohazard_included
#assert Biohazard functions file required!
#endif
enum CsTeams
{
CS_TEAM_UNASSIGNED = 0,
CS_TEAM_T = 1,
CS_TEAM_CT = 2,
CS_TEAM_SPECTATOR= 3
}
#define OFFSET_TEAM 114
#define cs_get_user_team(%1) CsTeams:get_pdata_int(%1, OFFSET_TEAM)
new cvar_antiblock, Float:g_lasttimetouched // lol
public plugin_init()
{
register_plugin("anti block", "0.1", "cheap_suit")
is_biomod_active() ? plugin_init2() : pause("ad")
}
public plugin_init2()
{
register_forward(FM_Touch, "fwd_touch")
register_forward(FM_PlayerPreThink, "fwd_playerprethink")
cvar_antiblock = register_cvar("bh_antiblock", "1")
}
public fwd_playerprethink(id)
{
if(!is_user_alive(id))
return FMRES_IGNORED
static solid; solid = pev(id, pev_solid)
if(solid == SOLID_NOT && (get_gametime() - g_lasttimetouched) > 0.34)
set_pev(id, pev_solid, SOLID_BBOX)
return FMRES_IGNORED
}
public fwd_touch(blocker, id)
{
if(!is_user_alive(blocker) || !is_user_alive(id) || !get_pcvar_num(cvar_antiblock))
return FMRES_IGNORED
static button
button = pev(id, pev_button), button = pev(blocker, pev_button)
if(button & IN_USE || button & IN_USE)
{
static CsTeams:team
team = cs_get_user_team(id), team = cs_get_user_team(blocker)
if(team != team)
return FMRES_IGNORED
set_pev(blocker, pev_solid, SOLID_NOT), set_pev(id, pev_solid, SOLID_NOT)
static Float:gametime; gametime = get_gametime()
g_lasttimetouched = gametime, g_lasttimetouched = gametime
}
return FMRES_IGNORED
}
回复: 谁有穿越队友的插件?
(以下问题通过复制Biohazard functions 文件,已经自行解决,)编译出错,能否上传一个附件或则告诉一下插件名字?
//AMXXPC compile.exe
// by the AMX Mod X Dev Team
//// noclip.sma
// D:\HLDS27019\cstrike\addons\amxmodx\scripting\noclip.sma(6) : fatal error 110
: assertion failed: Biohazard functions file required!
//
//
// Compilation aborted.
// 1 Error.
// Could not locate output file D:\HLDS27019\cstrike\addons\amxmodx\scripting\co
mpiled\noclip.amx (compile failed).
//
// Compilation Time: 0.06 sec
// ----------------------------------------
Press enter to exit ...
回复: 谁有穿越队友的插件?
新问题,编译是通过了。但是插件加载出现错误。biohazardf是什么呢?
L 09/11/2008 - 15:32:46: Plugin "bio_antiblock.amxx" failed to load: Modu
le/Library "biohazardf" required for plugin.Check modules.ini.
回复: 谁有穿越队友的插件?
modules.ini里面没有开启biohazardf 模块的意思先去弄个僵尸包 把里面的模块弄下来
回复: 谁有穿越队友的插件?
Post by veryluckkomodules.ini里面没有开启biohazardf 模块的意思
先去弄个僵尸包 把里面的模块弄下来
谢谢你的回复。
不过我想,你没有弄过biohazard服务器。因为没有biohazardf该模块。
应该从插件的源代码入手。尝试了从源代码中删除加载biohazardf 模块的
语句,但是插件无法正常工作。
回复: 谁有穿越队友的插件?
#include <amxmodx>
#include <fakemeta>
#include <xs>
enum CsTeams
{
CS_TEAM_UNASSIGNED = 0,
CS_TEAM_T = 1,
CS_TEAM_CT = 2,
CS_TEAM_SPECTATOR = 3
}
#define OFFSET_TEAM 114
#define cs_get_user_team(%1) CsTeams:get_pdata_int(%1, OFFSET_TEAM)
newFloat:g_lasttimetouched // lol
public plugin_init()
{
register_plugin("anti block", "0.1", "cheap_suit")
}
public plugin_init2()
{
register_forward(FM_Touch, "fwd_touch")
register_forward(FM_PlayerPreThink, "fwd_playerprethink")
}
public fwd_playerprethink(id)
{
if(!is_user_alive(id))
return FMRES_IGNORED
static solid; solid = pev(id, pev_solid)
if(solid == SOLID_NOT && (get_gametime() - g_lasttimetouched) > 0.34)
set_pev(id, pev_solid, SOLID_BBOX)
return FMRES_IGNORED
}
public fwd_touch(blocker, id)
{
if(!is_user_alive(blocker) || !is_user_alive(id) )
return FMRES_IGNORED
static button
button = pev(id, pev_button), button = pev(blocker, pev_button)
if(button & IN_USE || button & IN_USE)
{
static CsTeams:team
team = cs_get_user_team(id), team = cs_get_user_team(blocker)
if(team != team)
return FMRES_IGNORED
set_pev(blocker, pev_solid, SOLID_NOT), set_pev(id, pev_solid, SOLID_NOT)
static Float:gametime; gametime = get_gametime()
g_lasttimetouched = gametime, g_lasttimetouched = gametime
}
return FMRES_IGNORED
}
回复: 谁有穿越队友的插件?
zwfgdlc 谢谢。能告诉一下,使用设置方法吗?
回复: 谁有穿越队友的插件?
谢谢收藏了 ....回复: 谁有穿越队友的插件?
这个插件搂住还沒找到吗??现在随便在百度都可以找到的了~可以联系我 laosu@vip.qq.com
页:
[1]
2