ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by micovery*: Ah yea... looks like all of that was reset. I set it to Sandbox, but what are the trusted addresses/ports I need to add? What should that look like?I don't think you have to add any hosts/ports when sandbox is off. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by pharbehind*: Actually, it's not set to Sandbox and I'm still getting this error: [16:29:06 39] [insane Limits] Extra information dumped in file InsaneLimits.dump [16:29:06 39] [insane Limits] WARNING: unable to dump extra exception information. [16:29:06 39] [insane Limits] EXCEPTION: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. [16:29:06 39] [insane Limits] ERROR: unable to dump information to file [16:29:06 39] [insane Limits] EXCEPTION: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. There's nothing before it, I notice it happens as soon as I press "Accept Privacy" too. Maybe I'll try adding the plugin again? edit- added the plugin again and its still occuring * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by micovery*: Actually, it's not set to Sandbox and I'm still getting this error: [16:29:06 39] [insane Limits] Extra information dumped in file InsaneLimits.dump [16:29:06 39] [insane Limits] WARNING: unable to dump extra exception information. [16:29:06 39] [insane Limits] EXCEPTION: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. [16:29:06 39] [insane Limits] ERROR: unable to dump information to file [16:29:06 39] [insane Limits] EXCEPTION: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. There's nothing before it, I notice it happens as soon as I press "Accept Privacy" too. Maybe I'll try adding the plugin again? So you are saying, "Sandbox" is disabled ... and you are still getting that error? ... Then it's a problem with permissions on the file system. You need Read+Write permission at least in: / /plugins/BF3 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by pharbehind*: Yah, under Tools/Plugins, it's set to "run plugins with no restrictions". If it was a permissions problem on my layer, when I wouldn't be able to add or remove plugins, right? Because I was able to delete insanelimits.cs, then upload it again. The only thing that changed with my PRoCon layer was the game server IP that it was pointing to. edit: went ahead and opened a support ticket with them to see whats up. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by micovery*: Yah, under Tools/Plugins, it's set to "run plugins with no restrictions". If it was a permissions problem on my layer, when I wouldn't be able to add or remove plugins, right? Because I was able to delete insanelimits.cs, then upload it again. The only thing that changed with my PRoCon layer was the game server IP that it was pointing to. Changing the "sandbox" settings on your local PRoCon has no effect on the "Layer" ProCon. To change the sandbox setting on layer, you have to talk to the host. I think the hoster gives you Read+Write permission to the /plugins/BF3 folder, but does not give you permission under / folder. Try this ... Open the plugin source, and find the function "public void DumpException(Exception e, String prefix)" In there you will see something like this: Code: public void DumpException(Exception e, String prefix) { try { string class_name = this.GetType().Name; string path = class_name + ".dump";Change the path to ... Code: public void DumpException(Exception e, String prefix) { try { string class_name = this.GetType().Name; string path = [b]"plugins/BF3/" +[/b] class_name + ".dump"; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by pharbehind*: Did, that now the plugin doesnt appear on my Layers, Plugins tab. Possible syntax error? edit: Whoops, my fault forgot the +, brb. edit2: same thing :/ [17:03:55 92] [insane Limits] Extra information dumped in file plugins/BF3/InsaneLimits.dump [17:03:55 92] [insane Limits] ERROR: unable to dump information to file [17:03:55 92] [insane Limits] EXCEPTION: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Guess I'll wait on a response from my host. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by pharbehind*: works now. not sure what the host did, probably something with rights. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by pharbehind*: Is there a way to look up H/K percentage? I reference this site occasionally, http://cheatometer.hedix.de/index.php, and had a guy the other day with H/K of 74%, which is obviously impossible without hacks. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by WaxMyCarrot*: Anyone help with this? myrcon.net/...insane-limits-examples#entry18880 * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by PapaCharlie9*: Any way to change this for 3 different choices. I do not really want to use this 100% for HC/SC swapping, but to change variables based on # of players. We would like to do things like change things like 10 but 16" make delay 60% as well as other changes. EDIT: Or would this one be easier to edit? Basically I would just like to be able to set specific variables based on # of players and not be focused solely on vehicles or hardcore but be able to set any string of VARS i would like. Sure. For each group of settings, define the trigger count and the reset count. At the trigger count or higher, the next group of settings is executed. At or below the reset count, the previous group of settings is executed. Just make sure that the reset count of any group is greater than the trigger count for the previous group. Also make sure the difference between reset and trigger is at least 2. I use 4 below, but you can change that. The reason for the difference is so that your server doesn't bounce between one settings group and another just because your player count bounces around the trigger point, like if one guy keeps joining and getting kicked for punk buster update after a minute, over and over again. For example: Group 1: disable vehicles. Trigger count = 1. Reset count = not applicable, there is no previous group. Group 2: enable vehicles, respawn 100%. Trigger count = 10. Reset count = 6. Check that reset count is greater than trigger count of Group 1: 6 > 1, check. Group 3: enable vehicles, respawn 60%. Trigger count = 16. Reset count = 12. Check that reset count is greater than the trigger count of Group 2: 12 > 10, check. This can be extended to Group 4, Group 5, etc. Just keep in mind that Group 1 and the last group need special handling, since there no previous for the first and no next for the last. The Group 2 "else if" is what all the "middle" groups should look like. Coding that up is pretty straight-forward (this will not compile as written, it's just a template for you to fill in): Code: String kGroup = "WAX_group"; // Don't need trigger or reset for Group 1, just for Group 2, 3, ... double trigger_group_2 = 10; double reset_group_2 = 6; double trigger_group_3 = 16; double reset_group_3 = 12 int group = 0; if (server.Data.issetInt(kGroup)) group = server.Data.getInt(kGroup); if (group == 0 || (group == 2 && server.PlayerCount <= reset_group_2)) { String msg = "Your Group 1 chat message here"; plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.ConsoleWrite("Your Group 1 console message here"); server.Data.setInt(kGroup, 1); Your Group 1 server settings here } else if ( (group == 1 && server.PlayerCount >= trigger_group_2) || (group == 3 && server.PlayerCount <= reset_group_3) ) { String msg = "Your Group 2 chat message here"; plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.ConsoleWrite("Your Group 2 console message here"); server.Data.setInt(kGroup, 2); Your Group 2 server settings here } else if ( (group == 2 && server.PlayerCount >= trigger_group_3) ) // last Group { String msg = "Your Group 3 chat message here"; plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.ConsoleWrite("Your Group 3 console message here"); server.Data.setInt(kGroup, 3); Your Group 3 server settings here } * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by WaxMyCarrot*: Ok.. I am still a total noob at this.. does this look correct? ------------------------------------------------------- Set limit to evaluate OnInterval, set action to None Set first_check to this Code: Code: String kGroup = "WAX_group"; // Don't need trigger or reset for Group 1, just for Group 2, 3, ... double trigger_group_2 = 10; double reset_group_2 = 6; double trigger_group_3 = 16; double reset_group_3 = 12 int group = 0; if (server.Data.issetInt(kGroup)) group = server.Data.getInt(kGroup); if (group == 0 || (group == 2 && server.PlayerCount <= reset_group_2)) { String msg = "Vehicles Disabled until 10 players!"; plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.ConsoleWrite("Vehicles Disabled until 10 players!"); server.Data.setInt(kGroup, 1); plugin.ServerCommand("vars.friendlyFire", "false"); plugin.ServerCommand("vars.killCam", "true"); plugin.ServerCommand("vars.nameTag", "true"); plugin.ServerCommand("vars.regenerateHealth", "true"); plugin.ServerCommand("vars.hud", "true"); plugin.ServerCommand("vars.onlySquadLeaderSpawn", "false"); plugin.ServerCommand("vars.3dSpotting", "true"); plugin.ServerCommand("vars.3pCam", "true"); plugin.ServerCommand("vars.idleTimeout", "0"); plugin.ServerCommand("vars.roundStartPlayerCount ", "1"); plugin.ServerCommand("vars.roundRestartPlayerCount", "0"); plugin.ServerCommand("vars.soldierHealth", "100"); plugin.ServerCommand("vars.vehicleSpawnAllowed", "false"); plugin.ServerCommand("vars.ServerName", "Armored Fist #2 CQ No Vehicles :: XTSQUAD.com :: B2K/Vanilla MIX"); } else if ( (group == 1 && server.PlayerCount >= trigger_group_2) || (group == 3 && server.PlayerCount <= reset_group_3) ) { String msg = "Vehicles will now spawn, server is Softcore until 16 players!"; plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.ConsoleWrite("Vehicles will now spawn, server is Softcore until 16 players!"); server.Data.setInt(kGroup, 2); plugin.ServerCommand("vars.friendlyFire", "false"); plugin.ServerCommand("vars.killCam", "true"); plugin.ServerCommand("vars.nameTag", "true"); plugin.ServerCommand("vars.regenerateHealth", "true"); plugin.ServerCommand("vars.hud", "true"); plugin.ServerCommand("vars.onlySquadLeaderSpawn", "false"); plugin.ServerCommand("vars.3dSpotting", "true"); plugin.ServerCommand("vars.3pCam", "true"); plugin.ServerCommand("vars.idleTimeout", "0"); plugin.ServerCommand("vars.roundStartPlayerCount ", "8"); plugin.ServerCommand("vars.roundRestartPlayerCount", "4"); plugin.ServerCommand("vars.soldierHealth", "100"); plugin.ServerCommand("vars.vehicleSpawnAllowed", "true"); plugin.ServerCommand("vars.vehicleSpawnDelay", "60"); plugin.ServerCommand("vars.ServerName", "Armored Fist #2 CQ NORMAL:: XTSQUAD.com :: B2K/Vanilla MIX"); } else if ( (group == 2 && server.PlayerCount >= trigger_group_3) ) // last Group { String msg = "Server is switching to Hardcore!"; plugin.SendGlobalMessage(msg); plugin.PRoConChat("ADMIN > " + msg); plugin.ConsoleWrite("Server is switching to Hardcore!"); server.Data.setInt(kGroup, 3); plugin.ServerCommand("vars.friendlyFire", "true"); plugin.ServerCommand("vars.killCam", "false"); plugin.ServerCommand("vars.nameTag", "false"); plugin.ServerCommand("vars.regenerateHealth", "false"); plugin.ServerCommand("vars.hud", "false"); plugin.ServerCommand("vars.onlySquadLeaderSpawn", "true"); plugin.ServerCommand("vars.3dSpotting", "false"); plugin.ServerCommand("vars.3pCam", "false"); plugin.ServerCommand("vars.idleTimeout", "500"); plugin.ServerCommand("vars.roundStartPlayerCount ", "8"); plugin.ServerCommand("vars.roundRestartPlayerCount", "4"); plugin.ServerCommand("vars.soldierHealth", "60"); plugin.ServerCommand("vars.vehicleSpawnAllowed", "true"); plugin.ServerCommand("vars.vehicleSpawnDelay", "60"); plugin.ServerCommand("vars.ServerName", "Armored Fist #2 HC CQ :: XTSQUAD.com :: B2K/Vanilla MIX"); } * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by Twain*: This will allow you to change tickets based on next map gamemode. It will check on first kill of each round just to make sure the round have started.Hi, not sure if this is the right place to post this problem. If not please push it to the right thread. i´m having a little problem with "Nextmap Gamemode Ticket Changer " example. Maplist is Metro Rush and Conquest - 2 rounds each. Conquest 285% tickets and Rush should be 150%. conquest is working fine with 1000 tickets (285%). first round of rush also working fine with 150% but 2nd round uses 285 tickets. Can anybody help me with this? Thanks in advance! * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by ProconNewbie*: Hey how i can put this together? ( Regex.Match(server.Gamemode, "TeamDeath").Success && server.MapFileName.Equals("MP_017") ) and the example for a knife only server: Set first_check to this Expression: Code: ! Regex.Match(kill.Weapon, @"(Melee|Knife)", RegexOptions.IgnoreCase).Success Set second_check to this Code: Code: double count = limit.Activations(player.Name); if (count == 1) plugin.SendGlobalMessage(plugin.R("%p_n%, this is a knife 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 knife only server")); return false; Sorry im a coding noob. i just started to learn c++ a few month ago but i stoped to learn it. Thx for your help! Btw. is there a way to keep the plugins working if my procon and my pc is off? i have'nt a smartphone :/ * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by Mootart*: hi... on ver. 8 is there a msg spam already? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by pharbehind*: Is there a list of all of the country codes? I'm trying to use Welcome Based on Country and would like to add a few more, like Japan and China. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by PapaCharlie9*: See example thread here: www.phogue.net/forumvb/showth...er-Name-Kicker* * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by PapaCharlie9*: Multiple short replies here, scan the whole message to see if your question was addressed. Ok.. I am still a total noob at this.. does this look correct?Change OnInterval to OnIntervalServer (you are using 0.8 patch 2, right_). Change the message for Group 2. Remember, sometimes you will go from Group 3 to Group 2, so vehicles will already be spawning. Make it something like: "Switching to softcore with normal vehicle spawn times". That works in either direction, from Group 1 or from Group 3. hi... on ver. 8 is there a msg spam already?Yes. Just make one limit per message and set it to OnIntervalServer with whatever repeat delay you want as the interval time, first_check Expression of ( true ), Disable second_check, and set the action to Say. So for a message that shows every 15 minutes, do OnIntervalServer with interval of 900 seconds (15x60=900) and Say action for the message. If you have lots of messages, like more than 3, let me know and I'll write up a more complicated example that will only use one limit, or maybe two. Is there a list of all of the country codes? I'm trying to use Welcome Based on Country and would like to add a few more, like Japan and China.You tempt me to do a "Here, Let Me Google That For You" , but I'll be nice and just give you some links: Sorted by code: http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 Sorted by country name: http://www.mathguide.de/info/tools/countrycode.html * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 6, 2012 Author Share Posted February 6, 2012 Originally Posted by pharbehind*: Thanks, thought they were unique ProCon codes, thats why I asked. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by ango*: Would it be possible to add a feature to: 32. Nextmap Gamemode Ticket Changer wich changes the number of tickets depending on the players numbers? Can anyone realize that? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by PapaCharlie9*: Thanks, thought they were unique ProCon codes, thats why I asked.Well, to be honest, I'm assuming the codes are ISO-3166. They come from Battlelog and all the ones I've looked up from Battlelog match ISO-3166 codes, so it's a pretty safe bet. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by PapaCharlie9*: Would it be possible to add a feature to: 32. Nextmap Gamemode Ticket Changer wich changes the number of tickets depending on the players numbers? Can anyone realize that? Yes, but it won't be very accurate. This limit only looks at the number of players once and then sets the tickets for the next round. The number of players next round might be radically different than the count at the time this limit executes. This might work better OnRoundOver, but then the activation won't work. Hmm, maybe it wouldn't be necessary? In any case, change all the code that looks like this: Code: (Regex.Match(server.NextGamemode, ..., RegexOptions.IgnoreCase).Success)To code that looks like this: Code: (server.PlayerCount >= XX && server.PlayerCount < YY)Where XX is the minimum number of players and YY is the maximum. Do this for each XX to YY range that you want. For example, if you want 1 to 15 to be 50%, 16 to 23 to be 100%, 24+ to be 200%, it would look like this: Code: if(limit.Activations() == 1) { if (server.PlayerCount >= 1 && server.PlayerCount < 16) { plugin.ServerCommand("vars.gameModeCounter", "50"); } else if (server.PlayerCount >= 16 && server.PlayerCount < 24) { plugin.ServerCommand("vars.gameModeCounter", "100"); } else if (server.PlayerCount >= 24) { plugin.ServerCommand("vars.gameModeCounter", "200"); } plugin.ConsoleWrite(server.PlayerCount.ToString() + " players, max tickets changed."); } return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by PapaCharlie9*: Hey how i can put this together? ( Regex.Match(server.Gamemode, "TeamDeath").Success && server.MapFileName.Equals("MP_017") ) and the example for a knife only server: Set first_check to this Expression: Code: ! Regex.Match(kill.Weapon, @"(Melee|Knife)", RegexOptions.IgnoreCase).Success Set second_check to this Code: Code: double count = limit.Activations(player.Name); if (count == 1) plugin.SendGlobalMessage(plugin.R("%p_n%, this is a knife 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 knife only server")); return false; Sorry im a coding noob. i just started to learn c++ a few month ago but i stoped to learn it. Thx for your help! Btw. is there a way to keep the plugins working if my procon and my pc is off? i have'nt a smartphone :/ Combine the first_check conditions into one Expression using the logical and (&&) operator, like this: Code: ( Regex.Match(server.Gamemode, "TeamDeath").Success && server.MapFileName.Equals("MP_017") && ! Regex.Match(kill.Weapon, @"(Melee|Knife)", RegexOptions.IgnoreCase).Success )The second_check Code should work with what you have above. The only way to keep plugins working is to have PRoCon running somewhere. Many people use a "layer host", which runs PRoCon 24x7. I doubt that anyone is using a smartphone to run PRoCon directly, so no worries. The phone stuff is more for looking at PRoCon that is running someplace else, like on a layer host. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by pharbehind*: I've asked earlier, but heard no response. Is it possible to create a limit that can calculate Headshots/Kill percentage and ban over a certain amount? It's usually a good measure of a hacker. also: sendGlobalMessage, is there such thing as player message only yet? Or are all messages global still? * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by micovery*: I've asked earlier, but heard no response. Is it possible to create a limit that can calculate Headshots/Kill percentage and ban over a certain amount? It's usually a good measure of a hacker.Not at the moment, the plugin does not fetch the headshots count from battlelog. The code for doing is already in the plugin but it's disabled. That is because it depends on the per-weapon battlelog stats. I was not happy with the API I designed for querying the per-weapon stats, so I decided that it'd be better to use LINQ. PRoCon does not currently support LINQ because it does not compile plugins at the .NET 3.5 level. So it's a waiting game until PRoCon devs decide to move to .NET 3.5. I asked on the devs forum, and Phogue said there was no reason why it should not support .NET 3.5 ... he added some code for the next PRoCon release that will report how many people are using .NET 3.5 ... depending on that, they'll decide whether to move or not. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by pharbehind*: Nice! Until then I'll keep using this: http://cheatometer.hedix.de/ it's a handy site that does the work, but would be ideal to have it built in to a limit of course. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by Twain*: Hi, not sure if this is the right place to post this problem. If not please push it to the right thread. i´m having a little problem with "Nextmap Gamemode Ticket Changer " example. anyone a solution to my post/problem? i´ve just copied the code in example "Next Gamemode Ticket Changer" and changed the ticket values to 285 for conquest and 150 for rush. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by ango*: Yes, but it won't be very accurate. This limit only looks at the number of players once and then sets the tickets for the next round. The number of players next round might be radically different than the count at the time this limit executes. This might work better OnRoundOver, but then the activation won't work. Hmm, maybe it wouldn't be necessary? In any case, change all the code that looks like this: Code: (Regex.Match(server.NextGamemode, ..., RegexOptions.IgnoreCase).Success)To code that looks like this: Code: (server.PlayerCount >= XX && server.PlayerCount < YY)Where XX is the minimum number of players and YY is the maximum. Do this for each XX to YY range that you want. For example, if you want 1 to 15 to be 50%, 16 to 23 to be 100%, 24+ to be 200%, it would look like this: Code: if(limit.Activations() == 1) { if (server.PlayerCount >= 1 && server.PlayerCount < 16) { plugin.ServerCommand("vars.gameModeCounter", "50"); } else if (server.PlayerCount >= 16 && server.PlayerCount < 24) { plugin.ServerCommand("vars.gameModeCounter", "100"); } else if (server.PlayerCount >= 24) { plugin.ServerCommand("vars.gameModeCounter", "200"); } plugin.ConsoleWrite(server.PlayerCount.ToString() + " players, max tickets changed."); } return false; Thx! I will use it for our maplist 0-8 players to reduce the tickets on TDM maps. Should this be ok? Code: if(limit.Activations() == 1) { if(Regex.Match(server.NextGamemode, "(ConquestLarge0|ConquestSmall0)", RegexOptions.IgnoreCase).Success) { plugin.ServerCommand("vars.gameModeCounter", "100"); } else if(server.NextGamemode == "ConquestSmall1") { plugin.ServerCommand("vars.gameModeCounter", "100"); } else if(server.NextGamemode == "RushLarge0") { plugin.ServerCommand("vars.gameModeCounter", "125"); } else if(server.NextGamemode == "TeamDeathMatch0" && server.PlayerCount <= 8) { plugin.ServerCommand("vars.gameModeCounter", "50"); } else if(server.NextGamemode == "TeamDeathMatch0" && server.PlayerCount > 8) { plugin.ServerCommand("vars.gameModeCounter", "100"); } plugin.ConsoleWrite("Next map mode is "+server.NextGamemode+". Tickets set for next map"); } return false; * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by droopie*: is it possible to, if OTHER then X map AND 0 players, go to X map? to clarify, if its 0 players and not on metro, switch to metro. if and only if 0 players and not on metro. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by droopie*: errr this is the tuffest request and not sure if this plugin can do it or know of any other plugin that can but i now NEED a plugin that logs when a player is autokicked for idling... we are going to PAY TO IDLE so want to create idle time log kicks based on the limit that changes server settings so if 24+ enables idle limit but if less then -24 disables idle kick. * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted February 7, 2012 Author Share Posted February 7, 2012 Originally Posted by HexaCanon*: is it possible to, if OTHER then X map AND 0 players, go to X map? to clarify, if its 0 players and not on metro, switch to metro. if and only if 0 players and not on metro. this will help you hopefully, on first interval check, it will see if the map is not metro and there are 0 players on the server, if true it will set the next map to metro (must be in your maplist + it will put the first metro on the map [does not look for a specific metro game mode {i can make it do that if you want}]), on the second interval check if there are 0 players and map is not metro it will run next round (which will be metro). Limit_x_evaluation : OnServerInterval First_check : code Code: if(server.PlayerCount == 0 && server.MapFileName != "MP_Subway" && !server.RoundData.issetBool("active1")) { plugin.ServerCommand("mapList.setNextMapIndex", "MP_Subway"); server.RoundData.setBool("active1", true); } else if(server.PlayerCount == 0 && server.MapFileName != "MP_Subway" && server.RoundData.issetBool("active1")) { plugin.ServerCommand("mapList.runNextRound"); } return false;second_check disabled. * 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.