Jump to content

Insane Limits Requests


ImportBot

Recommended Posts

Originally Posted by PapaCharlie9*:

 

But there's no possibility to read everything the (server) console returns?

Nope, or else I'd have to update the plugin every time RCON changes. Procon itself doesn't provide an API for some of the return values either.

 

We have discussed a generic way to get every string returned by RCON, but it might have to wait for Procon 2.

* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 3.2k
  • Created
  • Last Reply

Originally Posted by PapaCharlie9*:

 

showthread....-Simple-punish*

 

I noticed you created a timeframe for punishing, is there a way to say, give a player 10 seconds before they can punish

I answered in the original thread.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Wlad*:

 

Hello guys,

 

I hope you can help me.

I´m trying to config this plugin but I still get an error. So can someone post me an example for that all Sniperrifles and Explosives (like nades ) are restrictions or the player get an kick and for second try an temp (1 hour) ban.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Singh400*:

 

Please post in the SCR thread what problems you are having so they can be fixed. Is it the double quote problem? That is discussed in that thread and there are workarounds.

The workaround didn't work either. I watched the plugin very carefully and the commands were being sent in the log, just that they looked malformed so it didn't stick. Re-writing it as a limit instantly fixed it for me.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

The workaround didn't work either. I watched the plugin very carefully and the commands were being sent in the log, just that they looked malformed so it didn't stick. Re-writing it as a limit instantly fixed it for me.

Okay, but still, some details about the problem in the SCR thread might lead to a solution.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Hello guys,

 

I hope you can help me.

I´m trying to config this plugin but I still get an error. So can someone post me an example for that all Sniperrifles and Explosives (like nades ) are restrictions or the player get an kick and for second try an temp (1 hour) ban.

At the moment I'm too busy working on the next patch to help write this, but I can give you or someone that can help you a start.

 

Between these two threads is the framework for what you want:

 

showthread....0-RPG-USAS-etc*

 

showthread....s-Count-As-One*

 

 

You have to update the weapon codes to BF4 from here:

 

myrcon.net/.../weapon-codes-bf3bf4bfhl

 

And remove any references to BF3 maps like Metro and various other BF3 clean-ups, but otherwise, the code you want is spread out over a few posts in those threads. So do some digging and experimenting or find someone willing to help you. There's usually one or two in this forum that do.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by ColColonCleaner*:

 

Apparently i need to post here.

 

@Papa

 

Thought about a way to have limit actions send through AdKats. Does the second limit have access to ExecuteCommand? If it did i could just write a limit to include a "procon.protected.plugins.call" on AdKats with the needed parameters to get the job done. Let me know.

 

Currently getting these errors:

 

Code:

[20:18:07 96] [Insane Limits] ERROR: (CS0117, line: 55, column: 20):  'PRoConEvents.PluginInterface' does not contain a definition for 'ExecuteCommand'
[20:18:07 97] [Insane Limits] ERROR: (CS0103, line: 55, column: 110):  The name 'JSON' does not exist in the current context
When attempting to use this in the second check:

 

Code:

//Activations within 5 seconds count as 1
TimeSpan time = TimeSpan.FromSeconds(5);
if (limit.Activations(killer.Name, time) > 1) return false;

//Build the request to send to AdKats for action handling
Hashtable request = new Hashtable();
request["source_name"] = "InsaneLimits";
request["target_name"] = killer.Name;
request["command_type"] = "Punish";
//request["command_numeric"] = 0;
request["record_message"] = plugin.R("Using Restricted Weapon: %w_n%!");

// Send the request
plugin.ExecuteCommand("procon.protected.plugins.call", "AdKats", "PerformExternalPluginCommand", JSON.JsonEncode(request));
What should i do to get this working?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by SSergeantBryan*:

 

all you should have to do is change the first_check part of the code, the part in red:

 

Code:

( Regex.Match(server.MapFileName, @"(_:MP_Prison)", RegexOptions.IgnoreCase).Success && Regex.Match(kill.Weapon, @"(_:M320|RPG|SMAW|Death|M67|C4)", RegexOptions.IgnoreCase).Success )
Just add the weapons that are missing. Use the shortest possible CORRECT name for the weapon. Use the codes from here:

 

myrcon.net/.../weapon-codes-bf3bf4bfhl

 

For example, to add U_V40 and U_XM25, you would change it to this:

 

Code:

( Regex.Match(server.MapFileName, @"(_:MP_Prison)", RegexOptions.IgnoreCase).Success && Regex.Match(kill.Weapon, @"(_:M320|RPG|SMAW|Death|M67|C4|V40|XM25)", RegexOptions.IgnoreCase).Success )
Notice that I removed the U? prefix.
PaPa, thank you so much for your advice, BTW, I've another issue regarding the weapons, I've no idea why the server only have the basic weapon instead of base on stats...hopefully could help you kindly advice on my BIG issue too, thanks.

 

P.S I've choose "rank on stats in Pron.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Tomgun*:

 

im sure someone did a racist word kicker but for the life of me I cant find where it is, ive found the bad word one but im sure someone did a version where is looks for all variations aswell like the following for the word noob

 

List bad_words = new List();

bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[3e]+[ -/:-@[-`{-~£]*w+[ -/:-@[-`{-~£]*[bp].*");

bad_words.Add(@".*b+[ -/:-@[-`{-~£]*[o0]{2,}[ -/:-@[-`{-~£]*n.*");

bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[4aiu*]+[ -/:-@[-`{-~£]*b.*");

bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[o0]+[ -/:-@[-`{-~£]*[bp]{2,}.*");

bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[o0u]+[ -/:-@[-`{-~£]*[o0u]+[ -/:-@[-`{-~£]*[bp].*");

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LumPenPacK*:

 

Have you already tried it? I don't see any reason why it shouldn't work with BF4

 

On Join

First check epression

Code:

player.Spm > 1500.0 && player.Kdr > 5.0
Second check code:

Code:

plugin.KickPlayerWithMessage(player.Name, plugin.R("your message"));
return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Singh400*:

 

Good to know, I'll also check this. All those different XP boosts could be a problem.

Yep, that's my thought too. SPM is incredibly unreliable for cheat checking now. You'd be better off sticking to KDR and ACC.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Yep, that's my thought too. SPM is incredibly unreliable for cheat checking now. You'd be better off sticking to KDR and ACC.

BF4 hasn't been out long enough for any of those stats to be useful. Even without XP boosts, a level 4 noob can have an SPM that's twice that of a level 47 pro, just by running around a Conquest server capping flags with 3 other friends. KDR can get blown out by sitting on Zavod 311 roof tops sniping all day long.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

im sure someone did a racist word kicker but for the life of me I cant find where it is, ive found the bad word one but im sure someone did a version where is looks for all variations aswell like the following for the word noob

 

List bad_words = new List();

bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[3e]+[ -/:-@[-`{-~£]*w+[ -/:-@[-`{-~£]*[bp].*");

bad_words.Add(@".*b+[ -/:-@[-`{-~£]*[o0]{2,}[ -/:-@[-`{-~£]*n.*");

bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[4aiu*]+[ -/:-@[-`{-~£]*b.*");

bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[o0]+[ -/:-@[-`{-~£]*[bp]{2,}.*");

bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[o0u]+[ -/:-@[-`{-~£]*[o0u]+[ -/:-@[-`{-~£]*[bp].*");

Singh400 had one, ask him.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Have you already tried it? I don't see any reason why it shouldn't work with BF4

 

On Join

First check epression

Code:

player.Spm > 1500.0 && player.Kdr > 5.0
Second check code:

Code:

plugin.KickPlayerWithMessage(player.Name, plugin.R("your message"));
return false;
At a minimum, I'd add a check to make sure the player has been playing at least 50 hours before I'd trust any of the stat averages. So add && (player.Time > 60*60*50) somewhere.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Kinsman*:

 

Thanks, fully understand the Insane (sorry pun) Stats currently, and adding the 50 hours is a great idea, but I'm unsure how to add it?

 

Also we will start with K/D 6.0 and SPM 2000 for now, and work our way down as the game matures I guess. Is it also worth adding ACC?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Thanks, fully understand the Insane (sorry pun) Stats currently, and adding the 50 hours is a great idea, but I'm unsure how to add it?

OnSpawn

First check epression

Code:

(player.Time > 50*60*60) && player.Kdr > 8.0
Second check code:

Code:

plugin.KickPlayerWithMessage(player.Name, plugin.R("your message"));
return false;
player.Time is seconds, so to make hours you have to use 60*60, which means 60 minutes x 60 seconds.

 

I removed spm and I made kdr be greater than 8.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by lordicon*:

 

I have been trying to use the Pistol Only Server code which is not working for some reason. For example if someone uses the QSZ-92 they get warned and kicked when they shouldn't be. Here is what I have so far.

 

first_check

Code:

! Regex.Match(kill.Weapon, @"(P226|M9|QSZ-92|MP443|G18|FN57|M1911|93R|CZ-75|.44 MAGNUM|COMPACT 45|M412 REX|HAND FLARE|M18 SMOKE|M320 SMK|XM25 SMOKE|MELEE)", RegexOptions.IgnoreCase).Success
second_check

Code:

double count = limit.Activations(player.Name);

     if (count == 1)
         plugin.SendGlobalMessage(plugin.R("%p_n%, this is a pistol and melee only server, do not use the %w_n% again! Next time kicked"));
     else if (count > 1)
         plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for killing %v_n% with a %w_n% on a pistol/melee only server"));
     
     return false;
I am thinking that its not working because of the names of the items with spaces and - if you can help it would mean a lot. the items in the first_check are the only ones allowed. I want to disallow everything else.

 

Also getting this when adding the code.

Code:

[19:50:58 14] [Insane Limits] WARNING: second_check_code is empty for Limit #1
[19:51:01 79] [Insane Limits] Compiling Limit #1 - Pistols and Melee Only - OnKill
[19:51:01 79] [Insane Limits] WARNING: second_check_code is empty for Limit #1
[19:51:11 63] [Insane Limits] Compiling Limit #1 - Pistols and Melee Only - OnKill/
Also when a player dies by a headshot it shows up in the list as [M9|-HEADSHOT-] and I am wondering if that is whats happening.

 

1ST EDIT:

Just changed the first_check to this to try it out, however still may need help.

Code:

!Regex.Match(kill.Weapon, @"(DamageArea|Death|Melee|SoldierCollision|Suicide|U_Defib|U_Medkit|U_PortableMedicpack|U_Repairtool|U_Taurus44|U_HK45C|U_CZ75|U_FN57|U_Glock18|U_M1911|U_M9|U_M93R|U_MP412Rex|U_MP443|U_P226|U_QSZ92|U_AK12_M320_SMK|U_M320_SMK|U_M416_M320_SMK|U_SAR21_M320_SMK|U_XM25_Smoke|U_AEK971_M320_SMK|U_Handflare)", RegexOptions.IgnoreCase).Success
2ND EDIT

This is also not catching every time a person does this, And its also not kicking at all.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Also getting this when adding the code.

Code:

[19:50:58 14] [Insane Limits] WARNING: second_check_code is empty for Limit #1
[19:51:01 79] [Insane Limits] Compiling Limit #1 - Pistols and Melee Only - OnKill
[19:51:01 79] [Insane Limits] WARNING: second_check_code is empty for Limit #1
[19:51:11 63] [Insane Limits] Compiling Limit #1 - Pistols and Melee Only - OnKill/
...

 

2ND EDIT

This is also not catching every time a person does this, And its also not kicking at all.

The plugin is telling you that you didn't paste the second_check code correctly. Since the warn/kick is in second_check, it makes sense that no one is getting kicked. Try pasting the code into second_check again. Make sure it is set to Code.

 

For you latest Regex weapon codes, its overkill but it should work. You can drop the U? for each code, its not needed. Also, if just use M320, it will cover all of the codes that contain M320.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by p19blo*:

 

hello

 

My clan used to use a plugin that wouldnt allow certain player tags into a server, and it would kick them, telling them to change the tags.

 

Is there a way for limits to only allow certain tags to join a server ?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Singh400*:

 

But there's no possibility to read everything the (server) console returns?

No, not AFAIK. Anyway that would be a very intensive process. Is there something in particular you wanted to do?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

hello

 

My clan used to use a plugin that wouldnt allow certain player tags into a server, and it would kick them, telling them to change the tags.

 

Is there a way for limits to only allow certain tags to join a server ?

Yes, search for Simple Clan Tag Kicker in Insane Examples.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by electron*:

 

Request: Advanced Sniper Rifle Limiter.

 

Hello,

 

I have about zero skill in writing limits/code, if anyone is up to making this pluing, we would greatly appreaciate it.

 

Short version:

x% of sniper rifles in use in each squad.

x kills with unauthorized sniper rifle before admin kill.

 

Long version:

We would like to limit the amount of sniper rifles in each squad. This to prevent too many becoming lone snipers.

Preferably you can set a percentage of how many players can use sniper rifles, f.ex. 25% of players in each squad can be a sniper, so in essence there can be 1 sniper in a 4 and a 5 man squad, if there are only 3 people in the squad, there can be no snipers. If limit is set to 40%, there can be 0/1 0/2 1/3 1/4 2/5. etc etc.

 

Optimally, it will announce in each Squad how many sniper rifles are availible, and how many are in use "Sniper limit: 1 of 2 in use". This should also announce when a player is no longer using a sniper rifle.

 

We are not a fan of insta-kills when you use a sniper rifle, so preferably, it will announce to the person, "You have used 1 of 3 allowed sniper rfile kills". On the 4th kill, the player is admin killed.

 

Alternative:

Percentage of players on the team can be snipers (so it adjusts to amount of players on the server)

x amounts of kills with sniper rifles, with warning after each kill.

Automatic messages to team of how many sniper rifles are in use.

 

We obviously don't want to limit the use of the Recon kit or DMR.

 

Thank you

electron

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by IAF-SDS*:

 

Hey Papa.

 

After our testing of the temporary mute limit, here's the updated request you wanted me to post for a MUTE Limit to be used by BF4 servers (I assume it would not be any different for BF3).

 

This mute limit is an alternative method to mute players who are just regularly disruptive (since normal chat muting is not available in BF4), and it will automatically kill/kick/tempban a specific player whenever he types anything in chat as follows:

 

 

 

1) Player X is placed on an IL List called "MUTEList" with his EA_GUID and/or PlayerName.

In my testing, we encountered one player who changed his name specifically to avoid this mute limit, which is why the guid is better.

 

2) Player X types in chat and immediately this private chat messages is sent to him:

%p_fn% you have been MUTED INDEFINITELY for being disruptive. You will be auto killed/kicked after you chat!

 

Then, 10 seconds later he is automatically admin killed.

 

I found a 10 second delay before he was admin killed gave him enough time to read the warning and still provided a nice wakeup because the admin kill feels aggressive in BF4. The message above fits the maximum character limit for chat.

 

3) Each time he chats on the 2nd and 3rd time, Player X is given the same private message and then admin killed 10 seconds later as shown in number 2 above.

 

4) Since Player X can spam the chat when he's dead without being admin killed, on the 4th time he types anything in chat, he is kicked with this reason:

%p_fn% KICKED and MUTED INDEFINITELY for being disruptive!

 

5) If Player X comes back after the kick and types in chat again (5th time), he is instantly temp banned by EA_GUID for 1 day with this kick reason:

%p_fn% TEMP BAN 1 DAY and MUTED INDEFINITELY for being disruptive!

 

 

 

 

 

.

* Restored post. It could be that the author is no longer active.
Link to comment

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.