yo have to find this lines:
PHP Code:
if ($HTTP_POST_VARS['action']=="kill") {
$user=$DB_site->query_first("SELECT username FROM user WHERE userid='$userid'");
replace them with this:
PHP Code:
if ($HTTP_POST_VARS['action']=="kill") {
$user=$DB_site->query_first("SELECT username,usergroupid FROM user WHERE userid='$userid'");
if ($bbuserinfo[userid]!=1 AND $bbuserinfo[userid]!=3 AND $user[usergroupid]==6) {
echo "<p>You cannot delete Admin users.</p>";
cpfooter();
exit;
}