Jump to content

Insane Limits Requests


ImportBot

Recommended Posts

Originally Posted by PapaCharlie9*:

 

Hi

How can I check a chat for the command !p and not the word !punish?

 

I want this scenario:

Player types in !punish then every thing is fine and the plugin will punish

when the player types in !p insane limits should ask the player: did you mean !punish?

The player should be able to respond with !y or !n or !yes or !no and then it should send the player punish command if !y or !yes

If the player types in punish it should also punish and reset the yes function.

 

This is because I want the player to type the whole word punish or confirm because the !p is used to lightly and also the team killer should have a bit time to apologize and the !p is to fast so even thou they are sorry they do not have the time to apologize.

 

Thanks.

The !yes/!no is very complicated, but it would be easy just to tell the user what to do. If they type !p, the code can send chat back to that user that says, "If you meant to punish, you must type !punish (name)".

 

Create a limit OnAnyChat, name it "!p instructions".

 

Set first_check to this Code:

 

Code:

if (Regex.Match(player.LastChat, @"^\s*!p\s*$", RegexOptions.IgnoreCase).Success) {
    plugin.SendPlayerMessage(player.Name, "If you meant to punish, you must type !punish (name)");
}
return false;
* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 3.2k
  • Created
  • Last Reply

Originally Posted by Talzac*:

 

Is it possible to check if all players are dead and none can spawn and then some how restart the round, now I have to do this manually I hate this strange server bug...

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

Originally Posted by Talzac*:

 

The !yes/!no is very complicated, but it would be easy just to tell the user what to do. If they type !p, the code can send chat back to that user that says, "If you meant to punish, you must type !punish (name)".

 

Create a limit OnAnyChat, name it "!p instructions".

 

Set first_check to this Code:

 

Code:

if (Regex.Match(player.LastChat, @"^\s*!p\s*$", RegexOptions.IgnoreCase).Success) {
    plugin.SendPlayerMessage(player.Name, "If you meant to punish, you must type !punish (name)");
}
return false;
Thanks will do fine :-)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Is it possible to check if all players are dead and none can spawn and then some how restart the round, now I have to do this manually I hate this strange server bug...

No, unfortunately there is no way to detect that reliably. To Insane Limits, the time between rounds looks exactly the same -- no one is spawning, right?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

hi

is it possible to announce the top 3 scoring clans like the "announce top scoring clan" example 33 of InsaneLimits?

 

thx and greetz

M4DE

Quote post 33 here. That will be easier to work with.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by DER_M4DE*:

 

Quote post 33 here. That will be easier to work with.

myrcon.net/...insane-limits-examples#entry18454

 

 

Code:

[b]Announce Top Scoring Clan[/b]

This limit will wait until there are less than 20 tickets remaining in either team. It will announce three times the name of the top scoring clan.

Set limit to evaluate [b]OnSpawn[/b], set action to [b]None[/b]

Set [b]first_check[/b] to this Expression:

Code:
Code: [code=nocode:0]    (team1.RemainTicketsPercent < 20 || team2.RemainTicketsPercent < 20)[/code]Set [b]second_check[/b] to this Code:

Code:
Code: [code=nocode:0]     double count = limit.Activations();
    
    if (count > 3)
        return false;

    List<PlayerInfoInterface> players = new List<PlayerInfoInterface>();
    players.AddRange(team1.players);
    players.AddRange(team2.players);
    Dictionary<String, double> clan_stats = new Dictionary<String, double>();
    
    /* Collect clan statistics */
    foreach(PlayerInfoInterface player_info in players)
    {
        if(player_info.Tag.Length == 0)
            continue;
        
        if (!clan_stats.ContainsKey(player_info.Tag))
            clan_stats.Add(player_info.Tag, 0);
        
        clan_stats[player_info.Tag] += player_info.ScoreRound;
    }

    /* Find the best scoring clan */
    String best_clan = String.Empty;
    double best_score = 0;
    
    foreach(KeyValuePair<String, double> pair in clan_stats)
        if (pair.Value > best_score)
        {
             best_clan = pair.Key;
             best_score = pair.Value;
        }
    
    if (best_clan.Length > 0)
	{
		String message = "Top scoring clan this round is "+ best_clan + " with " + best_score + " points!";
                plugin.SendGlobalMessage(message); 
		plugin.ConsoleWrite(message);
        }   
    return false;[/code]This limit should work for TDM, CQ, and Rush. It will not work properly for SQDM because it assumes there are only two teams.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Talzac*:

 

Seems to be some kind of bug on rescue and Hotwire sometimes when the map loads no one can spawn it just count down and says waiting for next round, so I have to restart the map or everyone leave the server

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

Originally Posted by AgentHawk*:

 

Hey

 

we need a fuction for longer rounds in Hardline. The normal time for the "normal" mode is 30 min but we need 400% (1h 30min)

But with a longer round the Server changed to costum.

 

 

So what we need is a limit that changed the time at the round end to 400% and on the round start back to 100% Is that possible?

 

Thanks 4 any help.

 

Greetings

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

Originally Posted by moacco07*:

 

Hello PC,

 

Is there anyway for insane limits to enable to load presets for each modes and will it be compatible with xvotemap plugin?

 

Below what i want for the vars. gamemodecounter and vars.roundTimeLimit (percentage)

 

conquest = 125 // time = 200

chainlink = 250 // time =200

domination = 300 // time =100

obliteration = 100 // time = 150

ctf = 100 // time =150

tdm = 400 // time =100

rush = 250 // time =200

carrier assault = 100 // time =200

squad deathmatch = 400 // time = 100

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

Originally Posted by PapaCharlie9*:

 

Hey

 

we need a fuction for longer rounds in Hardline. The normal time for the "normal" mode is 30 min but we need 400% (1h 30min)

But with a longer round the Server changed to costum.

 

 

So what we need is a limit that changed the time at the round end to 400% and on the round start back to 100% Is that possible?

 

Thanks 4 any help.

 

Greetings

Hello PC,

 

Is there anyway for insane limits to enable to load presets for each modes and will it be compatible with xvotemap plugin?

 

Below what i want for the vars. gamemodecounter and vars.roundTimeLimit (percentage)

 

conquest = 125 // time = 200

chainlink = 250 // time =200

domination = 300 // time =100

obliteration = 100 // time = 150

ctf = 100 // time =150

tdm = 400 // time =100

rush = 250 // time =200

carrier assault = 100 // time =200

squad deathmatch = 400 // time = 100

The Ultimate Map Manager plugin will do that for you. That's your best solution.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

myrcon.net/...insane-limits-examples#entry18454

 

 

Code:

[b]Announce Top Scoring Clan[/b]

This limit will wait until there are less than 20 tickets remaining in either team. It will announce three times the name of the top scoring clan.

Set limit to evaluate [b]OnSpawn[/b], set action to [b]None[/b]

Set [b]first_check[/b] to this Expression:

Code:
Code: [code=nocode:0]    (team1.RemainTicketsPercent < 20 || team2.RemainTicketsPercent < 20)[/code]Set [b]second_check[/b] to this Code:

Code:
Code: [code=nocode:0]     double count = limit.Activations();
    
    if (count > 3)
        return false;

    List<PlayerInfoInterface> players = new List<PlayerInfoInterface>();
    players.AddRange(team1.players);
    players.AddRange(team2.players);
    Dictionary<String, double> clan_stats = new Dictionary<String, double>();
    
    /* Collect clan statistics */
    foreach(PlayerInfoInterface player_info in players)
    {
        if(player_info.Tag.Length == 0)
            continue;
        
        if (!clan_stats.ContainsKey(player_info.Tag))
            clan_stats.Add(player_info.Tag, 0);
        
        clan_stats[player_info.Tag] += player_info.ScoreRound;
    }

    /* Find the best scoring clan */
    String best_clan = String.Empty;
    double best_score = 0;
    
    foreach(KeyValuePair<String, double> pair in clan_stats)
        if (pair.Value > best_score)
        {
             best_clan = pair.Key;
             best_score = pair.Value;
        }
    
    if (best_clan.Length > 0)
	{
		String message = "Top scoring clan this round is "+ best_clan + " with " + best_score + " points!";
                plugin.SendGlobalMessage(message); 
		plugin.ConsoleWrite(message);
        }   
    return false;[/code]This limit should work for TDM, CQ, and Rush. It will not work properly for SQDM because it assumes there are only two teams.
Change second_check to this Code:

 

Code:

List<PlayerInfoInterface> players = new List<PlayerInfoInterface>();
players.AddRange(team1.players);
players.AddRange(team2.players);
Dictionary<String, double> clan_stats = new Dictionary<String, double>();
    
/* Collect clan statistics */
foreach(PlayerInfoInterface player_info in players)
{
    if(String.IsNullOrEmpty(player_info.Tag))
        continue;
        
    if (!clan_stats.ContainsKey(player_info.Tag))
        clan_stats.Add(player_info.Tag, 0);
        
    clan_stats[player_info.Tag] += player_info.ScoreRound;
}

String msg = "No top scoring clans this round";
if (clan_stats.Count < 1) {
    plugin.SendGlobalMessage(msg);
	plugin.PRoConChat(msg);
    return false;
}

/* Find the best scoring clan */
String best_clan = String.Empty;
    
List<KeyValuePair<string, double>> myList = new List<KeyValuePair<string, double>>();

foreach (KeyValuePair<string, double> p in clan_stats)
{
    myList.Add(p);
}

myList.Sort(
    delegate(KeyValuePair<string, double> firstPair, KeyValuePair<string, double> nextPair)
    {
        return nextPair.Value.CompareTo(firstPair.Value);
    }
);

msg = "Top scoring clans: ";
int n = 1;
foreach (KeyValuePair<string, double> c in myList) {
    if (n == 1) {
        msg += "#" + n + " " + c.Key;
    } else {
        msg += ", #" + n + " " + c.Key;
    }
    if (n == 3)
        break;
    else
        ++n;
}

plugin.SendGlobalMessage(msg); 
plugin.PRoConChat(msg);
  
return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by glenn82*:

 

hey pc9

 

is thare a limit that disable a weapon on a playercount?

for example if playercount is less than 30 players no use of DAO-12 OR allo shotguns

 

greets glenn

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

Originally Posted by DER_M4DE*:

 

Change second_check to this Code:

 

Code:

List<PlayerInfoInterface> players = new List<PlayerInfoInterface>();
players.AddRange(team1.players);
players.AddRange(team2.players);
Dictionary<String, double> clan_stats = new Dictionary<String, double>();
    
/* Collect clan statistics */
foreach(PlayerInfoInterface player_info in players)
{
    if(String.IsNullOrEmpty(player_info.Tag))
        continue;
        
    if (!clan_stats.ContainsKey(player_info.Tag))
        clan_stats.Add(player_info.Tag, 0);
        
    clan_stats[player_info.Tag] += player_info.ScoreRound;
}

String msg = "No top scoring clans this round";
if (clan_stats.Count < 1) {
    plugin.SendGlobalMessage(msg);
	plugin.PRoConChat(msg);
    return false;
}

/* Find the best scoring clan */
String best_clan = String.Empty;
    
List<KeyValuePair<string, double>> myList = new List<KeyValuePair<string, double>>();

foreach (KeyValuePair<string, double> p in clan_stats)
{
    myList.Add(p);
}

myList.Sort(
    delegate(KeyValuePair<string, double> firstPair, KeyValuePair<string, double> nextPair)
    {
        return nextPair.Value.CompareTo(firstPair.Value);
    }
);

msg = "Top scoring clans: ";
int n = 1;
foreach (KeyValuePair<string, double> c in myList) {
    if (n == 1) {
        msg += "#" + n + " " + c.Key;
    } else {
        msg += ", #" + n + " " + c.Key;
    }
    if (n == 3)
        break;
    else
        ++n;
}

plugin.SendGlobalMessage(msg); 
plugin.PRoConChat(msg);
  
return false;
Thx PC9

i will change it!!

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

Originally Posted by PapaCharlie9*:

 

hey pc9

 

is thare a limit that disable a weapon on a playercount?

for example if playercount is less than 30 players no use of DAO-12 OR allo shotguns

 

greets glenn

The Loadout Enforcer plugin might do that. Check it out:

 

myrcon.net/.../on-spawn-loadout-enforcer-for-infantryvehicles-adkatslrt

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

Originally Posted by Talzac*:

 

How can i set tickets based on number of users online?

I want to have 50 % tickets with less then 7 players and 100 % with more then 7 players.

 

It is for TDM and hardline

 

thanks

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

Originally Posted by Phractal*:

 

Is there a sniper limiter for hardline that actually checks the amount of sniper in game? What I am looking for is a limiter, that limits the snipers without killing them off once they shot someone. Does something like that even exist? Thanks in advance!

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

Originally Posted by PapaCharlie9*:

 

How can i set tickets based on number of users online?

I want to have 50 % tickets with less then 7 players and 100 % with more then 7 players.

 

It is for TDM and hardline

 

thanks

Use the Ultimate Map Manager plugin.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Is there a sniper limiter for hardline that actually checks the amount of sniper in game? What I am looking for is a limiter, that limits the snipers without killing them off once they shot someone. Does something like that even exist? Thanks in advance!

I don't understand. If it doesn't kill them off, what does it do to limit them? Kick them?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Talzac*:

 

How can I have a country based welcome Yell message 10 sec after first spawn?

 

For example if they are from Sweden I want to greet them with "This is a Swedish Administrated server located in Germany"

 

Thanks.

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

Originally Posted by AgentHawk*:

 

The Ultimate Map Manager plugin will do that for you. That's your best solution.

Doesent work with the VoteMap Plugin.

 

I used this one

 

On Round Over:

int roundTimeLimit = 400; // Change this to anything between 75 and 400 inclusive

plugin.ConsoleWrite("^2Setting vars.roundTimeLimit to " + roundTimeLimit);

plugin.ServerCommand("vars.roundTimeLimit", roundTimeLimit.ToString());

plugin.ConsoleWrite("^2Preset is now ^bCustom^n");

return false;

On Round Over:

int gameModeCounter = 250; // Change this to anything between 75 and 400 inclusive

plugin.ConsoleWrite("^2Setting vars.gameModeCounter to " + gameModeCounter);

plugin.ServerCommand("vars.gameModeCounter", gameModeCounter.ToString());

plugin.ConsoleWrite("^2Preset is now ^bCustom^n");

return false;

On Round Start

plugin.ConsoleWrite("^2Set preset to Normal");

plugin.ServerCommand("vars.preset", "Normal", "false");

plugin.ConsoleWrite("^2Preset is now ^bNormal^n");

return false;

and is it Possible to add a different Map Setting based on our Time? Like all maps between 10-22 aclock and only 2 between 22-10?

 

Thanks alot.

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

Originally Posted by PapaCharlie9*:

 

I was thinking along the Lines of either killing them shortly after spawn if the limit is reached or not let them spawn at all

If you find a ProconRulz solution, you should come back here and say you don't need help any more, or else someone will waste their time doing the same thing in Insane Limits.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

How can I have a country based welcome Yell message 10 sec after first spawn?

 

For example if they are from Sweden I want to greet them with "This is a Swedish Administrated server located in Germany"

 

Thanks.

Here you go:

 

myrcon.net/...insane-limits-examples#entry18434

 

Change plugin.SendGlobalMessage to plugin.SendPlayerYell with player and number of seconds, for example:

 

Code:

if (CC.Equals("us"))
           plugin.SendGlobalYell(player.Name, plugin.R("Welcome to Sweden: %p_n%"), 10);
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Phractal*:

 

If you find a ProconRulz solution, you should come back here and say you don't need help any more, or else someone will waste their time doing the same thing in Insane Limits.

I will for sure!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by moacco07*:

 

Hello,

 

Does anyone knows any existing codes for insane limits for snipers only for all modes for BF4? If not can anyone create it. Appreciate it.

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

Originally Posted by xFaNtASyGiRLx*:

 

hi, i have limit for bad words but want to add "jew" to it. fix code for me please? thanks!!

 

Code:

List<String> bad_words = new List<String>();
    
bad_words.Add(@"n+[1i]+g+[3ea]+r*(bitch|lover|ass|etc)_");
    
String[] chat_words = Regex.Split(player.LastChat, @"\s+");
    
    foreach(String chat_word in chat_words)
        foreach(String bad_word in bad_words)
            if (Regex.Match(chat_word, "^"+bad_word+"$", RegexOptions.IgnoreCase).Success)
                return true;
            
    return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by kangk81*:

 

Hi, is there a way for insane limit to spawn kill a player? I will like to troll players who are disruptive/racists this way. Maybe like this

 

@shitlist [playername]

 

Anyone on that shitlist will be spawn killed until the end of round

 

@unshit [playername] to remove player from the list

 

Thanks

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

Originally Posted by LCARSx64*:

 

hi, i have limit for bad words but want to add "jew" to it. fix code for me please? thanks!!

 

Code:

List<String> bad_words = new List<String>();
    
[b]bad_words.Add(@"n+[1i]+g+[3ea]+r*(bitch|lover|ass|jew)_");[/b]
    
String[] chat_words = Regex.Split(player.LastChat, @"\s+");
    
    foreach(String chat_word in chat_words)
        foreach(String bad_word in bad_words)
            if (Regex.Match(chat_word, "^"+bad_word+"$", RegexOptions.IgnoreCase).Success)
                return true;
            
    return false;
There you go ... I'm pretty sure the |etc is to show you how to add more words, if not, just add that back into that line:

Code:

bad_words.Add(@"n+[1i]+g+[3ea]+r*(bitch|lover|ass|jew|etc)_");
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by xFaNtASyGiRLx*:

 

There you go ... I'm pretty sure the |etc is to show you how to add more words, if not, just add that back into that line:

Code:

bad_words.Add(@"n+[1i]+g+[3ea]+r*(bitch|lover|ass|jew|etc)_");
i thought the bitch lover ass etc was in lines with when they use it w the N word. I don't want people getting kicked from my server by saying "lover" :biggrin:
* 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.