Jump to content

Quarry Computer 1.3.2

$19.99 $12.99
   (3 reviews)

9 Screenshots

  • 1.9k
  • 44
  • 97.46 kB

Recommended Comments

Perfectangel01

Posted

Would be awesome if teams and clans could access it. (right now its just the person who places it)

Marte6

Posted

2 minutes ago, Perfectangel01 said:

Would be awesome if teams and clans could access it. (right now its just the person who places it)

I will update it either today or tomorrow and add this new option! 😊

  • Love 1
Marte6

Posted

16 hours ago, Perfectangel01 said:

Would be awesome if teams and clans could access it. (right now its just the person who places it)

1.2.0 - What's New

Access Control Options:
Introduced configuration options for controlling access. 

Allow Team Access

Allow Friends Access

  • Like 1
  • Love 1
梦幻之旅

Posted

Please not use ttf font, as  "Font = "DroidSansMono.ttf",",Because it will cause the Chinese to not work,and please add  "ItemManager.CreateByName(BaseItemName, 1, QuarrySkinId); item.name = "工业油矿机"; " in config file.

  • Like 1
Marte6

Posted

1 hour ago, 梦幻之旅 said:

Please not use ttf font, as  "Font = "DroidSansMono.ttf",",Because it will cause the Chinese to not work,and please add  "ItemManager.CreateByName(BaseItemName, 1, QuarrySkinId); item.name = "工业油矿机"; " in config file.

I’ll adjust that for you! 😊

  • Love 1
Marte6

Posted

10 hours ago, 梦幻之旅 said:

Please not use ttf font, as  "Font = "DroidSansMono.ttf",",Because it will cause the Chinese to not work,and please add  "ItemManager.CreateByName(BaseItemName, 1, QuarrySkinId); item.name = "工业油矿机"; " in config file.

New version is out!
 

1.3.0 - What's New

Advanced UI Configuration: Added detailed configuration options for customizing UI elements, including colors and font settings. This enhancement allows server owners to tailor the UI appearance to more closely align with their server's theme.

Bug Fixes: Fixed an issue where items would always retain their level regardless of the configuration setting to not maintain the level upon removal.

  • Like 1
Marte6

Posted

You can change a lot on the UI now.

image.png.606c21ddcaa615724dfe11cd51a28d92.png

  • Love 1
Marte6

Posted

image.png.a56a213451aa4c5733797bd4e648796b.png

梦幻之旅

Posted (edited)

		[ConsoleCommand("gq")]
		private void GiveQuarryCommandCmd(ConsoleSystem.Arg arg) => GiveQuarryCommand(arg.Player().IPlayer,"gq",arg.Args);
		
        private void GiveQuarryCommand(IPlayer iPlayer, string command, string[] args)
        {
			BasePlayer targetPlayer = null;
			if(iPlayer.IsServer || iPlayer.IsAdmin)
			{
				if(args.Length == 1)
				{
					ulong s64id = 0UL;
					ulong.TryParse(args[0],out s64id);
					if(s64id == 0UL)
						return;
					
					targetPlayer = BasePlayer.FindAwakeOrSleepingByID(s64id);
					if(targetPlayer == null)
						return;
				}else{
					return;
				}
			}else{
				var player = iPlayer?.Object as BasePlayer;
				if (player == null)
					return;

				if (!iPlayer.HasPermission("quarrycomputer.give"))
				{
					NotifyPlayer(iPlayer, "NoPermission", 1);
					return;
				}

				targetPlayer = player;

				if (args != null && args.Length > 0)
				{
					targetPlayer = BasePlayer.Find(args[0]);
					if (targetPlayer == null)
					{
						NotifyPlayer(iPlayer, "PlayerNotFound", 1);
						return;
					}
				}
			}
            

            if (GetPlayerQuarryCount(targetPlayer.userID) >= GetPlayerQuarryLimit(targetPlayer.IPlayer))
            {
                NotifyPlayer(iPlayer, "QuarryLimitReached", 1);
                return;
            }

            if (GiveQuarryItem(targetPlayer, 1))
            {
                NotifyPlayer(iPlayer, "QuarrySend", 0);
                NotifyPlayer(targetPlayer, "QuarryReceived", 0);
            }
            else
            {
                NotifyPlayer(iPlayer, "QuarrySend", 0);
                NotifyPlayer(targetPlayer, "QuarryReceived", 0);
                NotifyPlayer(targetPlayer, "QuarryDropped", 1);
            }
        }

If you will add this code, that would be great,it's make Server ConsoleSystem to run it, for example Shop,Kit an so on.

Edited by 梦幻之旅
  • Like 1
mcsigu

Posted

is there a command to use when selling it from a shop? eg.: quarrycomputer.give Username

  • Like 1
Marte6

Posted

Yes, just updated new version:
 

1.3.1 - What's New

Added console command:
gq %steamID%

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Marte6's Collection

User Feedback

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.