跪求《看不见队友插件》
就是自己队友看不见自己,而敌人可以看见。找了好久都没有找到。。。:cry:回复: 跪求《看不见队友插件》
有什么意义:brick:
回复: 跪求《看不见队友插件》
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "Test"
#define AUTHOR "Jim"
#define VERSION "1.0"
new g_team
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("TeamInfo", "event_team_info", "a")
register_forward(FM_AddToFullPack, "fwd_ATFP", 1)
}
public client_disconnect(id)
{
g_team = 0
}
public event_team_info()
{
new id = read_data(1)
g_team = get_pdata_int(id, 114)
}
public fwd_ATFP(estate, e, ent, host, hostflags, player, pset)
{
if(player && ent != host)
{
static team
team = g_team
if(team && team != 3 && team == g_team)
{
set_es(estate, ES_Effects, get_es(estate, ES_Effects) | EF_NODRAW)
}
}
return FMRES_IGNORED
}
试试吧
回复: 跪求《看不见队友插件》
编译出现错误............:gogo:回复: 跪求《看不见队友插件》
测试过,能编译,无错,我用的是英文版的。
页:
[1]