Page 118 of 118 FirstFirst ... 1868108116117118
Results 1,171 to 1,175 of 1175
  1. #1171
    Quote Originally Posted by LCARSx64 View Post
    These may be your problem. Plugins in Procon execute in alphabetical order, the delay set in the limit needs to be long enough to ensure that it executes after UMM & xVotemap.
    Ok, so as a test, I disabled those plugins, restarted the layer and put this command in the console to test it:
    plugin.ServerCommand("mapList.runNextRound");

    Didn't do anything. Map didn't change on the server.

  2. #1172
    I want to switch this code from kick To block All explosives
    NOT KICK OR KILLING OR ROUND BAN

    /* Version: V0.8/R1 */
    String kCounter = killer.Name + "_TreatAsOne_Count";
    TimeSpan time = TimeSpan.FromSeconds(5); // Activations within 5 seconds count as 1

    int warnings = 0;
    if (server.Data.issetInt(kCounter)) warnings = server.Data.getInt(kCounter);

    /*
    The first time through, warnings is zero. Whether this is an isolated
    activation or the first of a sequence of activations in a short period
    of time, do something on this first time through.
    */
    String msg = "none";
    if (warnings == 0) {
    msg = plugin.R("Attention %k_n%! Do not use %w_n%!"); // First warning message
    plugin.SendGlobalMessage(msg);
    plugin.PRoConChat("ADMIN > " + msg);
    server.Data.setInt(kCounter, warnings+1);
    return false;
    }

    /*
    The second and subsequent times through, check to make sure we are not
    getting multiple activations in a short period of time. Ignore if
    less than the time span required.
    */

    if (limit.Activations(killer.Name, time) > 1) return false;

    /*
    We get here only if there was exactly one activation in the time span
    */

    if (warnings == 1) {
    msg = plugin.R("FINAL WARNING %k_n%! Do not use %w_n%!"); // Second warning message
    plugin.SendGlobalMessage(msg);
    plugin.PRoConChat("ADMIN > " + msg);
    } else if (warnings >= 2) {
    msg = plugin.R("Kicking %k_n% for ignoring warnings and killing with %w_n%!");
    plugin.SendGlobalMessage(msg);
    plugin.PRoConChat("ADMIN > " + msg);
    plugin.PRoConEvent(msg, "Insane Limits");
    plugin.KickPlayerWithMessage(killer.Name, msg);
    }
    server.Data.setInt(kCounter, warnings+1);
    return false;
    Last edited by m1o2u3s4; 04-06-2017 at 15:39.

  3. #1173
    Where do I find a list of weapon names to use when limiting them?

    Thanks!

  4. #1174
    Quote Originally Posted by BitterLooter View Post
    Ok, so as a test, I disabled those plugins, restarted the layer and put this command in the console to test it:
    plugin.ServerCommand("mapList.runNextRound");

    Didn't do anything. Map didn't change on the server.
    If you type mapList.runNextRound in the console it works. plugin.ServerCommand("text_here") tells insane limits to put text_here in the console.
    Last edited by Link4134; 05-08-2017 at 17:21.

  5. #1175
    Senior Member
    Join Date
    Apr 2013
    Location
    Russia
    Posts
    240
    Quote Originally Posted by Link4134 View Post
    Where do I find a list of weapon names to use when limiting them?

    Thanks!
    Open file "\Procon\Configs\BF4.def"
    Search section where strings starts with "procon.protected.weapons"
    There are weapons with names and categories
    or
    go there https://forum.myrcon.com/showthread....s-BF3-BF4-BFHL

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •