Insert this code at the top of all your items, right below the <?php line.
global $sourcedir;
require_once($sourcedir . '/Subs-Post.php');
And insert this code at the end of the code for the actual item before the return line.
$result = db_query("SELECT memberName
FROM {$db_prefix}members
WHERE ID_MEMBER = {$ID_MEMBER}'", __FILE__, __LINE__);
$row = mysql_fetch_array($result, MYSQL_ASSOC);
$theif = $row['memberName'];
$result = db_query("SELECT ID_MEMBER
FROM {$db_prefix}members
WHERE memberName = '{$_POST['stealfrom']}'}'", __FILE__, __LINE__);
$row = mysql_fetch_array($result, MYSQL_ASSOC);
$pmfrom = array(
'id' => 1,
'name' => 'Your name',
'username' => 'Your name'
);
$pmto = array(
'to' => array($row['ID_MEMBER']),
'bcc' => array()
);
sendpm($pmto, 'PM Subject', "Pm body. Use {$theif} for the name of the guy who stole, and {$steal_amount} for the amount of points stolen", 0, $pmfrom);