You could also do this for the action.thief.php
Find:
PHP Code:
if ($_FIELDS['points'] <= "0") {
$message = "You may not steal a non-positive amount!";
uttstore_print_end_message($message);
}
Add above:
PHP Code:
// dont allow stealing from an admin
$admin = $DB_site->query_first("SELECT userid from " . TABLE_PREFIX . "administrator where userid = $thefted[userid]");
if (isset($admin['userid'])) {
$message = "You may not steal from an administrator!";
uttstore_print_end_message($message);
}
// dont allow stealing from a moderator
$mod = $DB_site->query_first("SELECT userid from " . TABLE_PREFIX . "moderator where userid = $thefted[userid]");
if (isset($mod['userid'])) {
$message = "You may not steal from an moderator!";
uttstore_print_end_message($message);
}
Maybe not the most efficient way, but its working on my forums.
-CMX