if (in_array($vbulletin->userinfo['usergroupid'], array(2, 6, 7, 35)) AND $vbulletin->userinfo[posts] > 4){ do something}else{ do something else}