Hey guys!
PHP Code:
public Observer_IsValidTarget_Pre( const this, const iTarget, const bool:bOnlyTeam )
{
if(is_user_alive(iTarget) && skDia == DIA_ESCONDIDAS)
{
if(get_team(iTarget) != 2)
{
static id; id = iTarget;
while ((id = find_ent_by_class(id, "player" )) != iTarget )
{
if(get_team(id) != 2)
continue;
OrpheuSetParam(2, id);
break;
}
}
}
}
I have this orpheu function that blocks terrorist to watch another terrorist, just cts cam in first person, but they are allowed to see the other cameras like freelook etc and I want to block that too if its possible (without changing camera server cvars).