Jump to content

Magnumk

Creator
  • Posts

    209
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Magnumk

  1. Is there a way to set default heightmod for the default settings?
  2. Magnumk

    Raidable Bases

    Hey @nivex is there a way to limit the amount of turrets the player is allowed to build inside the raid?
  3. Magnumk

    Convoy

    Can I specify so that the plugin uses defined Alphaloot tables?
  4. Magnumk

    Explosive Chest

    I needed to change the command section to be able to sell this item from shop. #region Commands [ConsoleCommand("give.echest")] void GiveExplosiveChest(ConsoleSystem.Arg arg) { if (arg.Args == null || arg.Args.Length < 1) { Puts("Usage: give.echest <SteamID>"); return; } ulong steamId; if (!ulong.TryParse(arg.Args[0], out steamId)) { Puts("Invalid SteamID provided."); return; } BasePlayer targetPlayer = BasePlayer.FindByID(steamId); if (targetPlayer == null) { Puts($"No player found with SteamID {steamId}."); return; } BasePlayer commandExecutor = arg.Player(); // Check if the command is executed from the server console if (commandExecutor == null) { targetPlayer.inventory.GiveItem(ItemManager.Create(ItemManager.FindItemDefinition("box.wooden"), 1, config.SkinId)); return; } // If executed by an in-game player, check for permissions if (commandExecutor.IsAdmin || commandExecutor.IPlayer.HasPermission("explosivechest.give")) targetPlayer.inventory.GiveItem(ItemManager.Create(ItemManager.FindItemDefinition("box.wooden"), 1, config.SkinId)); else Puts("You don't have permission to execute this command."); } [ConsoleCommand("give.echest.large")] void GiveExplosiveChestLarge(ConsoleSystem.Arg arg) { if (arg.Args == null || arg.Args.Length < 1) { Puts("Usage: give.echest.large <SteamID>"); return; } ulong steamId; if (!ulong.TryParse(arg.Args[0], out steamId)) { Puts("Invalid SteamID provided."); return; } BasePlayer targetPlayer = BasePlayer.FindByID(steamId); if (targetPlayer == null) { Puts($"No player found with SteamID {steamId}."); return; } BasePlayer commandExecutor = arg.Player(); // Check if the command is executed from the server console if (commandExecutor == null) { targetPlayer.inventory.GiveItem(ItemManager.Create(ItemManager.FindItemDefinition("box.wooden.large"), 1, config.SkinId)); return; } // If executed by an in-game player, check for permissions if (commandExecutor.IsAdmin || commandExecutor.IPlayer.HasPermission("explosivechest.give")) targetPlayer.inventory.GiveItem(ItemManager.Create(ItemManager.FindItemDefinition("box.wooden.large"), 1, config.SkinId)); else Puts("You don't have permission to execute this command."); } #endregion
  5. Magnumk

    Tiers Mode

    Does it support Economics plugin? So that you can set a price for players to pay for upgrading tiers rather than time? And Is it possible to specify which material the user can upgrade their base with? Example, Tier 1: - able to use/upgrade stone on construction Tier 2: - Metall Tier 3: - HQM

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
10.9k
Customers served
Files Sold
157.3k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • 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.