|
发表于 2008-12-19 13:30:25
|
显示全部楼层
来自 中国–北京–北京–海淀区
回复: 跪求《看不见队友插件》
- #include <amxmodx>
- #include <fakemeta>
- #define PLUGIN "Test"
- #define AUTHOR "Jim"
- #define VERSION "1.0"
- new g_team[33]
- 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[id] = 0
- }
- public event_team_info()
- {
- new id = read_data(1)
- g_team[id] = get_pdata_int(id, 114)
- }
- public fwd_ATFP(estate, e, ent, host, hostflags, player, pset)
- {
- if(player && ent != host)
- {
- static team
- team = g_team[ent]
- if(team && team != 3 && team == g_team[host])
- {
- set_es(estate, ES_Effects, get_es(estate, ES_Effects) | EF_NODRAW)
- }
- }
- return FMRES_IGNORED
- }
复制代码 试试吧 |
|