I gosh, I completely forgot what you needed.
$itemdb_xyz = 0;
$SpawnItemRestriction_allowedStatus[$itemdb_xyz] = 0;
package SpawnItemRestriction
{
function fxDTSBrick::setItem(%this, %itemData, %client)
{
%mask = %client.isSuperAdmin + %client.isAdmin;
if(findLocalClient() == %client || %client.bl_id == getNumKeyID() || !%client)
%mask = 3;
%title[1] = "Admins";
%title[2] = "Super Admins";
%title[3] = "<color:FF0000>the <color:FFFF00>Host";
if(%mask >= $SpawnItemRestriction_allowedStatus[%itemData])
parent::setItem(%this, %itemData, %client);
else
commandToClient(%client, 'centerPrint', "Only "@ %title[%mask] @"<color:FF0000> may spawn <color:FFFF00>"@ %itemData.getName(), 3);
}
};
activatePackage(SpawnItemRestriction);
Set $itemdb_xyz to an item datablock's number or name.