How can I make a npc respond to only certain DarkRP jobs?

Okay, so i’m creating a map (no shit) and I want a npc to respond when a citizen or something like that walks up to him.
Ever played Halo? When you walked near the policeofficer he either pushed you away or said something. I want that, but only for all the jobs except cp’s.

Hope you know what i’m trying to explain.

Basically, a npc has to push, any other job than cp jobs, away. Is that possible? If i know the team name in the scripts like

TEAM_CP and so on?

Doesn’t go in the map, but in the Scripted NPC.