Jump to content
Sign in to follow this  
ScarletttKate

Check if player is in steam group?

Recommended Posts

I want to create a script that will give someone a loadout if they are in a steam group. But I don't have much scripting experience so is this possible?

Share this post


Link to post
Share on other sites


private ["_ntl"];

_ntl = "ayaka_needs_to_learn_basic";

if (_ntl == false){

hint "Learn the basics lol, Visit the BI Wiki";

};

  • Like 1

Share this post


Link to post
Share on other sites

You can access your group's XML via:  http://steamcommunity.com/groups/YourGroupHere/memberslistxml/?xml=1

 

At the bottom of that XML you'll get the steamID64s of the members of that group:

<members>
    <steamID64>71234567890123456</steamID64>
    <steamID64>71234567890123457</steamID64>
    <steamID64>71234567890123458</steamID64>
</members>

You can store these values in a file on your server and read them into the mission via something similar to iniDB.

 

Then you can use getPlayerUID to grab the steamID64 number of your player and compare that value to the list of known IDs from your selected group.  As Mc-Pril helpfully pointed out this is kinda non-trivial, but it's possible. :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×