Diddl3s

Change Flag Limit for certain PlayerUIDs?

3 posts in this topic

My Flag limit is currently set at x2.

I was wondering how it would be possible to change the limit of Territories Available for certain UIDs to x4

 

Thanks for any help

Share this post


Link to post
Share on other sites

Try this:

ExileClient_object_item_construct.sqf

		if(_itemClassName isEqualTo "Exile_Item_Flag") then 
		{ 
			if ((getPlayerUID player) in ["11111111111111","222222222222","333333333"]) then
			{
			[_itemClassName] call ExileClient_construction_beginNewObject;
			}
			else
			{
			_maximumNumberOfTerritoriesPerPlayer = getNumber (missionConfigFile >> "CfgTerritories" >> "maximumNumberOfTerritoriesPerPlayer");
			_numberOfTerritories = player call ExileClient_util_territory_getNumberOfTerritories;
			if (_numberOfTerritories >= _maximumNumberOfTerritoriesPerPlayer) then
			{
				throw "MaximumNumberOfTerritoriesReached";
			};
			call ExileClient_gui_setupTerritoryDialog_show;
		}
		else 
		{
			[_itemClassName] call ExileClient_construction_beginNewObject;
		};
		};

 

Share this post


Link to post
Share on other sites

Thank you very much for the reply mate, I tried the. Above but the server won't start. I reverted back.

Edited by Diddl3s

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.