ImportBot Posted November 16, 2013 Author Share Posted November 16, 2013 Originally Posted by PapaCharlie9*: But there's no possibility to read everything the (server) console returns?Nope, or else I'd have to update the plugin every time RCON changes. Procon itself doesn't provide an API for some of the return values either. We have discussed a generic way to get every string returned by RCON, but it might have to wait for Procon 2. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 16, 2013 Author Share Posted November 16, 2013 Originally Posted by PapaCharlie9*: showthread....-Simple-punish* I noticed you created a timeframe for punishing, is there a way to say, give a player 10 seconds before they can punish I answered in the original thread. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 17, 2013 Author Share Posted November 17, 2013 Originally Posted by Wlad*: Hello guys, I hope you can help me. I´m trying to config this plugin but I still get an error. So can someone post me an example for that all Sniperrifles and Explosives (like nades ) are restrictions or the player get an kick and for second try an temp (1 hour) ban. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 17, 2013 Author Share Posted November 17, 2013 Originally Posted by Singh400*: 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.The workaround didn't work either. I watched the plugin very carefully and the commands were being sent in the log, just that they looked malformed so it didn't stick. Re-writing it as a limit instantly fixed it for me. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 17, 2013 Author Share Posted November 17, 2013 Originally Posted by PapaCharlie9*: The workaround didn't work either. I watched the plugin very carefully and the commands were being sent in the log, just that they looked malformed so it didn't stick. Re-writing it as a limit instantly fixed it for me.Okay, but still, some details about the problem in the SCR thread might lead to a solution. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 17, 2013 Author Share Posted November 17, 2013 Originally Posted by PapaCharlie9*: Hello guys, I hope you can help me. I´m trying to config this plugin but I still get an error. So can someone post me an example for that all Sniperrifles and Explosives (like nades ) are restrictions or the player get an kick and for second try an temp (1 hour) ban. At the moment I'm too busy working on the next patch to help write this, but I can give you or someone that can help you a start. Between these two threads is the framework for what you want: showthread....0-RPG-USAS-etc* showthread....s-Count-As-One* You have to update the weapon codes to BF4 from here: myrcon.net/.../weapon-codes-bf3bf4bfhl And remove any references to BF3 maps like Metro and various other BF3 clean-ups, but otherwise, the code you want is spread out over a few posts in those threads. So do some digging and experimenting or find someone willing to help you. There's usually one or two in this forum that do. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 18, 2013 Author Share Posted November 18, 2013 Originally Posted by ColColonCleaner*: Apparently i need to post here. @Papa Thought about a way to have limit actions send through AdKats. Does the second limit have access to ExecuteCommand? If it did i could just write a limit to include a "procon.protected.plugins.call" on AdKats with the needed parameters to get the job done. Let me know. Currently getting these errors: Code: [20:18:07 96] [Insane Limits] ERROR: (CS0117, line: 55, column: 20): 'PRoConEvents.PluginInterface' does not contain a definition for 'ExecuteCommand' [20:18:07 97] [Insane Limits] ERROR: (CS0103, line: 55, column: 110): The name 'JSON' does not exist in the current contextWhen attempting to use this in the second check: Code: //Activations within 5 seconds count as 1 TimeSpan time = TimeSpan.FromSeconds(5); if (limit.Activations(killer.Name, time) > 1) return false; //Build the request to send to AdKats for action handling Hashtable request = new Hashtable(); request["source_name"] = "InsaneLimits"; request["target_name"] = killer.Name; request["command_type"] = "Punish"; //request["command_numeric"] = 0; request["record_message"] = plugin.R("Using Restricted Weapon: %w_n%!"); // Send the request plugin.ExecuteCommand("procon.protected.plugins.call", "AdKats", "PerformExternalPluginCommand", JSON.JsonEncode(request));What should i do to get this working? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 18, 2013 Author Share Posted November 18, 2013 Originally Posted by SSergeantBryan*: 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.PaPa, thank you so much for your advice, BTW, I've another issue regarding the weapons, I've no idea why the server only have the basic weapon instead of base on stats...hopefully could help you kindly advice on my BIG issue too, thanks. P.S I've choose "rank on stats in Pron. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 18, 2013 Author Share Posted November 18, 2013 Originally Posted by PapaCharlie9*: Apparently i need to post here.Nope, I answered in the other thread. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 19, 2013 Author Share Posted November 19, 2013 Originally Posted by Tomgun*: im sure someone did a racist word kicker but for the life of me I cant find where it is, ive found the bad word one but im sure someone did a version where is looks for all variations aswell like the following for the word noob List bad_words = new List(); bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[3e]+[ -/:-@[-`{-~£]*w+[ -/:-@[-`{-~£]*[bp].*"); bad_words.Add(@".*b+[ -/:-@[-`{-~£]*[o0]{2,}[ -/:-@[-`{-~£]*n.*"); bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[4aiu*]+[ -/:-@[-`{-~£]*b.*"); bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[o0]+[ -/:-@[-`{-~£]*[bp]{2,}.*"); bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[o0u]+[ -/:-@[-`{-~£]*[o0u]+[ -/:-@[-`{-~£]*[bp].*"); * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 19, 2013 Author Share Posted November 19, 2013 Originally Posted by Kinsman*: Is it possible in BF4 to kick for battlelog SPM and K/D like we did in BF3? Say Over 5.0 K/D and 1500SPM? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 19, 2013 Author Share Posted November 19, 2013 Originally Posted by LumPenPacK*: Have you already tried it? I don't see any reason why it shouldn't work with BF4 On Join First check epression Code: player.Spm > 1500.0 && player.Kdr > 5.0 Second check code:Code: plugin.KickPlayerWithMessage(player.Name, plugin.R("your message")); return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 19, 2013 Author Share Posted November 19, 2013 Originally Posted by Singh400*: I have reason to believe SPM is broke at the moment, I'm debugging it myself. But some of the SPMs returned are insane. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 19, 2013 Author Share Posted November 19, 2013 Originally Posted by LumPenPacK*: Good to know, I'll also check this. All those different XP boosts could be a problem. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 19, 2013 Author Share Posted November 19, 2013 Originally Posted by Singh400*: Good to know, I'll also check this. All those different XP boosts could be a problem.Yep, that's my thought too. SPM is incredibly unreliable for cheat checking now. You'd be better off sticking to KDR and ACC. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 19, 2013 Author Share Posted November 19, 2013 Originally Posted by PapaCharlie9*: Yep, that's my thought too. SPM is incredibly unreliable for cheat checking now. You'd be better off sticking to KDR and ACC. BF4 hasn't been out long enough for any of those stats to be useful. Even without XP boosts, a level 4 noob can have an SPM that's twice that of a level 47 pro, just by running around a Conquest server capping flags with 3 other friends. KDR can get blown out by sitting on Zavod 311 roof tops sniping all day long. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 19, 2013 Author Share Posted November 19, 2013 Originally Posted by PapaCharlie9*: im sure someone did a racist word kicker but for the life of me I cant find where it is, ive found the bad word one but im sure someone did a version where is looks for all variations aswell like the following for the word noob List bad_words = new List(); bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[3e]+[ -/:-@[-`{-~£]*w+[ -/:-@[-`{-~£]*[bp].*"); bad_words.Add(@".*b+[ -/:-@[-`{-~£]*[o0]{2,}[ -/:-@[-`{-~£]*n.*"); bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[4aiu*]+[ -/:-@[-`{-~£]*b.*"); bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[o0]+[ -/:-@[-`{-~£]*[bp]{2,}.*"); bad_words.Add(@".*n+[ -/:-@[-`{-~£]*[o0u]+[ -/:-@[-`{-~£]*[o0u]+[ -/:-@[-`{-~£]*[bp].*"); Singh400 had one, ask him. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 19, 2013 Author Share Posted November 19, 2013 Originally Posted by PapaCharlie9*: Have you already tried it? I don't see any reason why it shouldn't work with BF4 On Join First check epression Code: player.Spm > 1500.0 && player.Kdr > 5.0 Second check code:Code: plugin.KickPlayerWithMessage(player.Name, plugin.R("your message")); return false; At a minimum, I'd add a check to make sure the player has been playing at least 50 hours before I'd trust any of the stat averages. So add && (player.Time > 60*60*50) somewhere. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 20, 2013 Author Share Posted November 20, 2013 Originally Posted by Kinsman*: Thanks, fully understand the Insane (sorry pun) Stats currently, and adding the 50 hours is a great idea, but I'm unsure how to add it? Also we will start with K/D 6.0 and SPM 2000 for now, and work our way down as the game matures I guess. Is it also worth adding ACC? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 20, 2013 Author Share Posted November 20, 2013 Originally Posted by Singh400*: I would say leave SPM out entirely. I'm running a logging only check across a few servers, and I'm seeing legit SPMs of up to 3000. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 20, 2013 Author Share Posted November 20, 2013 Originally Posted by guapoloko*: Is there any way to make one !Voteban and !Votekick by Insane Limits? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 21, 2013 Author Share Posted November 21, 2013 Originally Posted by PapaCharlie9*: Thanks, fully understand the Insane (sorry pun) Stats currently, and adding the 50 hours is a great idea, but I'm unsure how to add it? OnSpawnFirst check epressionCode: (player.Time > 50*60*60) && player.Kdr > 8.0 Second check code:Code: plugin.KickPlayerWithMessage(player.Name, plugin.R("your message")); return false;player.Time is seconds, so to make hours you have to use 60*60, which means 60 minutes x 60 seconds. I removed spm and I made kdr be greater than 8. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 21, 2013 Author Share Posted November 21, 2013 Originally Posted by lordicon*: I have been trying to use the Pistol Only Server code which is not working for some reason. For example if someone uses the QSZ-92 they get warned and kicked when they shouldn't be. Here is what I have so far. first_check Code: ! Regex.Match(kill.Weapon, @"(P226|M9|QSZ-92|MP443|G18|FN57|M1911|93R|CZ-75|.44 MAGNUM|COMPACT 45|M412 REX|HAND FLARE|M18 SMOKE|M320 SMK|XM25 SMOKE|MELEE)", RegexOptions.IgnoreCase).Successsecond_checkCode: double count = limit.Activations(player.Name); if (count == 1) plugin.SendGlobalMessage(plugin.R("%p_n%, this is a pistol and melee only server, do not use the %w_n% again! Next time kicked")); else if (count > 1) plugin.KickPlayerWithMessage(player.Name, plugin.R("%p_n%, kicked you for killing %v_n% with a %w_n% on a pistol/melee only server")); return false;I am thinking that its not working because of the names of the items with spaces and - if you can help it would mean a lot. the items in the first_check are the only ones allowed. I want to disallow everything else. Also getting this when adding the code. Code: [19:50:58 14] [Insane Limits] WARNING: second_check_code is empty for Limit #1 [19:51:01 79] [Insane Limits] Compiling Limit #1 - Pistols and Melee Only - OnKill [19:51:01 79] [Insane Limits] WARNING: second_check_code is empty for Limit #1 [19:51:11 63] [Insane Limits] Compiling Limit #1 - Pistols and Melee Only - OnKill/Also when a player dies by a headshot it shows up in the list as [M9|-HEADSHOT-] and I am wondering if that is whats happening. 1ST EDIT: Just changed the first_check to this to try it out, however still may need help. Code: !Regex.Match(kill.Weapon, @"(DamageArea|Death|Melee|SoldierCollision|Suicide|U_Defib|U_Medkit|U_PortableMedicpack|U_Repairtool|U_Taurus44|U_HK45C|U_CZ75|U_FN57|U_Glock18|U_M1911|U_M9|U_M93R|U_MP412Rex|U_MP443|U_P226|U_QSZ92|U_AK12_M320_SMK|U_M320_SMK|U_M416_M320_SMK|U_SAR21_M320_SMK|U_XM25_Smoke|U_AEK971_M320_SMK|U_Handflare)", RegexOptions.IgnoreCase).Success 2ND EDITThis is also not catching every time a person does this, And its also not kicking at all. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 21, 2013 Author Share Posted November 21, 2013 Originally Posted by PapaCharlie9*: Also getting this when adding the code. Code: [19:50:58 14] [Insane Limits] WARNING: second_check_code is empty for Limit #1 [19:51:01 79] [Insane Limits] Compiling Limit #1 - Pistols and Melee Only - OnKill [19:51:01 79] [Insane Limits] WARNING: second_check_code is empty for Limit #1 [19:51:11 63] [Insane Limits] Compiling Limit #1 - Pistols and Melee Only - OnKill/... 2ND EDIT This is also not catching every time a person does this, And its also not kicking at all. The plugin is telling you that you didn't paste the second_check code correctly. Since the warn/kick is in second_check, it makes sense that no one is getting kicked. Try pasting the code into second_check again. Make sure it is set to Code. For you latest Regex weapon codes, its overkill but it should work. You can drop the U? for each code, its not needed. Also, if just use M320, it will cover all of the codes that contain M320. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 22, 2013 Author Share Posted November 22, 2013 Originally Posted by p19blo*: hello My clan used to use a plugin that wouldnt allow certain player tags into a server, and it would kick them, telling them to change the tags. Is there a way for limits to only allow certain tags to join a server ? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 22, 2013 Author Share Posted November 22, 2013 Originally Posted by Singh400*: But there's no possibility to read everything the (server) console returns?No, not AFAIK. Anyway that would be a very intensive process. Is there something in particular you wanted to do? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 22, 2013 Author Share Posted November 22, 2013 Originally Posted by PapaCharlie9*: hello My clan used to use a plugin that wouldnt allow certain player tags into a server, and it would kick them, telling them to change the tags. Is there a way for limits to only allow certain tags to join a server ? Yes, search for Simple Clan Tag Kicker in Insane Examples. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 22, 2013 Author Share Posted November 22, 2013 Originally Posted by Jaythegreat1*: Edit: Nvm * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 22, 2013 Author Share Posted November 22, 2013 Originally Posted by electron*: Request: Advanced Sniper Rifle Limiter. Hello, I have about zero skill in writing limits/code, if anyone is up to making this pluing, we would greatly appreaciate it. Short version: x% of sniper rifles in use in each squad. x kills with unauthorized sniper rifle before admin kill. Long version: We would like to limit the amount of sniper rifles in each squad. This to prevent too many becoming lone snipers. Preferably you can set a percentage of how many players can use sniper rifles, f.ex. 25% of players in each squad can be a sniper, so in essence there can be 1 sniper in a 4 and a 5 man squad, if there are only 3 people in the squad, there can be no snipers. If limit is set to 40%, there can be 0/1 0/2 1/3 1/4 2/5. etc etc. Optimally, it will announce in each Squad how many sniper rifles are availible, and how many are in use "Sniper limit: 1 of 2 in use". This should also announce when a player is no longer using a sniper rifle. We are not a fan of insta-kills when you use a sniper rifle, so preferably, it will announce to the person, "You have used 1 of 3 allowed sniper rfile kills". On the 4th kill, the player is admin killed. Alternative: Percentage of players on the team can be snipers (so it adjusts to amount of players on the server) x amounts of kills with sniper rifles, with warning after each kill. Automatic messages to team of how many sniper rifles are in use. We obviously don't want to limit the use of the Recon kit or DMR. Thank you electron * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted November 23, 2013 Author Share Posted November 23, 2013 Originally Posted by IAF-SDS*: Hey Papa. After our testing of the temporary mute limit, here's the updated request you wanted me to post for a MUTE Limit to be used by BF4 servers (I assume it would not be any different for BF3). This mute limit is an alternative method to mute players who are just regularly disruptive (since normal chat muting is not available in BF4), and it will automatically kill/kick/tempban a specific player whenever he types anything in chat as follows: 1) Player X is placed on an IL List called "MUTEList" with his EA_GUID and/or PlayerName. In my testing, we encountered one player who changed his name specifically to avoid this mute limit, which is why the guid is better. 2) Player X types in chat and immediately this private chat messages is sent to him: %p_fn% you have been MUTED INDEFINITELY for being disruptive. You will be auto killed/kicked after you chat! Then, 10 seconds later he is automatically admin killed. I found a 10 second delay before he was admin killed gave him enough time to read the warning and still provided a nice wakeup because the admin kill feels aggressive in BF4. The message above fits the maximum character limit for chat. 3) Each time he chats on the 2nd and 3rd time, Player X is given the same private message and then admin killed 10 seconds later as shown in number 2 above. 4) Since Player X can spam the chat when he's dead without being admin killed, on the 4th time he types anything in chat, he is kicked with this reason: %p_fn% KICKED and MUTED INDEFINITELY for being disruptive! 5) If Player X comes back after the kick and types in chat again (5th time), he is instantly temp banned by EA_GUID for 1 day with this kick reason: %p_fn% TEMP BAN 1 DAY and MUTED INDEFINITELY for being disruptive! . * Restored post. It could be that the author is no longer active. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.