private void LoadVariables()
        {
            Prefix      = Convert.ToString(GetConfig("Chat Settings", "Prefix", "[My MiniCopter] :"));             // CHAT PLUGIN PREFIX
            SteamIDIcon = Convert.ToUInt64(GetConfig("Chat Settings", "SteamIDIcon", "76561198059533272"));        // SteamID FOR PLUGIN ICON - STEAM PROFILE CREATED FOR THIS PLUGIN / NONE YET /
            cooldownmin = Convert.ToSingle(GetConfig("Cooldown (on permission)", "Value in minutes", "60"));

            if (!ConfigChanged)
            {
                return;
            }
            SaveConfig();
            ConfigChanged = false;
        }
        private void LoadVariables()
        {
            Prefix       = Convert.ToString(GetConfig("Chat Settings", "Prefix", "[PSS] :"));                 // CHAT PLUGIN PREFIX
            PrefixColor  = Convert.ToString(GetConfig("Chat Settings", "PrefixColor", "#42d7f4"));            // CHAT PLUGIN PREFIX COLOR
            ChatColor    = Convert.ToString(GetConfig("Chat Settings", "ChatColor", "#b7f5ff"));              // CHAT  COLOR
            SteamIDIcon  = Convert.ToUInt64(GetConfig("Chat Settings", "SteamIDIcon", 76561198859649789));
            bonusratemin = Convert.ToSingle(GetConfig("Bonus Playtime", "Value in minutes", "60"));
            spawnbonus   = Convert.ToBoolean(GetConfig("Bonus on Spawn", "Give a SupplySignal on first arrival", "true"));

            if (!ConfigChanged)
            {
                return;
            }
            SaveConfig();
            ConfigChanged = false;
        }
示例#3
0
        private void LoadVariables()
        {
            Prefix        = Convert.ToString(GetConfig("Chat Settings", "Prefix", "[My CH47] "));                // CHAT PLUGIN PREFIX
            PrefixColor   = Convert.ToString(GetConfig("Chat Settings", "PrefixColor", "#149800"));              // CHAT PLUGIN PREFIX COLOR
            ChatColor     = Convert.ToString(GetConfig("Chat Settings", "ChatColor", "#bbffb1"));                // CHAT MESSAGE COLOR
            SteamIDIcon   = Convert.ToUInt64(GetConfig("Chat Settings", "SteamIDIcon", "76561198332562475"));    // SteamID FOR PLUGIN ICON - STEAM PROFILE CREATED FOR THIS PLUGIN / NONE YET /
            withoutdebris = Convert.ToBoolean(GetConfig("Debris Settings", "Remove debris", "false"));
            cooldownmin   = Convert.ToSingle(GetConfig("Cooldown (on permission)", "Value in minutes", "60"));

            if (!ConfigChanged)
            {
                return;
            }
            SaveConfig();
            ConfigChanged = false;
        }
 private void KillMyMinicopterConsoleCommand(ConsoleSystem.Arg arg)
 {
     if (arg.Args.Length == 1)
     {
         ulong cherche = Convert.ToUInt64(arg.Args[0]);
         if (cherche == null)
         {
             return;
         }
         if (cherche.IsSteamId() == false)
         {
             return;
         }
         BasePlayer player = BasePlayer.FindByID(cherche);
         KillMyMinicopterPlease(player);
     }
 }