Jump to content

Bartis11313

Members
  • Content Count

    9
  • Joined

  • Last visited

About Bartis11313

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. checknow check current player stats, based on this code you can guess how it's done. for many statements you need many warn variables, as I said, so they won't fail with warns
  2. + as warns set the int to one, you can warn them if kd is close to the limit etc. Such close is like if ((killer.KillsRound >= minKillsC) && (playerKdr >= warnKDR)) { showWarnings++; server.RoundData.setInt(kCounterWarn, showWarnings); if ((showWarnings <= warnPlayer)) { String globalMessage = killer.Name + " your current round KD is too high!"; if (showWarnings + 2 >= warnPlayer) { globalMessage = globalMessage + " Change your play style / vehicle"; } if (showWarnings == 1) { plugin.PRoConChat("^1^bKILL-FA
  3. if (minKills > killer.KillsRound) return false; remove, 5kd is too less anyway.
  4. Another fix, I have spotted that I forgot to edit the string from discordWeb list I added, here is the fixed code foreach (string fetched in discordWeb) { result.Add(fetched); } string final = string.Join("\\n", result); if (BlackPoints >= 8) { try { WebRequest request = WebRequest.Create(webhookUrl); request.Method = "POST"; request.ContentType = "application/json"; string BL = "https://battlelog.battlefield.com/bf4/user/" + player.Name; string webhookString = "{\"content\": \"**```py\\n'HS/DMG/KPM'\\[email protected]" + server.Name + "\\nPlay
  5. use IL, limits can read live tickets. public interface TeamInfoInterface { List<PlayerInfoInterface> players { get; } double KillsRound { get; } double DeathsRound { get; } double SuicidesRound { get; } double TeamKillsRound { get; } double TeamDeathsRound { get; } double HeadshotsRound { get; } double ScoreRound { get; } int TeamId { get; } double Tickets { get; } double RemainTickets { get; } double RemainTicketsPercent { get; } double StartTickets { get; } // BF4 int Faction { get; } // US = 0, RU = 1, CN = 2 } is
  6. In 2. script I made a typo, change vip check to: if (!plugin.GetReservedSlotsList().Contains(player.Name)) return false;
  7. My last thread had some errors so i will post fixed version with every script working + some extra ones I made or rewrote for bf4/updated it. The thread I rewrote for bf4 is: old anticheat script for bf3 1. Set tickets on round end (Do not add the tickrate), I am not sure if it will work without thread sleep since I have spotted issues with tickrate & tickets change on end OnRoundOver Code int tickets = 100; int health = 100; int delay = 100; int bleed = 100; plugin.ServerCommand("vars.soldierHealth", health.ToString()); plugin.ServerCommand("vars.vehicleSpawnDelay", delay.
  8. I am the author Working code: First check - Code Evaluation - OnKill Put your discord webhook channel string to make it working for your discord ////////////////////////////// // ingame kd farm limit ////////////////////////////// // SETTINGS: // set max intern KDR int maxKDR = 7; double maxKPM = 2.5; double warnKDR = maxKDR * 0.9; double warnKPM = maxKPM * 0.9; // set min kills int minKills = 30; // set max warn messages before kick int warnPlayer = 5; double playerKdr = Math.Round (player.KillsRound / player.DeathsRound, 2, MidpointRounding.AwayFromZero); double pl
  9. Custom settings on round over This allows you to use custom tickrate/tickets per game mode or per map, the code has all in one to see examples first check - Code evaluation - OnRoundOver int tickets = 100; int health = 100; int delay = 100; int bleed = 100; int tickrate = 40; plugin.ServerCommand ("vars.soldierHealth", health.ToString ()); plugin.ServerCommand ("vars.vehicleSpawnDelay", delay.ToString ()); plugin.ServerCommand ("vars.ticketBleedRate", bleed.ToString ()); plugin.PRoConChat ("^bRestarted values"); plugin.ConsoleWrite ("^bRestarted values"); Thread scriptdela
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.