Is there any modules available that can check if a player is in a steam group?
Any help appreciated.
Google:
[img_thumb]http://img42.imageshack.us/img42/1659/howtogoogle.png[/img_thumb]
Personally:
I simple use the http.Fetch and "https://steamcommunity.com/groups/GroupName/memberslistxml/?xml=1" to collect the list of members.
Then get the communityID from a player with this:
[lua]local meta = FindMetaTable("Player")
function meta:CommunityID()
local steamid = self:SteamID()
local x, y, z = string.match( steamid, "STEAM_(%d+):(%d+):(%d+)" )
if ( x and y and z ) then
local CommunityID = string.format( "765%0.f", z * 2 + 61197960265728 + y )
return CommunityID
else
return "STEAM_0:0:0"
end
end[/lua]
However Garry is about to release [url=https://facepunch.com/showthread.php?t=1254348&p=39955738&viewfull=1#post39955738]util.SteamIDTo64(string)[/url].
Well you could always get the community ID from player:SteamID64()
Sorry, you need to Log In to post a reply to this thread.