ImportBot Posted May 12, 2013 Author Share Posted May 12, 2013 Originally Posted by dyn*: Got a fresh request here Thought this one had been already requested but searching on here and Google produced zero results. We're running private matches and want 'all chat' to be completely limited. If someone all chats during the match, they're kicked. No warning just a quick kick. The only problem is that when a round is completed and the next map loads we usually are not 'live' -- people are screwing around and all chat is fine. Additionally, with a few tickets left 'gg' should be allowed. Ideally this should be all automated and also include a whitelist so admins can all chat. Ideas: Once a whitelisted player types !live a message could be spammed to all chat and a yell that the round is live and all chat results in an automated kick. If anyone all chats during this period they are automatically kicked. Once there is under (some number of tickets / percent) left in round, or a whitelisted player types !end another message is spammed saying the round is almost over (xx tickets left & gg perhaps__) and that chat is enabled. Right now the admins have to monitor the chat and then try and pick up on all chat. If someone does all chat, and isn't kicked, there are then other players who complain about it... especially if the complainer was kicked earlier for it. Possible? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 12, 2013 Author Share Posted May 12, 2013 Originally Posted by TMiland*: PapaCharlie9* said: It's not using exact match, it's using the same near match that Procon in-game commands do, like !kick. For example, if I were the admin, any chat with papac or Charlie or PAPAPCHARLIE should match me. EDIT: oops, sorry. There was a problem in the code that was defeating the near match intent. I fixed it so that it really is near match now. Thank you PapaCharlie9! Much appreciated! I'll test it out * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 13, 2013 Author Share Posted May 13, 2013 Originally Posted by TMiland*:I found this limit: showthread....with-a-vehicle*Is it possible to only make this limit count, if it is 16 players or less on the server? <div class="bbcode_container"> <div class="bbcode_description">PHP Code:</div> <div class="bbcode_code" style="height:84px;"><code><code><span style="color: #000000"> <span style="color: #0000BB">String msg </span><span style="color: #007700">= </span><span style="color: #DD0000">"This is infantry only, don't use vehicles!"</span><span style="color: #007700">; </span><span style="color: #FF8000">// Change this to whatever message you want </span><span style="color: #0000BB">plugin</span><span style="color: #007700">.</span><span style="color: #0000BB">ServerCommand</span><span style="color: #007700">(</span><span style="color: #DD0000">"admin.yell"</span><span style="color: #007700">, </span><span style="color: #0000BB">msg</span><span style="color: #007700">, </span><span style="color: #DD0000">"20"</span><span style="color: #007700">, </span><span style="color: #DD0000">"player"</span><span style="color: #007700">, </span><span style="color: #0000BB">killer</span><span style="color: #007700">.</span><span style="color: #0000BB">Name</span><span style="color: #007700">); </span><span style="color: #0000BB">plugin</span><span style="color: #007700">.</span><span style="color: #0000BB">ServerCommand</span><span style="color: #007700">(</span><span style="color: #DD0000">"admin.say"</span><span style="color: #007700">, </span><span style="color: #0000BB">msg</span><span style="color: #007700">, </span><span style="color: #DD0000">"player"</span><span style="color: #007700">, </span><span style="color: #0000BB">killer</span><span style="color: #007700">.</span><span style="color: #0000BB">Name</span><span style="color: #007700">); </span><span style="color: #0000BB">plugin</span><span style="color: #007700">.</span><span style="color: #0000BB">KillPlayer</span><span style="color: #007700">(</span><span style="color: #0000BB">killer</span><span style="color: #007700">.</span><span style="color: #0000BB">Name</span><span style="color: #007700">, </span><span style="color: #0000BB">20</span><span style="color: #007700">); return </span><span style="color: #0000BB">false</span><span style="color: #007700">; </span><span style="color: #0000BB"></span> </span> </code></code></div> </div> * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 14, 2013 Author Share Posted May 14, 2013 Originally Posted by PapaCharlie9*: TMiland* said: I found this limit: showthread....with-a-vehicle*Change first_check to this: Code: (kill.Weapon == "Death" && server.PlayerCount <= 16) * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 14, 2013 Author Share Posted May 14, 2013 Originally Posted by TMiland*: PapaCharlie9* said: Change first_check to this: Code: (kill.Weapon == "Death" && server.PlayerCount <= 16) Thank you! :-) * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 15, 2013 Author Share Posted May 15, 2013 Originally Posted by diabolik73*: Hello can i limit the sniper number on my server? Thanks * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 15, 2013 Author Share Posted May 15, 2013 Originally Posted by dyn*: diabolik73* said: Hello can i limit the sniper number on my server? Thanks rcon does not replay what someone is spawning with. The only thing you can do is limit how many people are currently getting kills with sniper rifles. Not a very clean approach since the only time someone will know if there are 'too many' snipers is once they've spawned in and actually kill someone. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 16, 2013 Author Share Posted May 16, 2013 Originally Posted by shadow2k1*: anyway to make a running tally for each round of how many times a player gets knifed? everytime i knife a person it will display "player" has been knifed 3 times this round or "players" tags have been taken 3 times this round * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 17, 2013 Author Share Posted May 17, 2013 Originally Posted by KamelMitLocken*: Hi all, I would like to know if there is any way to check for kdr ratio during a running round? What I want to do is basically limit all the pro jet pilots and start kicking them once the kdr reaches a certain threshold. (e.g. 15+) I already saw the vehicle kill rate limiter, but that just checks how mayn kills a player made in a certain amount of time, correct? But I actually need a KDR limiter that checks the kdr limit of the player when he kills with "Death". Is there anything like that? Thanks in advance! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 17, 2013 Author Share Posted May 17, 2013 Originally Posted by diabolik73*: Hello can you help me with the code? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 17, 2013 Author Share Posted May 17, 2013 Originally Posted by M4thoTiX*: HI can u add a PlayerInfoInterface variable TotalAccuracy please.. M4thoTiX * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 17, 2013 Author Share Posted May 17, 2013 Originally Posted by PapaCharlie9*: shadow2k1* said: anyway to make a running tally for each round of how many times a player gets knifed? everytime i knife a person it will display "player" has been knifed 3 times this round or "players" tags have been taken 3 times this round You didn't explain what you meant by "display". Chat? Yell? Log? This code does Chat and Log: Create a limit to evaluate OnKill, call it "Knife Count", leave Action set to None. Set first_check to this Code: Code: if (!Regex.Match(kill.Weapon, @"Knife", RegexOptions.IgnoreCase).Success) return false; String key = "Knifings_" + player.Name; int count = 0; if (server.RoundData.issetInt(key)) count = server.RoundData.getInt(key); count = count + 1; server.RoundData.setInt(key, count); String msg = "Player " + player.Name + " has been knifed " + count + " times!"; plugin.SendGlobalMessage(msg); plugin.ConsoleWrite(msg); return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 17, 2013 Author Share Posted May 17, 2013 Originally Posted by PapaCharlie9*: KamelMitLocken* said: Hi all, I would like to know if there is any way to check for kdr ratio during a running round? What I want to do is basically limit all the pro jet pilots and start kicking them once the kdr reaches a certain threshold. (e.g. 15+) I already saw the vehicle kill rate limiter, but that just checks how mayn kills a player made in a certain amount of time, correct? But I actually need a KDR limiter that checks the kdr limit of the player when he kills with "Death". Is there anything like that? Thanks in advance! All the available stats are listed in the plugin Details and in post #1 of the plugin thread: myrcon.net/...insane-limits-bfhl#entry30250 You can see that player has KdrRound, KillsRound, SpmRound, etc., etc. Just use the one you want and replace the corresponding usage in the Vehicle Kill Rate limiter. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 17, 2013 Author Share Posted May 17, 2013 Originally Posted by PapaCharlie9*: M4thoTiX* said: HI can u add a PlayerInfoInterface variable TotalAccuracy please.. M4thoTiX And what would that value be exactly? How is it different from player.Accuracy? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 18, 2013 Author Share Posted May 18, 2013 Originally Posted by M4thoTiX*: PapaCharlie9* said: And what would that value be exactly? How is it different from player.Accuracy?The players Accuracy on the Server.Please * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 18, 2013 Author Share Posted May 18, 2013 Originally Posted by MorpheusX(AUT)*: M4thoTiX* said: The players Accuracy on the Server. Please The rcon protocol doesn't provide statistics about "shots fired" and "shots hit" within one round. Therefore, it's impossible to calculate the accuracy of a player. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 18, 2013 Author Share Posted May 18, 2013 Originally Posted by PapaCharlie9*: MorpheusX(AUT)* said: The rcon protocol doesn't provide statistics about "shots fired" and "shots hit" within one round. Therefore, it's impossible to calculate the accuracy of a player.That's right. Sorry, it can't be done. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 23, 2013 Author Share Posted May 23, 2013 Originally Posted by Skypattaya*: Hello guys, first of all sorry for my bad english. I am a real newbie to set up our server plug in. It is so much to read and maybe someone allready set up a simliar code like we need on his metro server. Our platoon like to run a metro server with that insane limits plug in. Warning and Admin Kill for his 1st kill and banned by 2nd kill for the followering weapons and stuff. No M320/GP30/M67/M224/MAV/RPG/SMAW/USAS/FRAG AMMO/HE BOLT/C4. Ban should be for 3hours. I will continue read the topics but i will be happy if someone will help me to find the right code with me. Thank you * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 23, 2013 Author Share Posted May 23, 2013 Originally Posted by LumPenPacK*: Skypattaya* said: Warning and Admin Kill for his 1st kill and banned by 2nd kill for the followering weapons and stuff. No M320/GP30/M67/M224/MAV/RPG/SMAW/USAS/FRAG AMMO/HE BOLT/C4. Ban should be for 3hours. I will continue read the topics but i will be happy if someone will help me to find the right code with me. Thank youThere's no way to do exactly this. The server doesn't give any information about MAV, M224 and C4 kills. You can also not detect which ammo was used. showthread....orter-s-plugin* * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 23, 2013 Author Share Posted May 23, 2013 Originally Posted by Skypattaya*: ok i see , i have to find a diffrent solution for Mav-M224 and C4. What about the rest? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 25, 2013 Author Share Posted May 25, 2013 Originally Posted by PapaCharlie9*: Skypattaya* said: Hello guys, first of all sorry for my bad english. I am a real newbie to set up our server plug in. It is so much to read and maybe someone allready set up a simliar code like we need on his metro server. Our platoon like to run a metro server with that insane limits plug in. Warning and Admin Kill for his 1st kill and banned by 2nd kill for the followering weapons and stuff. No M320/GP30/M67/M224/MAV/RPG/SMAW/USAS/FRAG AMMO/HE BOLT/C4. Ban should be for 3hours. I will continue read the topics but i will be happy if someone will help me to find the right code with me. Thank youCORRECTION: C4 can be detected. The kill.Weapon string is "Weapons/Gadgets/C4/C4". MAV and M224 can sort of be detected by using "Death". Since you are only doing this for Metro Conquest, this is safe to use. It would not be safe on any other map/mode. See this limit thread: showthread....0-RPG-USAS-etc* I added a post at the end of that thread for your specific request. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 28, 2013 Author Share Posted May 28, 2013 Originally Posted by shadow2k1*: PapaCharlie9* said: You didn't explain what you meant by "display". Chat? Yell? Log? This code does Chat and Log: Create a limit to evaluate OnKill, call it "Knife Count", leave Action set to None. Set first_check to this Code: Code: if (!Regex.Match(kill.Weapon, @"Knife", RegexOptions.IgnoreCase).Success) return false; String key = "Knifings_" + player.Name; int count = 0; if (server.RoundData.issetInt(key)) count = server.RoundData.getInt(key); count = count + 1; server.RoundData.setInt(key, count); String msg = "Player " + player.Name + " has been knifed " + count + " times!"; plugin.SendGlobalMessage(msg); plugin.ConsoleWrite(msg); return false; what do i change to make it yell * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 30, 2013 Author Share Posted May 30, 2013 Originally Posted by PapaCharlie9*: shadow2k1* said: what do i change to make it yellChangeCode: plugin.SendGlobalMessage(msg);toCode: plugin.SendGlobalYell(msg, 10);Change 10 to how many seconds you want the yell to be shown. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 30, 2013 Author Share Posted May 30, 2013 Originally Posted by BTFU_Maverick*: Need a little help figuring out how to code this. I have an admin script that reads last chat and tests to see if it starts with one of our admin commands. If it does, it does a name match using BestMatch() and it executes the appropriate action. The problem is if I do BestMatch, it never fails. If I match BTFU_Maverick and theres nobody on the server with that name, itll match Bob_Mayday. This has resulted in the wrong player being kicked several times because the target left before I could send the command. So I need to code in a confirmation to say !yes or !no when someone tries to kick or ban someone. I want to type !kk btfu_maverick baserape (my kick command, player name, reason). Itll then run the BestMatch() like its supposed to. Then in the execution of the script I want it to run another Converter ConfirmTarget() to ask "Did you target 'TheBestMatchedPlayer'? If the name is correct and the admin says yes, itll return ConfirmTarget true and continue with the script. If it returns false, itll exit. I just need the confirmation Converter to bool. Little help? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 31, 2013 Author Share Posted May 31, 2013 Originally Posted by PapaCharlie9*: BTFU_Maverick* said: Need a little help figuring out how to code this. I have an admin script that reads last chat and tests to see if it starts with one of our admin commands. If it does, it does a name match using BestMatch() and it executes the appropriate action. The problem is if I do BestMatch, it never fails. If I match BTFU_Maverick and theres nobody on the server with that name, itll match Bob_Mayday. This has resulted in the wrong player being kicked several times because the target left before I could send the command. So I need to code in a confirmation to say !yes or !no when someone tries to kick or ban someone. I want to type !kk btfu_maverick baserape (my kick command, player name, reason). Itll then run the BestMatch() like its supposed to. Then in the execution of the script I want it to run another Converter ConfirmTarget() to ask "Did you target 'TheBestMatchedPlayer'? If the name is correct and the admin says yes, itll return ConfirmTarget true and continue with the script. If it returns false, itll exit. I just need the confirmation Converter to bool. Little help? This post will help: showthread....!umad-command)* * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 31, 2013 Author Share Posted May 31, 2013 Originally Posted by BTFU_Maverick*: PapaCharlie9* said: This post will help: showthread....!umad-command)* That should give me enough of what I need. Thanks PC9. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted May 31, 2013 Author Share Posted May 31, 2013 Originally Posted by shadow2k1*: PapaCharlie9* said: Change Code: plugin.SendGlobalMessage(msg);toCode: plugin.SendGlobalYell(msg, 10);Change 10 to how many seconds you want the yell to be shown.thanks * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 3, 2013 Author Share Posted June 3, 2013 Originally Posted by Snowy*: Help_... I need for certain evenings to be able to lock down my server for clan scrims. Our server host does not allow to lock the server with a password.... Is it possible to set up a limit that would kick a player for not having the right clan tag? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 16, 2013 Author Share Posted June 16, 2013 Originally Posted by p19blo*: i have a line that shows then killer.Name kills victim.Name but how can i do it so it shows the victims if there is more than one ? ( multi kill) * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted June 16, 2013 Author Share Posted June 16, 2013 Originally Posted by PapaCharlie9*: p19blo* said: i have a line that shows then killer.Name kills victim.Name but how can i do it so it shows the victims if there is more than one ? ( multi kill)You get a separate OnKill activation for each kill. So if Arsonist kills Larry, Moe and Curly with a C-4 blast, you will get: OnKill Arsonist Larry C4 OnKill Arsonist Moe C4 OnKill Arsonist Curly C4 * 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.