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.




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