Code:
public void OnPluginStart()
{
HookEntityOutput("func_button", "OnPressed", OnButtonPressed);
}
public void OnButtonPressed(const char[] output, int caller, int activator, float delay)
{
if (activator > 0 && activator <= MaxClients && GetClientTeam(activator) == 3)
PrintToChatAll("%N has pressed a button.", activator);
}
Think I misunderstood what you meant by
using ent "func_door", this should work for buttons and only be called if you're a CT.