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

FREE AutoSecureOff : 1.0.0 1.0.0

Нет прав для скачивания
C#:
// Все права принадлежат дискорд сообществу https://discord.gg/VgNHPpNrz6
using System;
using Oxide.Core;
using Oxide.Core.Plugins;

namespace Oxide.Plugins
{
    [Info("AutoSecureOff", "TeRMiN", "1.0.0")]
    [Description("Automatically runs a console command every 30 seconds.")]
    public class AutoSecureOff : RustPlugin
    {
        private const string CommandToRun = "server.secure 0"; // دستور مورد نظر
        private const float Interval = 30f; // فاصله زمانی بین اجراها

        void OnServerInitialized()
        {
            timer.Every(Interval, () => ExecuteCommand());
            Puts("AutoConsoleCommand has been initialized and is running every 30 seconds!");
        }

        private void ExecuteCommand()
        {
            ConsoleSystem.Run(ConsoleSystem.Option.Server, CommandToRun);
            Puts($"Executed: {CommandToRun}");
        }
    }
}

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