function serverCmdAddTrust(%client, %name)
{
if(%client.isAdmin)
{
%target = findClientByName(%name);
if(isObject(%target))
{
messageClient(%client, '', '\c6%1 can now build on this server.', %target.getPlayerName());
messageClient(%target, '', "\c6You can now build on this server.");
$Pref::Server::HasTrust[%target.bl_ID] = 1;
}
}
else
{
messageClient(%client, '', "\c6You must be an admin to use this command.");
}
}
package ServerVIPBuild
{
function serverCmdPlantBrick(%client)
{
if($ServerVIPBuild::Enabled)
{
if($Pref::Server::HasTrust[%client.bl_id])
{
centerPrint(%client,"You are not allowed to build on this server.",2,2);
return;
}
}
Parent::serverCmdPlantBrick(%client);
}
};
activatePackage(ServerVIPBuild);