Look at the plugin semiclip on this forums, source code, basically it does the same thing.
Im sure you will manage to add required checks for team's and entity
PHP Code:
#include < amxmodx >
#include < fakemeta >
#define PLUGIN "[RZ] Test"
#define VERSION "1.0"
#define AUTHOR "H.RED.ZONE"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_AddToFullPack, "client_AddToFullPack_P", 1)
}
public client_AddToFullPack_P(es, e, ent, id, hostflags, player, pSet) {
if( player && id != ent && get_orig_retval() && is_user_alive(id)) {
set_es(ent, ES_Solid, SOLID_NOT)
}
}
__________________