Иконка ресурса

FREE FreshPump : 1.0.0 1.0.0

Нет прав для скачивания
C#:
// Все права принадлежат дискорд сообществу https://discord.gg/VgNHPpNrz6
/*
Copyright © 2024 Mabel

All rights reserved.This plugin is protected by copyright law.You may not modify, redistribute, or resell this software without explicit written permission from the copyright owner.For any support please message me directly via Discord `mabel8686`
*/
namespace Oxide.Plugins
{
    [Info("Fresh Pump", "Mabel", "1.0.0")]
    [Description("Converts Salt Water --> Fresh Water in water pumps")]

    public class FreshPump : RustPlugin
    {
        private void OnWaterCollect(WaterPump instance, ItemDefinition atPoint)
        {
            if (atPoint.itemid == -277057363)
            {
                var itemAmount = 85;
                var freshWater = ItemManager.CreateByItemID(-1779180711, itemAmount, 0uL);

                if (!instance.inventory.GiveItem(freshWater))
                {
                    freshWater.Drop(instance.transform.position, instance.transform.forward);
                }
            }
        }
    }
}

Автор
15FPS
Скачиваний
0
Просмотры
1
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок
Сверху