Jump to content
  • 0

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


III_Si_III

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. 

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • Plugin Developer

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);

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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;
	

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Plugin Developer

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...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • 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

       
      • 11 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.