Jump to content
  • 0
III_Si_III

Trying to find some old limits (insane limits or procon rules)

Question

Hiya, we have just started up a server again but lost a lot of our old limits we had written (well my friend wrote I am terrible at them). 

 

Does anyone have a decent sniper limit and KDR kicker for insane limits or something similar we could copy and past? 

 

many thanks. 

Share this post


Link to post
Share on other sites

15 answers to this question

Recommended Posts

  • 0

i am sure that a collection of the important scripts will come back soon here on the forum.

but for the first you can use this:


proconrulz, sniper limit:

code:

###  ProconRulz - Sniper Limit

# IMPORTANT: HERE YOU CAN SET THE # OF SNIPER SLOT EACH TEAM:
On Kill;ServerFirst; Set %server_sniperlimit% 4
On Say;ServerFirst; Set %server_sniperlimit% 4

# KILL CHECK - RESERVE SNIPER-SLOT AFTER SNIPER KILL - NO FREE SLOT THAN KILL + MESSAGE
On Kill;Damage SniperRifle,DMR;
    If %server_global_snipers[%ptk%]% >= %server_sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; Incr %sniperlimit_warning%; if %sniperlimit_warning% > 4; TeamSay SNIPER-LIMIT: %p% KICKED (20 min. timeban) by sniper limit (max %server_sniperlimit% snipers each team). Type !sniper; TempBan 1200 SNIPER-LIMIT - type !sniper to check the sniper slots before you use a sniper
    If %server_global_snipers[%ptk%]% >= %server_sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; if %sniperlimit_warning% > 2; TeamSay SNIPER-LIMIT: %p% was KICKED by sniper limit (max %server_sniperlimit% snipers each team). Type !sniper; Kick SNIPER-LIMIT - type !sniper to check the sniper slots before you use a sniper
    If %server_global_snipers[%ptk%]% >= %server_sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; TeamSay SNIPER-LIMIT: %p% was KILLED by sniper limit (max %server_sniperlimit% snipers each team). Type !sniper; PlayerYell KILLED by sniper limit - (warining %sniperlimit_warning%/2); Kill 100
    If %server_global_snipers[%ptk%]% < %server_sniperlimit%; If %server_global_playersniperstatus[%p%][%ptk%]% != 1; Set %sniperlimit_warning% 0; Set %server_global_playersniperstatus[%p%][%ptk%]% 1; Incr %server_global_snipers[%ptk%]%; TeamSay SNIPER-LIMIT: %p% have a sniper slot (%server_global_snipers[%ptk%]%/%server_sniperlimit%); PlayerSay SNIPER-LIMIT: Allowed weapons: Sniper, DMR, Pistol, Nades, Knife; PlayerYell YOU HAVE A SNIPER SLOT

# MAKE sniper-SLOT FREE AFTER NO sniper KILL - (allowed kills with sniper slot: sniper, Pistole, Nades, Knife, Vehicles...)
On Kill; Not Damage SniperRifle; Not Damage DMR;Not Damage Explosive;Not Damage Handgun;Not Damage Melee;Not Damage VehicleWater;Not Damage VehicleAir;Not Damage VehicleStationary;Not Damage VehiclePersonal;Not Damage VehicleTransport;Not Damage VehicleLight;Not Damage VehicleHeavy; Not Weapon U_M67,U_Grenade_RGO,U_V40,U_M34,DamageArea,SoldierCollision,Death,RoadKill,VehicleUpsideDown,Suicide,U_BallisticShield,U_SUAV; ; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay SNIPER-LIMIT: %p% gave up his sniper slot (%server_global_snipers[%ptk%]%/%server_sniperlimit%); PlayerYell You lost your sniper slot
On Leave; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay SNIPER-LIMIT: %p% gave up his sniper slot (%server_global_snipers[%ptk%]%/%server_sniperlimit%)

# SERVER LEAVE + TEAM SWITCH CHECK
On Spawn;
    if %ptk% != 0; if %server_global_playersniperstatus[%p%][0]% == 1; Set %server_global_playersniperstatus[%p%][0]% 0; PlayerSay SNIPER-LIMIT: You lost your sniper slot (Team-Switch); PlayerYell You lost your sniper slot
    if %ptk% != 1; if %server_global_playersniperstatus[%p%][1]% == 1; Set %server_global_playersniperstatus[%p%][1]% 0; PlayerSay SNIPER-LIMIT: You lost your sniper slot (Team-Switch); PlayerYell You lost your sniper slot
    if %ptk% != 2; if %server_global_playersniperstatus[%p%][2]% == 1; Set %server_global_playersniperstatus[%p%][2]% 0; PlayerSay SNIPER-LIMIT: You lost your sniper slot (Team-Switch); PlayerYell You lost your sniper slot
    if %ptk% != 3; if %server_global_playersniperstatus[%p%][3]% == 1; Set %server_global_playersniperstatus[%p%][3]% 0; PlayerSay SNIPER-LIMIT: You lost your sniper slot (Team-Switch); PlayerYell You lost your sniper slot
On Leave; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; Set %server_global_playersniperstatus[%p%][%ptk%]% 0; Decr %server_global_snipers[%ptk%]%; TeamSay SNIPER-LIMIT: %p% gave up his sniper slot (%server_global_snipers[%ptk%]%/%server_sniperlimit%)

# !sniper IN-GAME-CHAT COMMAND
On Say;Text !sniper; Say SNIPER-LIMIT: Sniper are limited (max %server_sniperlimit% snipers each team).; TeamSay SNIPER-LIMIT: Currently: %server_global_snipers[%ptk%]% of %server_sniperlimit% for your team; If %server_global_playersniperstatus[%p%][%ptk%]% == 1; PlayerSay SNIPER-LIMIT: You have a sniper slot!


###  ProconRulz - Sniper Limit END

insane limits, kd limit:

limit_evaluation: OnSpawn

limit_first_check: Code

limit_action: none

 

code:

//    KD LIMIT - ON SPAWN CHECK    //
// info > insane limits settings: limit_evaluation: OnSpawn     ;     limit_first_check: Code       ;        limit_action: none


// SETTINGS //

double MaxKD = 3.5;      // CUSTOMIZE: max KD (Battlelog current + all-time stats without stats reset)
bool PutReservedSlotsInWhitelist = true;      // CUSTOMIZE: true = all players with reserved slots are in the whitelist

// SETTING END //





// check on first spawn only
int checkDone = 0;
if (player.Data.issetInt("join_checker_" + player.Name)) checkDone = player.Data.getInt("join_checker_" + player.Name);
if (checkDone == 1) {return false;}

// VIP SLOT WHITELIST
if (PutReservedSlotsInWhitelist) {
    if (plugin.GetReservedSlotsList().Contains(player.Name)) {
        player.Data.setInt("join_checker_" + player.Name, 1);
        return false;
    }
}

// KD LIMIT
double TmpPlayerKD = player.Kdr;
double TmpPlayerKDv2 = Math.Round((player.Kills / player.Deaths), 2);
if (!(TmpPlayerKD >= 0)) { TmpPlayerKD = 0; }
if (!(TmpPlayerKDv2 >= 0)) { TmpPlayerKDv2 = 0; }

if ((TmpPlayerKD > MaxKD) || (TmpPlayerKDv2 > MaxKD)) {
    plugin.PRoConChat("IL > ^1^bKD LIMIT:^0^n " + player.Name + " KICKED by KD limit. Max KD " + MaxKD.ToString() + " > Player KD: " + TmpPlayerKD.ToString() + " (all-time: " + TmpPlayerKDv2.ToString() + ")");
    plugin.ConsoleWrite("IL > ^1^bKD LIMIT:^0^n " + player.Name + " KICKED by KD limit. Max KD " + MaxKD.ToString() + " > Player KD: " + TmpPlayerKD.ToString() + " (all-time: " + TmpPlayerKDv2.ToString() + ")");
    plugin.SendPlayerYell(player.Name, " [KD LIMIT]\n " + player.Name + " you will be KICKED by KD limit. Max KD " + MaxKD.ToString(), 15);
    plugin.SendPlayerMessage(player.Name, player.Name + " you will be KICKED by KD limit. Max KD " + MaxKD.ToString(),3);
    plugin.SendPlayerMessage(player.Name, player.Name + " you will be KICKED by KD limit. Max KD " + MaxKD.ToString(),10);
    // kick player with delay
    Thread Kicker1 = new Thread(new ThreadStart(delegate() {
        Thread.Sleep(10000);
        plugin.SendPlayerYell(player.Name, " [KD LIMIT]\n " + player.Name + " you will be KICKED by KD limit. Max KD " + MaxKD.ToString(), 10);
        Thread.Sleep(5000);
        plugin.KickPlayerWithMessage(player.Name, plugin.R("KD LIMIT: Kicked by KD limit (max " + MaxKD.ToString() + " KD in Battlelog/all time stats)"));
    }));
    Kicker1.IsBackground = true;
    Kicker1.Name = "kicker1";
    Kicker1.Start();
    return false;
}

player.Data.setInt("join_checker_" + player.Name, 1);

 

Share this post


Link to post
Share on other sites
  • 0

Just a quick question ... back when we hosted our old server, we noticed the players who were either cheating or suspect if you will ... they had very high KDs like 3.5+. What in your opinion would be a good range to set? I currently have our KD Limit set to 2.5.

Edited by Kracklin_Bacon

Share this post


Link to post
Share on other sites
  • 0

Hi,

Is it possible to turn on/off plugins from with in other plugins in BF4.

 

Example:

Have a vote system running at start of round in insane limits:

vote 1 - Sniper limit

vote 2 - No Sniper limit

 

If vote 1 meets target then turn on procon rulz where sniper limit code is.

If vote 2 meets target then turn off procon rulz.

 

Trying to find an easy way to get this functionality??  any ideas?

Share this post


Link to post
Share on other sites
  • 0

Hi,

 

Do the commands still work?

if so there is the possibility to create a Battlelog KDR Kicker with a KDR 2.0.

Please help.

thank you

Share this post


Link to post
Share on other sites
  • 0

Hello maxdralle,

the Insane Limit plugin does not execute any commands or commands.

can you give me an example that works 100%?

Thanks a lot.

Share this post


Link to post
Share on other sites
  • 0

norman ,question, you a server with active punkbuster ?? , IL seems to nag if a server has no punkbuster running.

 

 

Share this post


Link to post
Share on other sites
  • 0

Hello iamadeadpixel,

Punkbuster is active.

when i activate the plugin i only get these messages.
[13:40:28 17] [Insane Limits] Battlelog Cache plugin will be used for stats fetching!
[13:40:28 37] [Insane Limits] Thread (activator): Waiting for privacy_policy_agreement value
[13:40:28 37] [Insane Limits] Thread (activator): Agreement received, activating plugin now!
[13:40:31 35] [Insane Limits] Thread (settings): Version = 0.9.17.0
[13:40:34 41] [Insane Limits] Thread (fetch): DONE inserting 1 new players, 0 still in queue, took a total of 2 secs

Share this post


Link to post
Share on other sites
  • 0

Ejh, ok..

 

Try this, this is a troll script.

	Works best on: BF3 / BF4
name: anti hacker trol
evaluation: onintervalserver
evaluation_interval 900
	first_check: code
 
	// AntiHacker Troll - Limit 1 of 1
// v1.0 - OnIntervalServer - first_check
//
	String[] sMsgs = { "[PBBANS] Potential Hacker Detected...",
                   "[PBBANS] Running Server-side Scan..." };
	plugin.SendGlobalYell("\n" + sMsgs[0] + "\n" + sMsgs[1], 8);
for (int i = 0; i < sMsgs.Length; i++)
{
    plugin.SendGlobalMessage(sMsgs[i]);
}
	return false;
	

Share this post


Link to post
Share on other sites
  • 0

Hello maxdralle,

my server is running at Gamed! they put on the new Procon version today and I also use the new Procon version.

I deleted the file on my Server PluginCache.xml and a new PluginCache.xml file was created.

Unfortunately, the commands still don't work.

Here is an example:

image.png.20a609f6915e671cc6f0b823352849e7.png

Share this post


Link to post
Share on other sites
  • 0

ohh no, please not gamed.de... few years ago the provider gamed.de does blocking many things in the procon layer server, (file permission, ips etc). you can not use the plugin insane limits on this provider...

Share this post


Link to post
Share on other sites
  • 0

gamed.de always gave me some punkbuster init errors. 
also a limit of KDR 2 is a joke.

Share this post


Link to post
Share on other sites
  • 0

well, should have somewhere a more advance script that does the same, but start KD check at a sertain level..

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Our picks

    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 10 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • 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.