PHP Code:
// settings
$usergroupids = array(1,2,3);
// decision clause
$show['something'] = false;
if (!is_member_of($vbulletin->userinfo, $usergroupids))
{
$getposts = $db->query_first("
SELECT COUNT(*) as count
FROM " . TABLE_PREFIX . "post
WHERE userid = {$vbulletin->userinfo['userid']}
AND (" . TIMENOW . " - dateline) < 432000"
);
$show['something'] = ($getposts['count'] >= 5 ? true : false);
}