Jump to content

Insane Limits - Examples


Recommended Posts

Originally Posted by Athlon*:

 

Not quite right. When you have if/else if/else if/... etc., it means only one of those conditions will execute. If you would remove all the "else" keywords and just have everything be "if", it would work.

 

It would be better to group everything under the count you want in multiple line blocks, like this:

 

Code:

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

        if (count == 10) {
	    plugin.SendGlobalMessage(plugin.R("%p_n% killed %r_x% in a row!"));
            plugin.Tweet(plugin.R("%p_n% killed %r_x% in a row!"));
        }
        if (count == 15) {
            plugin.SendGlobalMessage(plugin.R("%p_n% killed %r_x% in a row!  Stop him!!")); 
            plugin.Tweet(plugin.R("%p_n% killed %r_x% in a row!"));
        }
        if (count == 20) {
            plugin.SendGlobalMessage(plugin.R("%p_n% killed %r_x% in a row!  Insane!!"));
            plugin.Tweet(plugin.R("%p_n% killed %r_x% in a row!"));
        }
        if ( count >= 25) {
            plugin.SendGlobalMessage(plugin.R("%p_n% killed %r_x% in a row!  He's hacking like a cheating mofo!"));
            plugin.Tweet(plugin.R("%p_n% killed %r_x% in a row!"));
        }

        return false;
Check the message for the count >= 25 case, I changed it to reflect reality. :smile:
:smile: LOL

 

Thanks Papa!

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

Originally Posted by Mootart*:

 

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.

hi sir i use this kind of limit my server...

 

(player.Spm > 951 || player.Kdr > 5.01 || player.KillStreakBonus > 200 || player.Kpm > 10 || player.Skill > 1500)

 

but if i want to put a player on whitelist. that is possible but the problem is he can by pass all limits. like the headshhot counter etc. and weapons limits...

 

is there a way to make a whitelist only specified to this limit?

(player.Spm > 951 || player.Kdr > 5.01 || player.KillStreakBonus > 200 || player.Kpm > 10 || player.Skill > 1500)

 

if possible. please let me know sir thank you so much! micovery and papacharlie! will buy beer for you guys hehehe thanks a lot!

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

Originally Posted by QUACK-Major-Pain*:

 

Looking for a little help with this. Using an adaptive tickets limit, we have decided only to use this on TDM and leave conquest and rush at normal tickets.

 

Is this correct:

 

Code:

if (Regex.Match(server.Gamemode, @"TDM", RegexOptions.IgnoreCase).Success )

{
if (server.PlayerCount >= 0 && server.PlayerCount < 12) 
{
    plugin.ServerCommand("vars.gameModeCounter", "100"); 
}
else if (server.PlayerCount >= 12 && server.PlayerCount < 14)
{
    plugin.ServerCommand("vars.gameModeCounter", "110");
}
else if (server.PlayerCount >= 14 && server.PlayerCount < 16)
{
    plugin.ServerCommand("vars.gameModeCounter", "120");
}
else if (server.PlayerCount >= 16 && server.PlayerCount < 18)
{
    plugin.ServerCommand("vars.gameModeCounter", "130");
}
else if (server.PlayerCount >= 18 && server.PlayerCount < 20)
{
    plugin.ServerCommand("vars.gameModeCounter", "140");
}
else if (server.PlayerCount >= 20 && server.PlayerCount < 22)
{
    plugin.ServerCommand("vars.gameModeCounter", "150");
}
else if (server.PlayerCount >= 22 && server.PlayerCount < 24)
{
    plugin.ServerCommand("vars.gameModeCounter", "160");
}
else if (server.PlayerCount >= 24 && server.PlayerCount < 26)
{
    plugin.ServerCommand("vars.gameModeCounter", "170");
}
else if (server.PlayerCount >= 26 && server.PlayerCount < 28)
{
    plugin.ServerCommand("vars.gameModeCounter", "180");
}
else if (server.PlayerCount >= 28 && server.PlayerCount < 30)
{
    plugin.ServerCommand("vars.gameModeCounter", "190");
}
else if (server.PlayerCount >= 30)
{
    plugin.ServerCommand("vars.gameModeCounter", "200");
}

else 
{
    plugin.ServerCommand("vars.gameModeCounter", "100");
}

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

Originally Posted by QUACK-Major-Pain*:

 

After posting the above, I guess this won't work since the setting needs to be applied on the round before, and since we use xVote, this would require more thought.

 

I guess the logic would have to be that once the xVote is finished, the nextmap would have to be examined, and then the above applied before the current round ends.

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

Originally Posted by QUACK-Major-Pain*:

 

You could create a list and then check the list before hand.

 

plugin.isInList(player.name, "stats_white_list")

 

Not knowing coding, I don't know the proper code.

 

Might be something like:

 

if (plugin.isInList(player.name, "stats_white_list")) = false

{

(player.Spm > 951 || player.Kdr > 5.01 || player.KillStreakBonus > 200 || player.Kpm > 10 || player.Skill > 1500)

}

 

or maybe use 2 checks:

 

1) (plugin.isInList(player.name, "stats_white_list")) = false

 

2) (player.Spm > 951 || player.Kdr > 5.01 || player.KillStreakBonus > 200 || player.Kpm > 10 || player.Skill > 1500)

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

Originally Posted by PapaCharlie9*:

 

After posting the above, I guess this won't work since the setting needs to be applied on the round before, and since we use xVote, this would require more thought.

 

I guess the logic would have to be that once the xVote is finished, the nextmap would have to be examined, and then the above applied before the current round ends.

Or, you can just set your code to evaluate OnRoundStart.

 

BTW, you want to use "Team" instead of "TDM" for the Gamemode Regex. You want to use a short string that is unique for the mode you want (no other mode has the same string in it). Only TeamDeathMatch0 has "Team" in it. Nothing has "TDM" in it.

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

Originally Posted by PapaCharlie9*:

 

You could create a list and then check the list before hand.

 

plugin.isInList(player.name, "stats_white_list")

 

Not knowing coding, I don't know the proper code.

 

Might be something like:

 

if (plugin.isInList(player.name, "stats_white_list")) = false

{

(player.Spm > 951 || player.Kdr > 5.01 || player.KillStreakBonus > 200 || player.Kpm > 10 || player.Skill > 1500)

}

 

or maybe use 2 checks:

 

1) (plugin.isInList(player.name, "stats_white_list")) = false

 

2) (player.Spm > 951 || player.Kdr > 5.01 || player.KillStreakBonus > 200 || player.Kpm > 10 || player.Skill > 1500)

That's very close. You have the logic right, but the syntax of the if statement needs a little fixing:

 

Code:

if (plugin.isInList(player.Name, "stats_white_list") == false) { ...
"equals" is ==, while "assignment" is =. You can also do this short-hand:

 

Code:

if (!plugin.isInList(player.Name, "stats_white_list")) { ...
Which is "logical negation" or "not". If expression==true, !expression==false. If expression==false, !expression==true.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Satanja*:

 

Is it possible to compare play time against rank?

 

I'm thinking about gathering some statistical data from really good players that plays a lot, and then seeing how long it takes to reach various ranks. Reaching a rank faster than that would be a good indicator of cheating, or stat padding. At any rate it could trigger a warning so I could keep an eye out.

 

If possible, does anyone have an example of doing this that I could work with? (Not good at coding)

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

Originally Posted by Mootart*:

 

That's very close. You have the logic right, but the syntax of the if statement needs a little fixing:

 

Code:

if (plugin.isInList(player.Name, "stats_white_list") == false) { ...
"equals" is ==, while "assignment" is =. You can also do this short-hand:

 

Code:

if (!plugin.isInList(player.Name, "stats_white_list")) { ...
Which is "logical negation" or "not". If expression==true, !expression==false. If expression==false, !expression==true.
sorry i just got home.... im confused.. what code should i use? sorry again papacharlie... please help.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

sorry i just got home.... im confused.. what code should i use? sorry again papacharlie... please help.

both are fine, but i prefer the 2nd one.

 

Edit : i just saw posts in the previouse page, i know you need full explaination (or just giving you the whole limit evaluation/checks/actions), at the moment i am in the university if i come back and i dont find an answer from papacharlie or anyone else i will give you the whole limit.

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

Originally Posted by Mootart*:

 

both are fine, but i prefer the 2nd one.

 

Edit : i just saw posts in the previouse page, i know you need full explaination (or just giving you the whole limit evaluation/checks/actions), at the moment i am in the university if i come back and i dont find an answer from papacharlie or anyone else i will give you the whole limit.

thank you so much for you time bro! will wait for you! :biggrin: takecare...
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Singh400*:

 

That should work fine with OnSpawn, though if two spawns happen one immediately after the other, the announcement will spam twice and then stop for the rest of the round.

 

If you really want it to run exactly twice and space out the announcements over some period of time, use OnIntervalServer set to 30 seconds and make the first_check be this:

 

Code:

( (!server.RoundData.issetBool("Singh_announcer") && (team1.RemainTicketsPercent < 10 || team2.RemainTicketsPercent < 10)) || (server.RoundData.issetBool("Singh_announcer") && (team1.RemainTicketsPercent < 5 || team2.RemainTicketsPercent < 5)) )
second_check Code start like this:

 

Code:

if (limit.Activations() > 2) return false;
server.RoundData.setBool("Singh_announcer", true);

... the rest of your code follows here ...
That will insure that the announcement happens exactly twice and that it happens near 10% and near 5% instead of immediately one after the other, though again, you will go from slightly over 5% to 0% before 30 seconds expires, so you'll miss the second announcement sometimes. In a 300 ticket round with a full server, 5% is only 15 tickets and 15 tickets can go to zero very quickly with a bleed on. If you want to guarantee everyone sees the second message, set the the percentages to 15 and 10 or 12 and 8, something like that.
Thanks a ton for your help mate. Been dead helpful!

 

Wondering if you can help me modify the Admin Audit Trail I've got running on the server. Here is the code as it stands:

Code:

String txt = player.LastChat;

/* Remove the first character if it is "/" */

if (txt.Length > 0 && txt[0] == '/' )
    txt = txt.Substring(1);

/* Exit if text is not prefixed with "/", "!", "@", or "_" */ 
if (!plugin.IsCommand(txt))
    return false;

txt = plugin.ExtractCommand(txt);

List<String> commands = new List<String>();
commands.Add("kick");
commands.Add("tban");
commands.Add("kill");

List<String> words = new List<String>(Regex.Split(txt.Trim(), @"\s+"));

/* Exit if not enough words */
if ( words.Count < 2)
    return false;

/* Get the command being executed */
String command = words[0];

/* Exit if command is not in list */
if (!commands.Contains(command)) 
    return false;

/* Determine the player being kicked/banned/killed */

String typed_name = words[1];
String actual_name = plugin.BestPlayerMatch(words[1]);

if (actual_name == null)
    actual_name = "Unknown";

String admin_name = player.Name;
String message = "[%date% - %time%] " + admin_name + "> " +  command + " " + typed_name + " (Actual Name: " + actual_name + ")";

plugin.Log("Logs/InsaneLimits_AAT.log", plugin.R(message));
So at the moment if I issue any one of these commands:-

 

/!tban Papa 60 he's name is in purple

/!kill PapaCharlie random reason

/!kick PapaCharlie9 zomghacker

They will all be logged as this:

 

[%date%] [%time%] - Singh400> tban Papa (Actual Name: PapaCharlie9)

[%date%] [%time%] - Singh400> kill PapaCharlie (Actual Name: PapaCharlie9)

[%date%] [%time%] - Singh400> kick PapaCharlie9 (Actual Name: PapaCharlie9)

Which is great, but I would like to capture the entire string as it is entered into the chat box. So ideally the log file would look like this instead:-

 

[%date%] [%time%] - Singh400> tban Papa 60 he's name is in purple (Actual Name: PapaCharlie9)

[%date%] [%time%] - Singh400> kill PapaCharlie random reason (Actual Name: PapaCharlie9)

[%date%] [%time%] - Singh400> kick PapaCharlie9 zomghacker (Actual Name: PapaCharlie9)

I've tried to modify the code myself without much success. I just end up breaking it completely and it refuses to compile. I though perhaps commenting out the trim feature might work, but it didn't :sad:

 

Any help? :smile:

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

Originally Posted by Mootart*:

 

Thanks a ton for your help mate. Been dead helpful!

 

Wondering if you can help me modify the Admin Audit Trail I've got running on the server. Here is the code as it stands:

Code:

String txt = player.LastChat;

/* Remove the first character if it is "/" */

if (txt.Length > 0 && txt[0] == '/' )
    txt = txt.Substring(1);

/* Exit if text is not prefixed with "/", "!", "@", or "_" */ 
if (!plugin.IsCommand(txt))
    return false;

txt = plugin.ExtractCommand(txt);

List<String> commands = new List<String>();
commands.Add("kick");
commands.Add("tban");
commands.Add("kill");

List<String> words = new List<String>(Regex.Split(txt.Trim(), @"\s+"));

/* Exit if not enough words */
if ( words.Count < 2)
    return false;

/* Get the command being executed */
String command = words[0];

/* Exit if command is not in list */
if (!commands.Contains(command)) 
    return false;

/* Determine the player being kicked/banned/killed */

String typed_name = words[1];
String actual_name = plugin.BestPlayerMatch(words[1]);

if (actual_name == null)
    actual_name = "Unknown";

String admin_name = player.Name;
String message = "[%date% - %time%] " + admin_name + "> " +  command + " " + typed_name + " (Actual Name: " + actual_name + ")";

plugin.Log("Logs/InsaneLimits_AAT.log", plugin.R(message));
So at the moment if I issue any one of these commands:-

 

 

 

They will all be logged as this:

 

 

 

Which is great, but I would like to capture the entire string as it is entered into the chat box. So ideally the log file would look like this instead:-

 

 

 

I've tried to modify the code myself without much success. I just end up breaking it completely and it refuses to compile. I though perhaps commenting out the trim feature might work, but it didn't :sad:

 

Any help? :smile:

where did you get the original one.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Singh400*:

 

Is it possible to compare play time against rank?

 

I'm thinking about gathering some statistical data from really good players that plays a lot, and then seeing how long it takes to reach various ranks. Reaching a rank faster than that would be a good indicator of cheating, or stat padding. At any rate it could trigger a warning so I could keep an eye out.

 

If possible, does anyone have an example of doing this that I could work with? (Not good at coding)

...

You would have to create your own math equation of time/rank.

Then use it as a limit once you esablish what you think is legit.

 

eg. time/rank

Learn to quote replies MajorPain :ohmy:

 

And Satanja I don't think this is a good idea at all. Filtering out insanely high SPMs would be easier and more efficient.

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

Originally Posted by Mootart*:

 

...

 

 

Learn to quote replies MajorPain :ohmy:

 

And Satanja I don't think this is a good idea at all. Filtering out insanely high SPMs would be easier and more efficient.

i agree with this bec sometime players have more hours played yet they are still having it really hard and complicated to estimate the play times and rank. for me i am using spm kdr killstreak bonus and player skills
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Singh400*:

 

Thanks a ton for your help mate. Been dead helpful!

 

Wondering if you can help me modify the Admin Audit Trail I've got running on the server. Here is the code as it stands:

Code:

String txt = player.LastChat;

/* Remove the first character if it is "/" */

if (txt.Length > 0 && txt[0] == '/' )
    txt = txt.Substring(1);

/* Exit if text is not prefixed with "/", "!", "@", or "_" */ 
if (!plugin.IsCommand(txt))
    return false;

txt = plugin.ExtractCommand(txt);

List<String> commands = new List<String>();
commands.Add("kick");
commands.Add("tban");
commands.Add("kill");

List<String> words = new List<String>(Regex.Split(txt.Trim(), @"\s+"));

/* Exit if not enough words */
if ( words.Count < 2)
    return false;

/* Get the command being executed */
String command = words[0];

/* Exit if command is not in list */
if (!commands.Contains(command)) 
    return false;

/* Determine the player being kicked/banned/killed */

String typed_name = words[1];
String actual_name = plugin.BestPlayerMatch(words[1]);

if (actual_name == null)
    actual_name = "Unknown";

String admin_name = player.Name;
String message = "[%date% - %time%] " + admin_name + "> " +  command + " [b]" + player.LastChat + "[/b] " + typed_name + " (Actual Name: " + actual_name + ")";

plugin.Log("Logs/InsaneLimits_AAT.log", plugin.R(message));
So at the moment if I issue any one of these commands:-

 

 

 

They will all be logged as this:

 

 

 

Which is great, but I would like to capture the entire string as it is entered into the chat box. So ideally the log file would look like this instead:-

 

 

 

I've tried to modify the code myself without much success. I just end up breaking it completely and it refuses to compile. I though perhaps commenting out the trim feature might work, but it didn't :sad:

 

Any help? :smile:

Ugh, I was being an idiot. I just added " + player.LastChat + " and it works fine. Amazing what you can do, if you don't look at it at 4 in the morning :biggrin:

 

where did you get the original one.

That is the original. I can't take credit for it. Micovery did all the work. I just asked for it, and he kindly coded it for me. I've just edited for my server.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Can't use OnRoundStart. Changing the settings then only take affect on the next map, which could be conquest or rush or TDM.

Okay, how about OnRoundOver and test server.NextGamemode then?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

...

 

 

Learn to quote replies MajorPain :ohmy:

 

And Satanja I don't think this is a good idea at all. Filtering out insanely high SPMs would be easier and more efficient.

I have to agree. Just use player.Spm (score per minute) and player.Kpm (kills per minute). There will be a very high correspondence between high values of those stats and a rapid increase of rank. You can look at Battlelog Spm Kicker* as a starting point -- which, not coincidentally, was written by our friend Singh400.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mootart*:

 

Ugh, I was being an idiot. I just added " + player.LastChat + " and it works fine. Amazing what you can do, if you don't look at it at 4 in the morning :biggrin:

 

That is the original. I can't take credit for it. Micovery did all the work. I just asked for it, and he kindly coded it for me. I've just edited for my server.

nice so how does it work? and how should be. first check etc,

 

thanks in advance.

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

Originally Posted by QUACK-Major-Pain*:

 

...

 

 

Learn to quote replies MajorPain :ohmy:

 

And Satanja I don't think this is a good idea at all. Filtering out insanely high SPMs would be easier and more efficient.

I did when I posted it, but I accidentally deleted it in the edit, and I could find the original post.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Singh400*:

 

Set limit to evaluate OnAnyChat, set action to None.

 

Set first_check to this Code:

Code:

String txt = player.LastChat;

/* Remove the first character if it is "/" */

if (txt.Length > 0 && txt[0] == '/' )
    txt = txt.Substring(1);

/* Exit if text is not prefixed with "/", "!", "@", or "_" */ 
if (!plugin.IsCommand(txt))
    return false;

txt = plugin.ExtractCommand(txt);

List<String> commands = new List<String>();
commands.Add("kick");
commands.Add("tban");
commands.Add("kill");

List<String> words = new List<String>(Regex.Split(txt.Trim(), @"\s+"));

/* Exit if not enough words */
if ( words.Count < 2)
    return false;

/* Get the command being executed */
String command = words[0];

/* Exit if command is not in list */
if (!commands.Contains(command)) 
    return false;

/* Determine the player being kicked/banned/killed */

String typed_name = words[1];
String actual_name = plugin.BestPlayerMatch(words[1]);

if (actual_name == null)
    actual_name = "Unknown";

String admin_name = player.Name;
String message = "[%date% - %time%] " + admin_name + " > " +  command + " " + player.LastChat + " " + typed_name + " (Actual Name: " + actual_name + ")";

plugin.Log("Logs/InsaneLimits_AAT.log", plugin.R(message));
Please note: I did not code this, Micovery did. He kindly coded it for me when I asked. I've modified it to suits my needs. Thanks again Micovery :cool:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mootart*:

 

Set limit to evaluate OnAnyChat, set action to None.

 

Set first_check to this Code:

Code:

String txt = player.LastChat;

/* Remove the first character if it is "/" */

if (txt.Length > 0 && txt[0] == '/' )
    txt = txt.Substring(1);

/* Exit if text is not prefixed with "/", "!", "@", or "_" */ 
if (!plugin.IsCommand(txt))
    return false;

txt = plugin.ExtractCommand(txt);

List<String> commands = new List<String>();
commands.Add("kick");
commands.Add("tban");
commands.Add("kill");

List<String> words = new List<String>(Regex.Split(txt.Trim(), @"\s+"));

/* Exit if not enough words */
if ( words.Count < 2)
    return false;

/* Get the command being executed */
String command = words[0];

/* Exit if command is not in list */
if (!commands.Contains(command)) 
    return false;

/* Determine the player being kicked/banned/killed */

String typed_name = words[1];
String actual_name = plugin.BestPlayerMatch(words[1]);

if (actual_name == null)
    actual_name = "Unknown";

String admin_name = player.Name;
String message = "[%date% - %time%] " + admin_name + " > " +  command + " " + player.LastChat + " " + typed_name + " (Actual Name: " + actual_name + ")";

plugin.Log("Logs/InsaneLimits_AAT.log", plugin.R(message));
Please note: I did not code this, Micovery did. He kindly coded it for me when I asked. I've modified it to suits my needs. Thanks again Micovery :cool:
Thank you so much bro! thanks to micovery too... (So how does it works? :biggrin:)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Singh400*:

 

hi sir i use this kind of limit my server...

 

(player.Spm > 951 || player.Kdr > 5.01 || player.KillStreakBonus > 200 || player.Kpm > 10 || player.Skill > 1500)

 

but if i want to put a player on whitelist. that is possible but the problem is he can by pass all limits. like the headshhot counter etc. and weapons limits...

 

is there a way to make a whitelist only specified to this limit?

(player.Spm > 951 || player.Kdr > 5.01 || player.KillStreakBonus > 200 || player.Kpm > 10 || player.Skill > 1500)

 

if possible. please let me know sir thank you so much! micovery and papacharlie! will buy beer for you guys hehehe thanks a lot!

The plugin features a whitelist feature already.

 

Set the value use_white_list to true.

 

I personally don't operate any white-list on any of my limits and/or plug-ins.

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

Originally Posted by Mootart*:

 

The plugin features a whitelist feature already.

 

Set the value use_white_list to true.

 

I personally don't operate any white-list on any of my limits and/or plug-ins.

the plug in has a player white list but the problem is if i use that. player will able to bypass weapon limit and other security scripts. like heashot counter etc.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by QUACK-Major-Pain*:

 

the plug in has a player white list but the problem is if i use that. player will able to bypass weapon limit and other security scripts. like heashot counter etc.

Already posted how to do it but will post it again and more clearer hopefully:

 

Set use_custom_lists to True and create a new list with these parameters:

 

Code:

name = stats_white_list
       data = playername1, playername2, playername3, ...
Set limit to evaluate OnJoin, set action to Kick or ban, or any other action you wish

 

Set first_check to this Code:

 

Code:

if ( !plugin.isInList(player.Name, "stats_white_list") &&
     (player.Spm > 951 || player.Kdr > 5.01 || player.KillStreakBonus > 200 || player.Kpm > 10 || player.Skill > 1500)

   )
    return true;
else
    return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mootart*:

 

Already posted how to do it but will post it again and more clearer hopefully:

 

Set use_custom_lists to True and create a new list with these parameters:

 

Code:

name = stats_white_list
       data = playername1, playername2, playername3, ...
Set limit to evaluate OnJoin, set action to Kick or ban, or any other action you wish

 

Set first_check to this Expression:

 

 

 

i got errors

[02:17:48 86] [insane Limits] ERROR: 5 errors compiling Expression

[02:17:48 86] [insane Limits] ERROR: (CS1525, line: 22, column: 23): Invalid expression term 'if'

[02:17:48 86] [insane Limits] ERROR: (CS1002, line: 24, column: 114): ; expected

[02:17:48 86] [insane Limits] ERROR: (CS1525, line: 25, column: 2): Invalid expression term ')'

[02:17:48 86] [insane Limits] ERROR: (CS1002, line: 25, column: 11): ; expected

[02:17:48 86] [insane Limits] ERROR: (CS1525, line: 25, column: 11): Invalid expression term ')'

 

Code:

if (!plugin.isInList(player.Name, "stats_white_list"))
{
(player.Spm > 951 || player.Kdr > 5.01 || player.KillStreakBonus > 200 || player.Kpm > 10 || player.Skill > 1500)
}
so if i put a player on the whitelist a a battlog stats will not check this player right?
* Restored post. It could be that the author is no longer active.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




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