Not sure if there is more to the question, but it seems that something like
object oPC = GetEnteringObject();
// boot them stinkin' barbarians
if ( (GetIsObjectValid(oPC)) && (GetLevelByClass(oPC, CLASS_TYPE_BARBARIAN) > 0) ) {
BootPC(oPC);
}
in the OnClientEnter script would do the job.