Jump to content

Insane Limits - Examples


ImportBot

Recommended Posts

Originally Posted by TermiBr%FCll*:

 

Bin wohl zu alt, funzt nicht :huh:

Sonnst bekomme ich alles hin, aber der Code schafft mich :smile:

Falscher Gedanke= Procon> ProconRulz> Rules player.Rank > 90 einfügen_!

 

Gruß aus Berlin

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

Originally Posted by HexaCanon*:

 

Bin wohl zu alt, funzt nicht :huh:

Sonnst bekomme ich alles hin, aber der Code schafft mich :smile:

Falscher Gedanke= Procon> ProconRulz> Rules player.Rank > 90 einfügen_!

 

Gruß aus Berlin

ProconRulz ?

 

Sie wollen alle die Stufe 90 + ist kicken?

 

oder

 

Sie wollen nur die Menschen, die Level 90 + sind zu spielen?

 

google translate.

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

Originally Posted by HexaCanon*:

 

player.Rank > 90

Player over rank 90 kick

REMEMBER

rank 90 = COLONEL SERVICE STAR 45

rank 135 = COLONEL SERVICE STAR 90

REMEMBER

 

Limit_x_evaluation : OnJoin

 

first check EXPRESSION

 

Code:

player.Rank > XX
replace XX with the rank you want to kick.

 

Action : Kick.

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

Originally Posted by HexaCanon*:

 

Hello, help me with the plugin! I want to limit the server M320, and mortars, that after the first killing warning and then a kick from the server! thanks in advance

www.phogue.net/forumvb/showth...0-RPG-USAS-etc*
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by psicologic*:

 

depending on the number of players changes the minimum downtime ( Timeout ).

I hope that the code is fine.

 

Set a limit to evaluate OnLeave, and action to None

 

Set first_check to this Code:

Code:

if (server.PlayerCount  <= 6 )
plugin.ServerCommand("vars.idleTimeout" , "0");


else

if (server.PlayerCount  <= 20 )
plugin.ServerCommand("vars.idleTimeout" , "800");


else

if (server.PlayerCount  <= 40 )
plugin.ServerCommand("vars.idleTimeout" , "500");

else

if (server.PlayerCount  > 40 )
plugin.ServerCommand("vars.idleTimeout" , "300");
is as expected because it evaluates OnLeave until the last to leave the server, and you can change the values ??or add more "if"

 

Sorry, my english is bad, im spanish.xD

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

Originally Posted by psicologic*:

 

Each time the server is empty, if there are ways that do not favor the rotation, the advances.

 

Set the limit to evaluate for OnIntervalServer, and set the action to None

 

Set first_check to this Expression:

Code:

(true)
Set the second_check to this Code:

 

Code:

List<String> map_modes = new List<String>();
map_modes.Add("TeamDeathMatch0");
map_modes.Add("SquadDeathMatch0");

if (server.PlayerCount  <= 1 && map_modes.Contains(server.Gamemode))
plugin.ServerCommand("mapList.runNextRound");

else
return false;
If anyone knows how to improve it please appreciate it. I really works well.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

depending on the number of players changes the minimum downtime ( Timeout ).

I hope that the code is fine.

 

Set a limit to evaluate OnLeave, and action to None

 

Set first_check to this Code:

Code:

if (server.PlayerCount  <= 6 )
plugin.ServerCommand("vars.idleTimeout" , "0");


else

if (server.PlayerCount  <= 20 )
plugin.ServerCommand("vars.idleTimeout" , "800");


else

if (server.PlayerCount  <= 40 )
plugin.ServerCommand("vars.idleTimeout" , "500");

else

if (server.PlayerCount  > 40 )
plugin.ServerCommand("vars.idleTimeout" , "300");
is as expected because it evaluates OnLeave until the last to leave the server, and you can change the values ??or add more "if"

 

Sorry, my english is bad, im spanish.xD

Your English is better than my Spanish!

 

The code could be improved a little. For example, if no one leaves and it goes straight from 0 to 41 in the first round, the idle time will still be 0. So you should base the limit OnIntervalServer set to 30 seconds instead of OnLeave.

 

Also, you need some { curly braces } around each statement:

 

Code:

if (server.PlayerCount  <= 6 )
{
plugin.ServerCommand("vars.idleTimeout" , "0");
}


else

if (server.PlayerCount  <= 20 )
{
plugin.ServerCommand("vars.idleTimeout" , "800");
}


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

Originally Posted by PapaCharlie9*:

 

Each time the server is empty, if there are ways that do not favor the rotation, the advances.

 

Set the limit to evaluate for OnIntervalServer, and set the action to None

 

Set first_check to this Expression:

Code:

(true)
Set the second_check to this Code:

 

Code:

List<String> map_modes = new List<String>();
map_modes.Add("TeamDeathMatch0");
map_modes.Add("SquadDeathMatch0");

if (server.PlayerCount  <= 1 && map_modes.Contains(server.Gamemode))
plugin.ServerCommand("mapList.runNextRound");

else
return false;
If anyone knows how to improve it please appreciate it. I really works well.
How many seconds is OnIntervalServer set to? Since you can't set it more than 120 seconds, that means the levels could load very rapidly and frequently if the server is empty. Unless that's what you meant to do, skip over TDM and SQDM until you find some other mode?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by psicologic*:

 

Your English is better than my Spanish!

 

The code could be improved a little. For example, if no one leaves and it goes straight from 0 to 41 in the first round, the idle time will still be 0. So you should base the limit OnIntervalServer set to 30 seconds instead of OnLeave.

 

Also, you need some { curly braces } around each statement:

 

Code:

if (server.PlayerCount  <= 6 )
{
plugin.ServerCommand("vars.idleTimeout" , "0");
}


else

if (server.PlayerCount  <= 20 )
{
plugin.ServerCommand("vars.idleTimeout" , "800");
}


else
...
Thanks, got leave and no interval for he considers it would not give so much work, but you're right .. and certainly with {} is more correct, thanks. :ohmy:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by psicologic*:

 

How many seconds is OnIntervalServer set to? Since you can't set it more than 120 seconds, that means the levels could load very rapidly and frequently if the server is empty. Unless that's what you meant to do, skip over TDM and SQDM until you find some other mode?

effectively the interval I have it set at 60 and in my case I have a map Rush after each TDM or SQDM.

 

* first try to find a method that was empty when the server or a single player and was with TDM or SQDM put a particular map (Rush Grand Bazaar), but found no effective method. So improvise this solution. So if a player enters, may make more goals until they have as players and 2 players can play TDM or SQDM.

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

Originally Posted by aduh*:

 

This limit combines both Kdr, and Accuracy measurements from Battlelog to kick suspicious players.

 

Set limit to evaluate OnJoin, and action to Kick

 

Set first_check to this Expression:

 

Code:

(  player.Kdr > 4.0   ||  player.Accuracy > 50  )
You may adjust the values of Kdr, and Accuracy as you see fit.
How can I add a "white list" with players excluded from that limit ?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TermiBr%FCll*:

 

REMEMBER

rank 90 = COLONEL SERVICE STAR 45

rank 135 = COLONEL SERVICE STAR 90

REMEMBER

 

Limit_x_evaluation : OnJoin

 

first check EXPRESSION

 

Code:

player.Rank > XX
replace XX with the rank you want to kick.

 

Action : Kick.

Is That correct?

On Join;kick player.Rank > 125

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

Originally Posted by GroundnPownd*:

 

Hi apologies if it is posted here already, i cant find it. Im trying to do two things setup a server that is sniper only, and setup a server which allows all weapons but the knife, both ending in the player being kicked.

Thanks

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

Originally Posted by HexaCanon*:

 

Hi apologies if it is posted here already, i cant find it. Im trying to do two things setup a server that is sniper only, and setup a server which allows all weapons but the knife, both ending in the player being kicked.

Thanks

www.phogue.net/forumvb/showth...0-RPG-USAS-etc*

 

First check code

 

Sniper only

Code:

!Regex.Match(kill.Weapon, @"(_:JNG90|M417|L96|M39|M40A5|Mk11|Model98B|QBU-88|SKS|SV98|SVD)", RegexOptions.IgnoreCase).Success
no knife allowed

Code:

Regex.Match(kill.Weapon, @"(_:ACB-90|Knife|Melee)", RegexOptions.IgnoreCase).Success
second check code

Code:

/* 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;
* Restored post. It could be that the author is no longer active.
Link to comment
  • 5 weeks later...
  • 4 weeks later...

Originally Posted by psicologic*:

 

I'm not sure that is correct. I created a script that:

 

Depending on the map Gunmaster it puts a rotation or another:

 

Interval: OnRoundOver

 

 

First Check:

 

Code:

List<String> map_modes = new List<String>();
map_modes.Add("GunMaster0");

List<String> map_names = new List<String>();
map_names.Add("XP4_Parl");

List<String> map_names0 = new List<String>();
map_names0.Add("XP4_FD");

List<String> map_names1 = new List<String>();
map_names1.Add("XP4_Quake");

List<String> map_names2 = new List<String>();
map_names2.Add("XP4_Rubble");

if (map_modes.Contains(server.NextGamemode) && map_names.Contains(server.NextMapFileName))
{
plugin.ServerCommand("vars.gunMasterWeaponsPreset", "6");
}
else

if (map_modes.Contains(server.NextGamemode) && map_names0.Contains(server.NextMapFileName))
{
plugin.ServerCommand("vars.gunMasterWeaponsPreset", "5");
}
else

if (map_modes.Contains(server.NextGamemode) && map_names1.Contains(server.NextMapFileName))
{
plugin.ServerCommand("vars.gunMasterWeaponsPreset", "3");
}
else

if (map_modes.Contains(server.NextGamemode) && map_names2.Contains(server.NextMapFileName))
{
plugin.ServerCommand("vars.gunMasterWeaponsPreset", "7");
}
else

{
plugin.ServerCommand("vars.gunMasterWeaponsPreset ", "2");
}
Action: None
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by cloverdefa*:

 

This limit will check for how many times a player made non-kife kills. On the first kill, it will send a warning on chat, on the second kill, it will kick the player.

 

 

Set limit to evaluate OnKill, set action to None

 

 

Set first_check to this Expression:

 

Code:

! Regex.Match(kill.Weapon, @"(Melee|Knife)", RegexOptions.IgnoreCase).Success
Set second_check to this Code:

 

Code:

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

     if (count == 1)
         plugin.SendGlobalMessage(plugin.R("%p_n%, this is a knife only server, do not use %w_n% again! Next time kick"));
     else if (count > 1)
         plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on knife only server"));
     
     return false;
hi micovery

 

i want to setting my sever knife only

and i hope first time player use another weapons kill player will be kill and worn by sever

second time kill will be kick

 

how can i setting the code?

 

my setting now

 

Set limit to evaluate OnKill, set action to None

 

Set first_check to this Expression:

 

code:

Code:

! Regex.Match(kill.Weapon, @"(Melee|Knife)", RegexOptions.IgnoreCase).Success
Set second_check to this Code:

 

code:

Code:

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

     if (count == 1)
         plugin.SendGlobalMessage(plugin.R("%p_n%, this is a knife only server, do not use %w_n% again! Next time kick"));
     else if (count == 1)
         plugin.KillPlayer(plugin.R("%p_n%, this is a knife only server, do not use %w_n% again! Next time kick"));
     else if (count > 1)
         plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on knife only server"));
     
     return false;
first time player kill use gun only be get worn

not kill by sever

 

 

 

 

thank you

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

Originally Posted by HexaCanon*:

 

hi micovery

 

i want to setting my sever knife only

and i hope first time player use another weapons kill player will be kill and worn by sever

second time kill will be kick

 

how can i setting the code?

 

my setting now

 

Set limit to evaluate OnKill, set action to None

 

Set first_check to this Expression:

 

code:

Code:

! Regex.Match(kill.Weapon, @"(Melee|Knife)", RegexOptions.IgnoreCase).Success
Set second_check to this Code:

 

code:

Code:

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

     if (count == 1)
         plugin.SendGlobalMessage(plugin.R("%p_n%, this is a knife only server, do not use %w_n% again! Next time kick"));
     else if (count == 1)
         plugin.KillPlayer(plugin.R("%p_n%, this is a knife only server, do not use %w_n% again! Next time kick"));
     else if (count > 1)
         plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on knife only server"));
     
     return false;
first time player kill use gun only be get worn

not kill by sever

 

 

 

 

thank you

Set second_check to this Code:

 

code:

Code:

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

     if (count == 1) {
         plugin.SendGlobalMessage(plugin.R("%p_n%, this is a knife only server, do not use %w_n% again! Next time kick"));
         plugin.KillPlayer(player.Name);
         }
     if (count > 1) {
         plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on knife only server"));
         }
     
     return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by cloverdefa*:

 

Set second_check to this Code:

 

code:

Code:

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

     if (count == 1) {
         plugin.SendGlobalMessage(plugin.R("%p_n%, this is a knife only server, do not use %w_n% again! Next time kick"));
         plugin.KillPlayer(player.Name);
         }
     if (count > 1) {
         plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for using %w_n% on knife only server"));
         }
     
     return false;
hi thank your answer

now sever is good

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

Originally Posted by HexaCanon*:

 

hi thank your answer

now sever is good

this is a better code

first check code

Code:

!Regex.Match(kill.Weapon, @"(_:ACB-90|Knife|Melee)", RegexOptions.IgnoreCase).Success
second check code

 

Code:

/* 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";
Match m = Regex.Match(kill.Weapon, @"/([^/]+)$");
String wn = kill.Weapon;
if (m.Success) wn = m.Groups[1].Value;

if (warnings == 0) {
        msg = plugin.R("FINAL WARNING %k_n%! Do not use" + wn); // warning message
        plugin.SendGlobalMessage(msg);
        plugin.PRoConChat("ADMIN > " + msg);
        plugin.KillPlayer(player.Name);
        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("Kicking %k_n% for ignoring warnings and killing with" + wn);
        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;
* 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.