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

FREE LimitedLadders : 2.0.1 2.0.1

Нет прав для скачивания
C#:
// Все права принадлежат дискорд сообществу https://discord.gg/VgNHPpNrz6
namespace Oxide.Plugins
{
    [Info("LimitedLadders", "redBDGR", "2.0.1")]
    [Description("Prevents the placement of ladders where building is blocked")]

    class LimitedLadders : RustPlugin
    {
        private void Unload()
        {
            AllowBuildingBypass(true);
        }

        private void OnServerInitialized()
        {
            AllowBuildingBypass(false);
        }

        private void AllowBuildingBypass(bool allow)
        {
            Construction con = PrefabAttribute.server.Find<Construction>(2150203378);
            if (con)
                con.canBypassBuildingPermission = allow;
        }
    }
}

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