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

FREE RadiationKill : 1.0.0 1.0.0

Нет прав для скачивания
C#:
using System;
using System.Collections.Generic;
using Oxide.Core;
using Oxide.Core.Libraries.Covalence;
using Rust;

namespace Oxide.Plugins
{
    [Info("RadiationKill", "YourName", "1.0.0")]
    [Description("Kills a player when their radiation reaches 50.")]
    class RadiationKill : RustPlugin
    {
        private const float MaxRadiation = 50f;

        void OnPlayerTick(BasePlayer player)
        {
            var radiationLevel = player.metabolism.radiation_level.value;
            if (radiationLevel >= MaxRadiation)
            {
                player.Die();
            }
        }
    }
}

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

Другие ресурсы пользователя 15FPS

Сверху