Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
icebreakr

Three sided mission - preventing players joining one?

Recommended Posts

Is there a way to limit players joining for example Independent slots but they can still join West or East? I would like to find the "cleanest" solution for this.

I requsted BIS to incorporate "server password" for only one side/faction, but we still didn't see that.

This option is important for events such as:

- one side/faction moderates the game or plays special role for two fighting sides (friends or enemies to both)

- one side acts as a security force for special object

- team/clan hosts an event where team members have to patrol/defend a certain waypoints while all other joining players (with regular server pass/without) play as guys who act as opponents/rebels.

If something like this can be created with mission scripting I would be really glad for some of you talented guys to come up with the solution.

Possibile solutions I'm looking for:

- my teammembers can use password box at special object to get teleported to a restricted and blocked down area where they have ammo boxes and choppers. All others not knowing password remain in the "outside" world.

- kicking player automatically off the game if they join Independent side and don't use a special squad ID via XML in player profile (possible?) We collect all IDs and create a special "clan/team" squad.xml for that matter

- any other ideas?

Thanks.

Share this post


Link to post
Share on other sites

What you can basically do is collect the UIDs of all players into an array, and when they join the resistance side OnPlayerConnect will determine if their UID is in the array of people that are allowed on resistance. If not then it issues a kick command.

That's the only way I can think of right now.

Share this post


Link to post
Share on other sites
Do you have a working example or something like that?

Not at this moment... I can try to build something for you though. Give me a few days as I have some homework to be doing first.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×