Jump to content

Insane Limits Requests


ImportBot

Recommended Posts

Originally Posted by TMiland*:

 

You could do something like this:

 

Code:

List<PlayerInfoInterface> all = new List<PlayerInfoInterface>();
int countCommanders = 0;

foreach (PlayerInfoInterface p in all) 
	{

		if (p.Role == 1 || p.Role == 2 ) {
			countCommanders++;
	}
	
	if(countCommanders == 1) 
	{
		/* do something because only 1 commander is active */
	}
	
	return false;
Thanks! I give up for now, my head is obviously not working. :tongue:
* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 3.2k
  • Created
  • Last Reply

Originally Posted by moacco07*:

 

Hello PapaCharlie9,

 

Could you make a limit for welcome message that display in a box on first spawn in each round, showing below information:

Or do you any existing plugin, proconrulz website that can do this?

 

-------------------------------------------------

Player name: xxxxxx

Country: xxxxxxxx

EA GUID: XXXXXXX

Current map/mode: xxxxxxxx

-------------------------------------------------

 

Something like this.

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

Originally Posted by LCARSx64*:

 

Hello PapaCharlie9,

 

Could you make a limit for welcome message that display in a box on first spawn in each round, showing below information:

Or do you any existing plugin, proconrulz website that can do this?

 

-------------------------------------------------

Player name: xxxxxx

Country: xxxxxxxx

EA GUID: XXXXXXX

Current map/mode: xxxxxxxx

-------------------------------------------------

 

Something like this.

Firstly, you should not display a player's EA Guid to everyone, therefore the following limit sends all the messages ONLY to the spawning player.

Secondly, using the title "EA Guid:" can potentially be longer than a single chat line, so the following limit uses the title "Guid:" instead.

Thirdly, combined display of the full map and gamemode can potentially be longer than a single chat line, so the following limit displays the current map on a single line and the mode on a seperate line.

 


OnSpawn Messages

 

Create a new limit to evaluate OnSpawn. Set action to None.

 

Set first_check to this Expression:

Code:

(true)
Set second_check to this Code:

Code:

// OnSpawn Messages - Limit 1 of 1
// v1.0 - OnSpawn - second_check code
//

String[] msgs = { "------------------------------------------------------------------------------------------",
                  "Player Name: ",
                  "Country: ",
                  "GUID: ",
                  "Current Map: ",
                  "Current Gamemode: ",
                  "------------------------------------------------------------------------------------------" };

if (limit.Activations(player.Name) == 1)
{
    msgs[1] = msgs[1] + player.FullName;
    msgs[2] = msgs[2] + player.CountryName;
    msgs[3] = msgs[3] + player.EAGuid;
    msgs[4] = msgs[4] + plugin.FriendlyMapName(server.MapFileName);
    msgs[5] = msgs[5] + plugin.FriendlyModeName(server.Gamemode);
    for (int i = 0; i < 7; i++)
    {
        plugin.SendPlayerMessage(player.Name, msgs[i]);
    }
}
return false;

End of post.

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

Originally Posted by PapaCharlie9*:

 

Why isn't it possible?

 

I know it is possible to detect kill weapon Tomahawk, same for Gunship, that leaves the commander, not possible to kick?

There's no way to detect who deployed the gunship. Unless you are talking about maps where only the commander can deploy the Gunship, if such a thing exists? I stopped playing at Naval Strike, so I'm a bit out of date.

 

For Tomahawk + Commander, use this:

 

OnKill

first_check Expression

Code:

(kill.Weapon == "U_Tomahawk" && (killer.Role == 2 || killer.Role == 3))
EDIT: LOL, I caught up with the rest of the discussion after. Yeah, that's what I meant! :smile:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TMiland*:

 

There's no way to detect who deployed the gunship. Unless you are talking about maps where only the commander can deploy the Gunship, if such a thing exists? I stopped playing at Naval Strike, so I'm a bit out of date.

 

For Tomahawk + Commander, use this:

 

OnKill

first_check Expression

Code:

(kill.Weapon == "U_Tomahawk" && (killer.Role == 2 || killer.Role == 3))
EDIT: LOL, I caught up with the rest of the discussion after. Yeah, that's what I meant! :smile:
You would know who deployed it, because the limit is meant for when it's only one commander online. :biggrin:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

You would know who deployed it, because the limit is meant for when it's only one commander online. :biggrin:

Can't normal players deploy the gunship? I seem to recall doing that a few times myself. :smile:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TMiland*:

 

Can't normal players deploy the gunship? I seem to recall doing that a few times myself. :smile:

No, only the commander may deploy the gunship.

So the idea was that if someone got a kill with it, we could warn/kick the commander, if it was only one cmdr online.

Same with the Tomahawk. :tongue:

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

Originally Posted by LCARSx64*:

 

No, only the commander may deploy the gunship.

So the idea was that if someone got a kill with it, we could warn/kick the commander, if it was only one cmdr online.

Same with the Tomahawk. :tongue:

Yeah as far as I know only the commander can call the gunship, but even if a player can/could you could firstly check if only 1 commander is online and punish the player on repeat uses of it if there is only one commander.

 

I'll have a go at coding this as soon as I get the chance.

 

Sent from Samsung Galaxy S5 using Tapatalk

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

Originally Posted by TMiland*:

 

Yeah as far as I know only the commander can call the gunship, but even if a player can/could you could firstly check if only 1 commander is online and punish the player on repeat uses of it if there is only one commander.

 

I'll have a go at coding this as soon as I get the chance.

 

Sent from Samsung Galaxy S5 using Tapatalk

Thats great! But, i would rather warn/kick the commander if it is only one commander, then he cannot redeploy the gunship, because he was kicked. :P

 

Same goes for the Tomahawk.

 

So only when there is one cmdr, tomahawk and gunship is not allowed. :smile:

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

Originally Posted by LCARSx64*:

 

Thats great! But, i would rather warn/kick the commander if it is only one commander, then he cannot redeploy the gunship, because he was kicked. :P

 

Same goes for the Tomahawk.

 

So only when there is one cmdr, tomahawk and gunship is not allowed. :smile:

That brings us back to the original problem, e.g:

 

There is only 1 commander online, he/she calls a gunship ...

Player1 spawns in the gunship and kills someone so the commander gets a warning.

Now either Player1 kills again with the gunship or Player2 spawns in it and kills someone, now the commander would be kicked because there have been mutiple kills with the initial gunship. There's no way of telling if the gunship was called for the first time, second time, etc.

 

As I suggested, a better solution would be to warn the commander and all players not to use the gunship whilst only one commander is online. If (as in the case above with Player1) a player kills a second time then that player gets killed with a message stating why. Meanwhile, the commander has a cool off period (does the gunship stay active until shot down or is it a set time_), after that, any additional kills from the gunship will cause the commander to be kicked.

 

Does that sound like a better solution?

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

Originally Posted by TMiland*:

 

That brings us back to the original problem, e.g:

 

There is only 1 commander online, he/she calls a gunship ...

Player1 spawns in the gunship and kills someone so the commander gets a warning.

Now either Player1 kills again with the gunship or Player2 spawns in it and kills someone, now the commander would be kicked because there have been mutiple kills with the initial gunship. There's no way of telling if the gunship was called for the first time, second time, etc.

 

As I suggested, a better solution would be to warn the commander and all players not to use the gunship whilst only one commander is online. If (as in the case above with Player1) a player kills a second time then that player gets killed with a message stating why. Meanwhile, the commander has a cool off period (does the gunship stay active until shot down or is it a set time_), after that, any additional kills from the gunship will cause the commander to be kicked.

 

Does that sound like a better solution?

That sound like a good solution. :smile:

 

The gunship stays until shot down, and can be deployed immediately after.

 

With your solution, the commander will shoot himself in the foot if he deploys the gunship, and get kicked. :biggrin:

 

As for the Tomahawk, that should get warn/kick i guess. :smile:

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

Originally Posted by TMiland*:

 

Hey guys. I'm completely new to Insane Limits....and I'm struggling to find anything on !Votenuke and how to enable it on my server

Have a look here: showthread....-%28CQ-Rush%29* :ohmy:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

That sound like a good solution. :smile:

 

The gunship stays until shot down, and can be deployed immediately after.

 

With your solution, the commander will shoot himself in the foot if he deploys the gunship, and get kicked. :biggrin:

 

As for the Tomahawk, that should get warn/kick i guess. :smile:

Sounds good to me too, though I would admin.kill a killer in the gunship on first violation.

 

BTW, it might be worth experimenting with admin.movePlayer to see if that is an intermediate punishment short of kicking the commander. I think you can remove a commander from the command seat by sending them to another team in a specific non-zero squad and then moving them back to the original team on a specific non-zero squad, or just leave them in the new team. I'm not sure this will work, you should try it first.

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

Originally Posted by LjMjollnir*:

 

I think you can remove a commander from the command seat by sending them to another team in a specific non-zero squad and then moving them back to the original team on a specific non-zero squad, or just leave them in the new team. I'm not sure this will work, you should try it first.

Unless something has changed i dont think this works.. using my my bidmap plugin if Conquest comes up and someone jumps in the commander seat .. then next round a mode that doesnt support commander comes along the player gets booted from the game when trying to spawn..
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LCARSx64*:

 

Sounds good to me too, though I would admin.kill a killer in the gunship on first violation.

 

BTW, it might be worth experimenting with admin.movePlayer to see if that is an intermediate punishment short of kicking the commander. I think you can remove a commander from the command seat by sending them to another team in a specific non-zero squad and then moving them back to the original team on a specific non-zero squad, or just leave them in the new team. I'm not sure this will work, you should try it first.

Hmmm, there's a thought. If an commander calls a gunship and you move him either to the other team or the same team but as a normal player (Role 0) then move him straight back to the original team as commander, I wonder if that would reset the gunship (basically un-spawning it)?

Unless something has changed i dont think this works.. using my my bidmap plugin if Conquest comes up and someone jumps in the commander seat .. then next round a mode that doesnt support commander comes along the player gets booted from the game when trying to spawn..

Is that a reported bug?

 

 

Sent from Samsung Galaxy S5 using Tapatalk

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

Originally Posted by superg*:

 

Is it possible to create a limit that would remove players with a specific clan tag from all squads at the end of a round? The reason i ask is because we run a small server with truebalancer. We have scramble set to maintain squads with 2 or more clan tags. We would like to exempt our own clan tag so that our members always get scrambled while other clans can maintain their squads.

 

I figured the easiest way to do that would be by removing our members from all squads automatically at the end of round before the scramble takes place.

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

Originally Posted by LCARSx64*:

 

Is it possible to create a limit that would remove players with a specific clan tag from all squads at the end of a round? The reason i ask is because we run a small server with truebalancer. We have scramble set to maintain squads with 2 or more clan tags. We would like to exempt our own clan tag so that our members always get scrambled while other clans can maintain their squads.

 

I figured the easiest way to do that would be by removing our members from all squads automatically at the end of round before the scramble takes place.

Assuming that is members from a single clan that you want to remove from all squads, this should do what you want:

 

Change the string highlighted in red to the clan tag you wish to remove from all squads.

 


Remove Clan from All Squads

 

Create a new limit to evaluate OnRoundOver. Set action to None.

 

Set first_check to this Code:

Code:

// Remove Clan from All Squads - Limit 1 of 1
// v1.0 - OnRoundOver - first_check code
//

String sTags = "TAG"; // Clan tag to remove from squads
List<PlayerInfoInterface> allPlayers = new List<PlayerInfoInterface>();
allPlayers.AddRange(team1.players);
allPlayers.AddRange(team2.players);

foreach (PlayerInfoInterface p in allPlayers)
{
    if (p.Tag == sTags && p.Role == 0)
    {
        plugin.ServerCommand("admin.movePlayer", p.Name, p.TeamId.ToString(), "0", "true");
    }
}

return false;

End of post.

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

Originally Posted by PapaCharlie9*:

 

Unless something has changed i dont think this works.. using my my bidmap plugin if Conquest comes up and someone jumps in the commander seat .. then next round a mode that doesnt support commander comes along the player gets booted from the game when trying to spawn..

I meant within the same round. What you observed is expected, though why it works that way, rather than just demoting, is anyone's guess.

 

Hmmm, there's a thought. If an commander calls a gunship and you move him either to the other team or the same team but as a normal player (Role 0) then move him straight back to the original team as commander, I wonder if that would reset the gunship (basically un-spawning it)?

It might hasten its demise, but I doubt very much that it would instantly reset it. And you don't have to move him back to the commander seat. Once there is no commander, or the flag that enables the gunship spawn is lost to the other team, the spawned gunship goes on a death timer. Or am I remembering incorrectly?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LCARSx64*:

 

It might hasten its demise, but I doubt very much that it would instantly reset it. And you don't have to move him back to the commander seat. Once there is no commander, or the flag that enables the gunship spawn is lost to the other team, the spawned gunship goes on a death timer. Or am I remembering incorrectly?

Yeah I'm not sure how that works, I'll have to run some tests to check it. If it did reset it then we wouldn't need a cool down period after the initial warning. If it goes on a death timer when the commander is gone (moved) then we'd move him back and use the death timer period as the cool down. :ohmy:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by superg*:

 

Assuming that is members from a single clan that you want to remove from all squads, this should do what you want.

Thank You very much for the code. It is working perfectly.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by PapaCharlie9*:

 

hi guys..

How to kick the specified clan tag players?

You mean, kick any player with tag XXX?

 

Create a limit to evaluate OnSpawn, call it Clan XXX Kicker

 

Set first_check to this Code:

 

Code:

if (player.Tag == "XXX") {
    plugin.KickPlayerWithMessage(player.Name, "YOUR MESSAGE HERE, like, XXX GTFO!"); // CHANGE
}
return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by w262035635*:

 

You mean, kick any player with tag XXX?

 

Create a limit to evaluate OnSpawn, call it Clan XXX Kicker

 

Set first_check to this Code:

 

Code:

if (player.Tag == "XXX") {
    plugin.KickPlayerWithMessage(player.Name, "YOUR MESSAGE HERE, like, XXX GTFO!"); // CHANGE
}
return false;
Yes.. This is what I want. And if need to limit multiple tags, need how to set up?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LCARSx64*:

 

Yes.. This is what I want. And if need to limit multiple tags, need how to set up?

There are a couple of ways to do this:

 

Option 1 Using a coded list:

 

Change Papa's code to:

Code:

List<String> badTags = new List<String>();
badTags.Add("XXX");
badTags.Add("YYY");
// Add more badTags.Add("ZZZ"); lines as needed.
if (badTags.Contains(player.Tag))
{
    plugin.KickPlayerWithMessage(player.Name, "Sorry, [" + player.Tag + "] clan tags are not allowed in this server!");
}
return false;
Option 2 Using a custom list:

 

Create a new Custom List with the following settings:

Code:

name: BadTags
comparison: CaseSensitive
data: XXX, YYY, ...
Change Papa's code to:

Code:

if (plugin.isInList(player.Tag, "BadTags"))
{
    plugin.KickPlayerWithMessage(player.Name, "Sorry, [" + player.Tag + "] clan tags are not allowed in this server!");
}
return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by moacco07*:

 

Hi PapaCharlie9,

 

Is there any way that insane limit force enable commander mode if server you are hosting runs with multimodes?

What i know now commander mode is only available on Conquest, Obliteration and carrier assault right?

* 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.