5 posts in this topic

Hi, I've tried a Google search and a forum search looking for an answer to this one but had no joy finding one.

Is there a way of limiting the number of players that can join a party or even better making it so only promoted family members can add players to the party once the players in question are in a family?

I'm asking as we have a PVPVE server and one of our guys when we are not on just gets players to join his party, the second they join he invites them in with the promise of giving them Pop-Tabs and helping them start nice to do but it then ends up with them being nonaggressive to him and then makes the rest of the family feel like they cant attack the new players due to it.

If the above isn't possible is there a way of disabling the party system altogether without causing script errors and also removing the button from the XM8 as well.

Edited by twitch.tv/smokedog77

Share this post


Link to post
Share on other sites
1 hour ago, twitch.tv/smokedog77 said:

Hi, I've tried a Google search and a forum search looking for an answer to this one but had no joy finding one.

Is there a way of limiting the number of players that can join a party or even better making it so only promoted family members can add players to the party once the players in question are in a family?

I'm asking as we have a PVPVE server and one of our guys when we are not on just gets players to join his party, the second they join he invites them in with the promise of giving them Pop-Tabs and helping them start nice to do but it then ends up with them being nonaggressive to him and then makes the rest of the family feel like they cant attack the new players due to it.

If the above isn't possible is there a way of disabling the party system altogether without causing script errors and also removing the button from the XM8 as well.

/**
 * ExileServer_system_party_network_inviteToPartyRequest
 *
 * Exile Mod
 * www.exilemod.com
 * © 2015 Exile Mod Team
 *
 * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. 
 * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
 */
 
private["_sessionID", "_parameters", "_playerToInvite", "_partyLeader"];
_sessionID = _this select 0;
_parameters = _this select 1;
_playerToInvite = objectFromNetId (_parameters select 0);
_partyLeader = _sessionID call ExileServer_system_session_getPlayerObject;

if ({isPlayer _x} count (units (group _partyLeader)) >= 5) exitWith
{
	[_sessionID, "toastRequest", ["ErrorTitleAndText", ["Invite failed!", "Party limit reached!"]]] call ExileServer_system_network_send_to;
};

format ["%1 (%2) has invited %3 (%4) to his party.", name _partyLeader, netId _partyLeader, name _playerToInvite, _parameters select 0] call ExileServer_util_log;
[_playerToInvite, "inviteToPartyRequest", [netId _partyLeader]] call ExileServer_system_network_send_to;
true

just change the 5

Edited by StokesMagee
  • Like 2

Share this post


Link to post
Share on other sites
Advertisement
53 minutes ago, twitch.tv/smokedog77 said:

Thank you for the quick reply

 

What will the 5 need to be changed too and what is the rest of the script doing exactly?

the 5 is the party limit. 5 players max in a party.

  • Like 1

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.