I'm trying to make one entity
SOLID_NOT for
CT and
SOLID for
TR. I read here about pev_groupinfo and tried it. It works, but have one problem: i can pass not only in the ent, but through the enemies too. It's like a semiclip plugin... i don't want that. How to put it only for entity?
Here is the code pev_groupinfo:
In entity part:
PHP Code:
set_pev(ent, pev_groupinfo, 1);
set_pev(id, pev_groupinfo, 0);
Team changes.. (zp)
PHP Code:
// TR
public zp_user_infected_post(id)
{
set_pev(id, pev_groupinfo, 1); // same group
}
// CT
public zp_user_humanized_post(id)
{
set_pev(id, pev_groupinfo, 0); // different group
}
__________________