Jump to content

Insane Limits Requests


ImportBot

Recommended Posts

Originally Posted by PapaCharlie9*:

 

Does somebody know what is causing the following error messages?

The error means that you tried to test if a player name was in a list, but Insane Limits hasn't seen that name in a listPlayers event yet/ever. It might be due to the name-change hack that is going around.

 

Whats the difference between the object "inPlayerWhitelist" and "isInWhitelist"? Does "isInWhitelist" check both player_white_list and clan_white_list entries?

 

Thanks.

The functions do the same thing, they both check both player_white_list and clan_white_list. One is handy if you happen to have a player object in your hand, like for an OnSpawn event. The other is handy when you don't have a player object in your hand, like for OnIntervalServer.
* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 3.2k
  • Created
  • Last Reply

Originally Posted by PapaCharlie9*:

 

There's so much in this forum I don't know where to start.

 

I need some help with a rule. We have a group of about 9 old farts, Army Veterans and we have a lot of fun. However, we allowed on of the kids of our group to play and he is owning us BADLY. We're checking to see if he's using any bots, but, in case he's just that good, we want to add a rule that limits kill streaks, which should be easy; but we also want to add a rule that slows down an over-achiever a bit. For instance, the kid's stats last night were nearly 4-1 kills over anyone else on our server last night. The 2 guys that usually do great were on the other team and still getting owned by this 17 y/o. We want to limit the kill ratio to 2.5-1 for the highest player to the next highest. For example if someone 38 kills and the next highest kill count is 15, we want to slow that person down by only letting him (her_) get 1 kill at a time until someone else can catch up.

 

Does that sound possible?

Yes, it's just a game, but we're all older professional guys with kids, wives, and careers and the kid does nothing but play BF3 after school. We want to make it competitive again on our server.

 

Thanks

Crusty

Hey Crusty. I can relate, our clan had a similar situation, real combat veterans as well as long-time FPS veterans getting owned by a youngster, only it was a 14-year old who was dominating.

 

Two pieces of advice from that experience:

 

1) There's an opportunity here for some cross-training. What mode do you usually play? If it's TDM or SQDM, which favor pure quick-twitch reflexes and visual acuity, i.e, the young, switch to Conquest or Rush, a mode that has team objectives. Then have the youngster show you guys some of the tricks he uses to get a high KDR while you vets show him squad tactics and mission planning to achieve objectives. One of the best squads I ever played against were all USMC vets and they applied their squad training to the game with stellar results. They used comms extremely effectively, as well as smoke grenades, diversions, overwatch, etc. Show the youngster that there is more to effective combat than a quick trigger finger.

 

2) Just get used to the fact that you and your mates are going to get owned. What we tended to do was specialize in aspects of the game that the youngsters weren't good at: taking objectives, air support (as opposed to dog fighting), armor and artillery, sniping, defending an outpost, etc. Heck, just being a medic to follow the young hotshot around and rez him the few times he gets hit can be fun.

 

===========

 

For your specific request, I'll need more detail about what kind of restriction you want to use. There are only four things a plugin can do to a single player: ban, kick, admin kill and move. Banning and kicking seem too heavy-handed. There's no way to control a single players ability to kill other players. That leaves admin killing and moving to the other team. Those are the only things that any plugin can do to a single player. So maybe force the player with the high KDR to switch to the other team? He'll still have a high KDR, but it will benefit both teams over the course of a round.

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

Originally Posted by cptcrusty1*:

 

Hey PapaCharlie... in response to LumPenPack

 

We're not trying to "punish" anyone, unless they have a hack in which we're not sure if the "kid" does or not. No one really comes on our server. When they do, we have some general server rules to play by (custom games we've invented), if you don't play by the rules, it ruins the game play for all of us. YOu get warned a couple times, then you get kicked.

 

Going back to the "kid", he owns us so badly sometimes that it's the same thing. It ruins the game play. You say we shouldn't make people angry, but what about the people that are paying for the server getting trounced all the time, it makes US angry. We like the kid., but it's like it's Michael Jordan against 6 Michael J. Fox's. It's no competition sometimes. Since we're running Proconn, we can turn the rule on or off as needed. When People come on to the server, and play by the rules (certain weapons, certain Flag capture tactics), we all have a good time. In those cases, the "KID" and all of us usually get on one team. We use military tactics, and we dominate.... most of the time.. LOL... depends on how much Hennesey we've had by then.

 

PapaCharlie. What we're looking for is a 1 kill:1 Suicide job for any player that has more that, for example 2.5:1 Kill ratio, or maybe 3:1. So If I only have 10, and I have the 2nd highest number of kills, than when someone else reached 3x my kill count, they only get 1 kill and then they commit suicide... Actually, make it 2. I should be able to edit the code, AND learn from it, if I saw it.

 

Again, not trying to PUNISH as much as slow down. Kind of like a handicap in Golf.... and oNLY when it's out of control..l.. His score the other night was 50 to 15..... that's crazy. 2 other players were getting angry, and one flat quit.

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

Originally Posted by Singh400*:

 

Again, not trying to PUNISH as much as slow down. Kind of like a handicap in Golf.... and oNLY when it's out of control..l.. His score the other night was 50 to 15..... that's crazy. 2 other players were getting angry, and one flat quit.

You gotta start mixing the modes up. TDM is tuned for young whippersnappers like myself. A slowly more deliberate game mode will naturally restrict his abilities.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by cptcrusty1*:

 

You gotta start mixing the modes up. TDM is tuned for young whippersnappers like myself. A slowly more deliberate game mode will naturally restrict his abilities.

We do.. We do. He gets really frustrated when we start doing stuff like a movement to contact. He wants to run out and kill everyone, but it's not the object. He also gets frustrated when it's say: 3 on 3 and he wants to go hide and be a sniper. He's not that good at picking good spots, and doesn't understand that we'll figure out where he is pretty quick, but since he's not that great at sniper, it weakens his team.

 

In Armored Kill, he doesn't understand stuff like Hull-down Defalade, or flying wedge formations (which work), again, he likes to run out and just kill everyone.... so in a couple situations, he ain't too good... flying... tanking... but we like being on foot and he just kills us wholesale like that.

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

Originally Posted by PapaCharlie9*:

 

We do.. We do. He gets really frustrated when we start doing stuff like a movement to contact. He wants to run out and kill everyone, but it's not the object. He also gets frustrated when it's say: 3 on 3 and he wants to go hide and be a sniper. He's not that good at picking good spots, and doesn't understand that we'll figure out where he is pretty quick, but since he's not that great at sniper, it weakens his team.

 

In Armored Kill, he doesn't understand stuff like Hull-down Defalade, or flying wedge formations (which work), again, he likes to run out and just kill everyone.... so in a couple situations, he ain't too good... flying... tanking... but we like being on foot and he just kills us wholesale like that.

I want to play with you guys! You're talkin' my language. What's the server link?

 

I'm still not clear on your requirements. If by suicide you mean admin kill, that can be done. A straight KDR limit can also be done, regardless of relative ranking on the leaderboard. But then you said:

 

So If I only have 10, and I have the 2nd highest number of kills, than when someone else reached 3x my kill count, they only get 1 kill and then they commit suicide... Actually, make it 2.

That sounds like relative ranking on the leaderboard is involved as well. That is much harder to implement.

 

If you just want a limit that triggers when KDR exceeds 5.0 (or whatever), that's easy. In fact, it's this:

 

Create a limit OnKill, call it "Kid Control", set Action to None.

 

Set first_check to this Code:

 

Code:

/* Version 0.9/R2 */
String kidsName = "LevelCapWannaBe"; // change to the target player's actual soldier name, spelled exactly
double maxKDR = 5.0; // change to whatever max kdr you want to enforce on that player

if (killer.Name != kidsName) return false; // only apply this to one specific player

int count = 0;
if (killer.RoundData.issetInt(kidsName)) count = killer.RoundData.getInt(kidsName);

if (killer.KillsRound > maxKDR && killer.KdrRound >= maxKDR)
{
    // Every other kill results in an admin kill of the player
    count = count + 1;
    if ((count % 2) == 1) { // every odd number kill
        // Warn player to slow down
        plugin.SendPlayerYell(killer.Name, "Slow down your kill streak, let your team catch up!", 5);
    } else { // every even numbered kill
        plugin.SendPlayerYell(killer.Name, "Take a break, don't spawn until we catch up!", 5);
        plugin.PRoConChat("ADMIN> Killing " + kidsName + " to slow him down");
        plugin.KillPlayer(killer.Name, 5);
    }
}
killer.RoundData.setInt(kidsName, count);
return false;
BTW, it should be obvious, but just in case, if I were this kid, I'd quit playing and go do something else once this rule starts getting enforced on me. I'm just sayin'.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by cptcrusty1*:

 

LOL PapaCharlie, shoot me a PM. I'll get you some contact i nformation from there.

 

We typically get together around 9pm-ish CST on no given day. Someone sends out a text message indicating that the game is on. several of us have Proconn so no shortage of control. Most of the time it's a saturday evening. We have enough people and off we go. I'm not going to advertise our server name... we like it down low.

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

Originally Posted by Singh400*:

 

Making a slight modification to my Damage Mod Limit. I usually log below 2.6 hits per kill. And then review the CSV to confirm the log and then issue a ban.

 

But I want to include an amendment where if the ratio is below 2.0 then they get banned instantly. I'm not too family with setting custom keys, so I'm posting here to check it's all good before I deploy it across my servers. The amendment is right at the bottom of the code:-

 

Code:

if (killer.StatsError)
{
	return false;
}

BattlelogWeaponStatsInterface bws = killer.GetBattlelog(kill.Weapon);

List<string> ignore_guns = new List<string>();
// Shotguns
ignore_guns.Add("870MCS");
ignore_guns.Add("DAO-12");
ignore_guns.Add("M1014");
ignore_guns.Add("Siaga20k");
ignore_guns.Add("USAS-12");
ignore_guns.Add("SPAS-12");
ignore_guns.Add("M26Mass");
ignore_guns.Add("jackhammer");
// Snipers
ignore_guns.Add("L96");
ignore_guns.Add("M417");
ignore_guns.Add("QBU-88");
ignore_guns.Add("SKS");
ignore_guns.Add("SV98");
ignore_guns.Add("SVD");
ignore_guns.Add("M40A5");
ignore_guns.Add("Melee");
ignore_guns.Add("Mk11");
ignore_guns.Add("JNG90");
ignore_guns.Add("M39");
ignore_guns.Add("Model98B");
// Melee
ignore_guns.Add("Knife_RazorBlade");
ignore_guns.Add("Weapons/Knife/Knife");
ignore_guns.Add("Melee");
ignore_guns.Add("Repair Tool");
// Pistols
ignore_guns.Add("Weapons/MP412Rex/MP412REX");
ignore_guns.Add("Taurus .44");
ignore_guns.Add("Glock18");
ignore_guns.Add("M1911");
ignore_guns.Add("M9");
ignore_guns.Add("M93R");
ignore_guns.Add("Weapons/MP443/MP443");
ignore_guns.Add("Weapons/MP443/MP443_GM");
// Misc
ignore_guns.Add("CrossBow");
ignore_guns.Add("M320");
ignore_guns.Add("M67");
ignore_guns.Add("Weapons/Gadgets/C4/C4");
ignore_guns.Add("Weapons/Gadgets/Claymore/Claymore");
// RPGs
ignore_guns.Add("RPG-7");
ignore_guns.Add("SMAW");
ignore_guns.Add("FGM-148");
ignore_guns.Add("FIM92");
ignore_guns.Add("Weapons/Sa18IGLA/Sa18IGLA");

if (ignore_guns.Contains(kill.Weapon) || bws.ShotsHit == 0 || bws.Kills == 0)
{
	return false;
}

double ratio = (bws.ShotsHit / bws.Kills);

string fancy_time = DateTime.Now.ToString("HH:mm:ss");

string fancy_date = DateTime.Now.ToString("yyyy-MM-dd");

if (bws.Kills >= 50 && bws.ShotsHit > 0 && (ratio <= 2.6)) 
{
	// Only report this once per round for this player/weapon combo
	string logKey = "DMGMODLOG_" + killer.Name + ":" + kill.Weapon;

	if (plugin.RoundData.issetBool(logKey))
	{
		return false;
	}

	plugin.RoundData.setBool(logKey, true);

	plugin.Log("Logs/InsaneLimits_DMOD.csv", plugin.R("LOGGED: " + fancy_date + "," + fancy_time + "," + killer.Name + "," + bws.Name + ",%p_pg%," + ratio));
}

if (bws.Kills >= 100 && bws.ShotsHit > 0 && (ratio <= 2.0)) 
{
	// Only report this once per round for this player/weapon combo
	string banKey = "DMGMODBAN_" + killer.Name + ":" + kill.Weapon;

	if (plugin.RoundData.issetBool(banKey))
	{
		return false;
	}

	plugin.RoundData.setBool(banKey, true);

	plugin.Log("Logs/InsaneLimits_DMOD.csv", plugin.R("BANNED: " + fancy_date + "," + fancy_time + "," + killer.Name + "," + bws.Name + ",%p_pg%," + ratio));
	plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Permanent, player.Name, 0, "[Auto-Admin] Hacking/Cheating - Damage Mod");
}

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

Originally Posted by PapaCharlie9*:

 

Hello, I'm new here. How can I set up insane limits to "yell" some different info at different times to all players?

 

Thanks for your help,

Some examples would be helpful. What do you want to yell and when/how often?

 

For example, if you mean like every 5 minutes yell "Hey!" and every 7 minutes yell "Go!", it would look like this:

 

Create a limit OnIntervalServer, set interval to 60 seconds, call it "Yeller", leave Action set to None.

 

Set first_check Code to:

 

Code:

String message1 = "Hey!";
String message2 = "Go!";

double delay1 = 5; // minutes between yell of message 1
double delay2 = 7; // minutes between yell of message 2

String key1 = "message 1 key"; // key for message 1
String key2 = "message 2 key"; // key for message 2

int count1 = 0;
int count2 = 0;
if (plugin.RoundData.issetInt(key1)) count1 = plugin.RoundData.getInt(key1);
if (plugin.RoundData.issetInt(key2)) count2 = plugin.RoundData.getInt(key2);
count1 = count1 + 1;
count2 = count2 + 2;

if (count1 >= delay1) {
    plugin.SendGlobalYell(message1, 15); // Yell for 15 seconds
    count1 = 0;
}

if (count2 >= delay2) {
    plugin.SendGlobalYell(message2, 15); // Yell for 15 seconds
    count2 = 0;
}

plugin.RoundData.setInt(key1, count1);
plugin.RoundData.setInt(key2, count2);

return false;
Just change the message1 and message2 values to whatever messages you want. The delays also. To add a third message, just copy & paste every line with a "2", like Stringe message2, double delay2, int count2 = 0;, etc., and change all the 2 to 3 in your copy. It's all the same pattern, just change the number. Make sure you change ALL of them, though. Don't mix a 2 with a 3 on any single line.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 1 month later...

Originally Posted by Tomgun*:

 

can we get a !punish and !forgive script working for bf4 version of insane limits please

 

could it also watch for people saying variations of sorry of the TK to prevent a punish

 

that would be great

 

cheers

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

Originally Posted by SSergeantBryan*:

 

Hi PaPa, I'm decide to have a no explosive server in BF4 with map Mp_Prison which would like to set the scrip as follows rules, but my settings isn't work would you please advice on my scrip and put me right...thanks..

 

Rules..

1st time Offender will be killed by Auto-System and given a warning.

2nd time Offender will be kicked by Auto-System and given a final warning.

3rd time Offender will be ban for 1 day.

 

Following are list of weapons that are 'Prohibited' in the Server

 

- M67 Frag

- V40 Mini

- RGO Impact

- M34 Incendiary

- Shotguns Frag round

- USAS-12 Battlepickup

- M320 HE

- M320 LVG

- M26 Frag

- MBT LAW

- RPG-7V2

- M2 SLAM

- Mk153 SMAW

- FGM-148 Javelin

- FGM-172 SRAW

- XM25

- M224 Mortar

- C4 Explosive

 

( Regex.Match(server.MapFileName, @"(_:MP_Prison)", RegexOptions.IgnoreCase).Success && Regex.Match(kill.Weapon, @"(_:M320|RPG|SMAW|Death|M67|C4)", RegexOptions.IgnoreCase).Success )

 

/* Version: V0.8/R1 */

String kCounter = killer.Name + "_TreatAsOne_Count";

TimeSpan time = TimeSpan.FromSeconds(2); // Activations within 2 seconds count as 1

 

int warnings = 0;

if (server.Data.issetInt(kCounter)) warnings = server.Data.getInt(kCounter);

 

/* Extract short weapon name */

Match m = Regex.Match(kill.Weapon, @"/([^/]+)$");

String wn = kill.Weapon;

if (m.Success) wn = m.Groups[1].Value;

if (wn == "Roadkill") wn = "MAV";

 

/*

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";

int delay = 5; // show yell for 5 seconds then kill

if (warnings == 0) {

msg = plugin.R("Attention %k_n%! Do not use " + wn + "!"); // First warning message

plugin.SendGlobalMessage(msg);

plugin.ServerCommand("admin.yell", msg, delay.ToString(), "player", killer.Name);

plugin.PRoConChat("ADMIN (pyell at " + killer.Name + ") > " + msg);

plugin.KillPlayer(killer.Name, delay);

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) { // Kick

msg = "for using " + wn + " on Metro!";

plugin.SendGlobalMessage("Kicking " + killer.Name + " " + msg);

plugin.PRoConChat("ADMIN > Kicking " + killer.Name + " " + msg);

plugin.PRoConEvent("Kicking " + killer.Name + " " + msg, "Insane Limits");

plugin.KickPlayerWithMessage(killer.Name, msg);

} else if (warnings >= 2) { // Temp ban

msg = "for using " + wn + " on Metro!";

plugin.SendGlobalMessage("Temporarily banning " + killer.Name + " " + msg);

plugin.PRoConChat("ADMIN > Temporarily banning " + killer.Name + " " + msg);

plugin.PRoConEvent("Temporarily banning " + killer.Name + " " + msg, "Insane Limits");

plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Temporary, killer.Name, 40*12*3, msg);

}

server.Data.setInt(kCounter, warnings+1);

return false;

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

Originally Posted by PapaCharlie9*:

 

Hi PaPa, I'm decide to have a no explosive server in BF4 with map Mp_Prison which would like to set the scrip as follows rules, but my settings isn't work would you please advice on my scrip and put me right...thanks..

 

Rules..

1st time Offender will be killed by Auto-System and given a warning.

2nd time Offender will be kicked by Auto-System and given a final warning.

3rd time Offender will be ban for 1 day.

 

Following are list of weapons that are 'Prohibited' in the Server

 

- M67 Frag

- V40 Mini

- RGO Impact

- M34 Incendiary

- Shotguns Frag round

- USAS-12 Battlepickup

- M320 HE

- M320 LVG

- M26 Frag

- MBT LAW

- RPG-7V2

- M2 SLAM

- Mk153 SMAW

- FGM-148 Javelin

- FGM-172 SRAW

- XM25

- M224 Mortar

- C4 Explosive

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

 

Code:

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

 

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

 

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

 

Code:

( Regex.Match(server.MapFileName, @"(_:MP_Prison)", RegexOptions.IgnoreCase).Success && Regex.Match(kill.Weapon, @"(_:M320|RPG|SMAW|Death|M67|C4|V40|XM25)", RegexOptions.IgnoreCase).Success )
Notice that I removed the U? prefix.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by IAF-SDS*:

 

Hey Papa.

 

I have a limits request to MUTE players who are just regularly disruptive. This idea comes from BFBC2's ability to MUTE, but we have to get a little creative to make this work in BF3/BF4.

 

What I would like is a limit that will automatically kill/kick/tempban a specific player whenever he types anything in chat (explained below).

 

Since I have ProCon restarted automatically each night at 3AM, I would imagine a temp mute system won't work for me, and instead a list would be used specifically for those indefinitely muted.

 

 

This is what I had in mind:

 

1) Player X is placed on the MUTE list.

 

2) Player X is admin killed as soon as he types anything in chat, and then this private chat messages is sent to him:

PlayerName, you have been MUTED INDEFINITELY for being disruptive, and you will be auto killed/kicked after you chat.

 

3) Player X is admin killed each time he chats on the 2nd and 3rd time, and on the 4th time he is kicked with this reason:

PlayerName KICKED for chat (MUTED INDEFINITELY)

 

4) Player X is instantly temp banned by EA GUID for 1 day if he comes back and chats again (5th time), with this reason:

PlayerName TEMP BAN 1 DAY for chat (MUTED INDEFINITELY)

 

 

Thanks in advance for your help with this.

 

 

.

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

Originally Posted by LumPenPacK*:

 

First check on kill expression:

Regex.Match(kill.Weapon, @"(U_CS-LR4|U_M40A5|U_SV98|U_JNG90|U_M98B|U_FY-JS|U_SRS|U_M82A3_MED|U_Scout|U_M82A3_CQB|U_M82A3|U _M200|U_AMR2_MED|U_AMR2)", RegexOptions.IgnoreCase).Success

second check code:

plugin.SendGlobalMessage(plugin.R("%p_n% has been kicked for sniping."));

plugin.KickPlayerWithMessage(player.Name, plugin.R("Snipers are not allowed"));

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

Originally Posted by PapaCharlie9*:

 

Hey Papa.

 

I have a limits request to MUTE players who are just regularly disruptive. This idea comes from BFBC2's ability to MUTE, but we have to get a little creative to make this work in BF3/BF4.

I'd love to have that too, but unfortunately there is no RCON support for this in BF4 ... yet. Maybe someday they'll add it?

 

Truth be told, I did gripe about the lack of squad VOIP built-in to BF3, so now that I've got it, I want to shut those mfers up, lol!

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

Originally Posted by IAF-SDS*:

 

I'd love to have that too, but unfortunately there is no RCON support for this in BF4 ... yet. Maybe someday they'll add it?

 

Truth be told, I did gripe about the lack of squad VOIP built-in to BF3, so now that I've got it, I want to shut those mfers up, lol!

Papa,

 

I know there isn't an actual CHAT TEXT mute function in BF3/BF4. I was talking about creating a limit that would be an alternative to such a function by automatically killing, kicking, and eventually temp banning a disruptive player who types anything whatsoever in chat.

 

I would add a disruptive player to my IL List, and the IL Mute Limit you create would automatically kill, kick, and temp ban anyone from that IL List who typed anything in chat.

 

Im specifically talking about in game CHAT TEXT, not VOIP. Basically, they would shut up because every time they typed anything in chat, the limit would slap them around lol. The killing and kicking should get the message across real fast, but if someone persisted, the temp ban would be there to get them out of the server for the day.

 

This is the limit I would like you to please create for me:

 

 

...

 

This is what I had in mind:

 

1) Player X is placed on the Insane Limits List called "MUTE List" or whatever name you want.

 

2) Player X is admin killed as soon as he types anything in chat, and then this private chat message is sent to him:

"PlayerName, you have been MUTED INDEFINITELY for being disruptive, and you will be auto killed/kicked after you type in chat."

 

3) Player X is admin killed each time he types in chat on both the 2nd and 3rd times, and on the 4th time he is kicked with this reason:

"PlayerName KICKED for chat (MUTED INDEFINITELY)"

 

4) Player X is instantly temp banned by EA GUID for 1 day if he comes back and chats again (5th time), with this reason:

"PlayerName TEMP BAN 1 DAY for chat (MUTED INDEFINITELY)"

 

 

Thanks in advance for your help with this.

 

 

.

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

Originally Posted by ColColonCleaner*:

 

Papa,

 

I know there isn't an actual CHAT TEXT mute function in BF3/BF4. I was talking about creating a limit that would be an alternative to such a function by automatically killing, kicking, and eventually temp banning a disruptive player who types anything whatsoever in chat.

 

I would add a disruptive player to my IL List, and the IL Mute Limit you create would automatically kill, kick, and temp ban anyone from that IL List who typed anything in chat.

 

Im specifically talking about in game CHAT TEXT, not VOIP. Basically, they would shut up because every time they typed anything in chat, the limit would slap them around lol. The killing and kicking should get the message across real fast, but if someone persisted, the temp ban would be there to get them out of the server for the day.

 

This is the limit I would like you to please create for me:

Mute functionality is already part of AdKats if you would like to check it out. Documentation here: https://github.com/ColColonCleaner/A...#player-muting

 

Link to AdKats in my signature.

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

Originally Posted by Halfdead*:

 

I'm looking to make an Unranked Battlefield 4 Pistol only server, which to my knowledge doesn't break any rules.

 

I looked up the examples thread that had a Pistol Only script example in it and added the new pistols to the first list, which compiled. However the second part isn't compiling. This is what I have so far, any help would be appreciated.

 

Set limit to evaluate OnKill, set action to None

 

 

Set first_check to this Expression:

 

Code:

Code:

! Regex.Match(kill.Weapon, @"(M9|QSZ-92|MP443|Shorty 12G|G18|FN57|M1911|93R|CZ-75|.44 Magnum|Compact 45|P226|M412 Rex)", 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 pistol 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 pistol only server"));
     
     return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

I'm looking to make an Unranked Battlefield 4 Pistol only server, which to my knowledge doesn't break any rules.

 

I looked up the examples thread that had a Pistol Only script example in it and added the new pistols to the first list, which compiled. However the second part isn't compiling. This is what I have so far, any help would be appreciated.

 

Set limit to evaluate OnKill, set action to None

 

 

Set first_check to this Expression:

 

Code:

Code:

! Regex.Match(kill.Weapon, @"(M9|QSZ-92|MP443|Shorty 12G|G18|FN57|M1911|93R|CZ-75|.44 Magnum|Compact 45|P226|M412 Rex)", 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 pistol 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 pistol only server"));
     
     return false;
I don't think those are the right codes for pistols. For example, the weapon code for the .44 Magnum is U_Taurus44. You need to use the codes from here:

 

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

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

Originally Posted by Singh400*:

 

Simple Command Repeater plugin is broke for me, doesn't always work - I use it to correct a server name that I don't have full access to.

 

Code:

String correctServerName = "the name you want for your server";

if(server.Name != correctServerName)
{
	plugin.ConsoleWrite("It's wrong");
	plugin.ServerCommand("vars.serverName", correctServerName);
}

return false;
I imagine the above code can be modified to send all manner of server commands should the Simple Command Repeater plugin be broken for anyone else.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LumPenPacK*:

 

Is it possible to get a server setting value with IL?

 

For example I want to read the current vars.gameModeCounter.

plugin.ServerCommand("vars.gameModeCounter", "") should basically give me OK 100 back.

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

Originally Posted by Singh400*:

 

Is it possible to get a server setting value with IL?

 

For example I want to read the current vars.gameModeCounter.

plugin.ServerCommand("vars.gameModeCounter", "") should basically give me OK 100 back.

No, that is setting the value to nothing. If you want to get the current value it is "server.GameModeCounter".

 

Try this:-

 

Code:

double correctGameModeCounter = 100;

if(server.GameModeCounter != correctGameModeCounter)
{
	plugin.ConsoleWrite("It's wrong");
	plugin.ServerCommand("vars.gameModeCounter", correctGameModeCounter.toString());
}

return false;
Remember it's OnIntervalServer.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Simple Command Repeater plugin is broke for me, doesn't always work - I use it to correct a server name that I don't have full access to.

Please post in the SCR thread what problems you are having so they can be fixed. Is it the double quote problem? That is discussed in that thread and there are workarounds.
* 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.