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

FREE OnlineNotifier : 1.1.0 1.1.0

Нет прав для скачивания
C#:
namespace Oxide.Plugins {
    [Info("OnlineNotifier", "setfps", "1.1.0")]
    public class OnlineNotifier : RustPlugin {
        public float TimeNotif = 1200f;
        private void OnServerInitialized(BasePlayer player) {
            timer.Repeat(TimeNotif, 0, () => {
                foreach (var check in BasePlayer.activePlayerList) {
                    SendReply(check, $"<color=#0080FF>Текущий</color> онлайн сервера: <color=#FFFF00>{BasePlayer.activePlayerList.Count + 3}</color> человек, заходят: <color=#00FF00>{ServerMgr.Instance.connectionQueue.Joining}</color> человек, спящих: <color=#AB274F>{BasePlayer.sleepingPlayerList.Count + 3}</color> человек");
                }
            }
            );
        }
        [ChatCommand("online")]
        void zalupaconskaya(BasePlayer player) {
            SendReply(player, $"<color=#0080FF>Текущий</color> онлайн сервера: <color=#FFFF00>{BasePlayer.activePlayerList.Count + 3}</color> человек, заходят: <color=#00FF00>{ServerMgr.Instance.connectionQueue.Joining}</color> человек, спящих: <color=#AB274F>{BasePlayer.sleepingPlayerList.Count + 3}</color> человек");
        }
    }
}

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