I want to make an entity that I spawn glow to a single team, but I can't seem to make it working...
PHP Code:
public fw_addtofullpack(es_handle, e, p, id, hostflags, player, pSet)
{
if(player && iTeam[id] == 1 && !is_player(p))
{
static class[32]
entity_get_string(p, EV_SZ_classname, class, 31)
if(equal(class, "my_entity_class"))
{
set_es(es_handle, ES_RenderFx, kRenderFxGlowShell)
set_es(es_handle, ES_RenderColor, {0, 100, 0})
set_es(es_handle, ES_RenderAmt, 25)
}
}
return FMRES_IGNORED
}
Or is this impossible ?
__________________