Page 118 of 118 FirstFirst ... 1868108116117118
Results 1,171 to 1,179 of 1179
  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
    246
    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

  6. #1176
    Senior Member
    Join Date
    Feb 2015
    Location
    netherlands
    Posts
    322
    could use some help with a hacked code here.

    To be sure that only platoon members can join our BF4 server i modded a kick script so that only players in the lists are able to
    join the server.
    Works like a charm ^^

    evaluation: on join.

    Code:
    String msg = "This is a private platoon server, invite only,Have a nice day";
    if (!plugin.isInList(player.Name, "private_list")) {
    	plugin.KickPlayerWithMessage(player.Name, msg);
    }
    return false;
    How ever...
    i am not in for editing the perm memberlist,i added a seconds list as show below.
    for guest players i made a seconds list, ehm, but if a member joins, he get kicked.
    i am not that good, so what am i doing wrong so that both lists works properly.
    list 1 for members
    list 2 for guest players

    Code:
    String msg = "This is a private platoon server, invite only,Have a nice day";
    if ((!plugin.isInList(player.Name, "private_list")) || (!plugin.isInList(player.Name, "private_list_guest"))) {
    	plugin.KickPlayerWithMessage(player.Name, msg);
    }
    return false;

  7. #1177
    Senior Member
    Join Date
    Oct 2015
    Location
    Germany
    Posts
    279
    Quote Originally Posted by spatieman View Post
    could use some help with a hacked code here.

    To be sure that only platoon members can join our BF4 server i modded a kick script so that only players in the lists are able to
    join the server.
    Works like a charm ^^

    evaluation: on join.

    Code:
    String msg = "This is a private platoon server, invite only,Have a nice day";
    if (!plugin.isInList(player.Name, "private_list")) {
    	plugin.KickPlayerWithMessage(player.Name, msg);
    }
    return false;
    How ever...
    i am not in for editing the perm memberlist,i added a seconds list as show below.
    for guest players i made a seconds list, ehm, but if a member joins, he get kicked.
    i am not that good, so what am i doing wrong so that both lists works properly.
    list 1 for members
    list 2 for guest players

    Code:
    String msg = "This is a private platoon server, invite only,Have a nice day";
    if ((!plugin.isInList(player.Name, "private_list")) || (!plugin.isInList(player.Name, "private_list_guest"))) {
    	plugin.KickPlayerWithMessage(player.Name, msg);
    }
    return false;
    Code:
    String msg = "This is a private platoon server, invite only,Have a nice day";
    if ((!plugin.isInList(player.Name, "private_list")) && (!plugin.isInList(player.Name, "private_list_guest"))) {
    	plugin.KickPlayerWithMessage(player.Name, msg);
    }
    return false;
    Developer of the VIP Slot Manager Plugin

  8. #1178
    Senior Member
    Join Date
    Feb 2015
    Location
    netherlands
    Posts
    322
    Quote Originally Posted by maxdralle View Post
    Code:
    String msg = "This is a private platoon server, invite only,Have a nice day";
    if ((!plugin.isInList(player.Name, "private_list")) && (!plugin.isInList(player.Name, "private_list_guest"))) {
    	plugin.KickPlayerWithMessage(player.Name, msg);
    }
    return false;
    offcourse..
    i had to know it, your the man Maxdralle !

  9. #1179
    Senior Member
    Join Date
    Feb 2015
    Location
    netherlands
    Posts
    322
    so, i tried to pimp a working script so that it also logs action.
    i revamped below code

    Code:
    name: making only headshots
    evaluation: on kill
    
    first_check_expression
    ( kill.Headshot == true)
    
    second_check_code
    
    String aimbotmsg = "banned for aimbot 10 headshots < 30 sec";
    
    if ( limit.Activations(player.Name, TimeSpan.FromSeconds(30)) >  10 )
        return true;
    
    	     plugin.PBBanPlayerWithMessage(PBBanDuration.Permanent, player.Name, 0, aimbotmsg);
                 plugin.SendGlobalMessage(plugin.R("player.Name " + aimbotmsg));
    	     plugin.Log("Plugins/insanelimits-aimbot.log", plugin.R("[%date% %time%] [%server_host%] [server.Name] [player.PBGuid] [%k_cn%] player.Name " + aimbotmsg));
                 plugin.PRoConChat(player.Name + aimbotmsg);
    return false;
    well, the loging inc messaging works, but it bans players (in this case it me it banned) after making 3 normal kills
    i am not a guru, but i have the feeling i make somewhere a mistake but cant see it.
    any advice to point me in the right direction?

 

 

Posting Permissions

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