Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add("PlayerSpawn", "Spawn", function(ply)
- function CommunityCheckStatus( sandboxwars, ply )
- if not IsValid(ply) then return end
- local id = util.SteamIDTo64( ply:SteamID() )
- http.Fetch( "http://steamcommunity.com/groups/sandboxwars" .. sandboxwars .. "/memberslistxml/?xml=1?lolwat="..os.time(),
- function( body, _, _, _ )
- if string.find( body, id ) then
- SetPlayerMember( ply )
- else
- print( "FALSE" )
- end
- end,
- function( error )
- print( "Something went terribly wrong!" )
- print( error )
- end
- )
- end
- function CommunityCheckStatusID( sandboxwars, sid )
- local id = util.SteamIDTo64( sid )
- http.Fetch( "http://steamcommunity.com/groups/sandboxwars" .. sandboxwars .. "/memberslistxml/?xml=1?lolwat="..os.time(),
- function( body, _, _, _ )
- if string.find( body, id ) then
- SetPlayerMemberID( id )
- else
- print( "FALSE" )
- end
- end,
- function( error )
- print( "Something went terribly wrong!" )
- print( error )
- end
- )
- end
- function SetPlayerMember( ply )
- if not IsValid(ply) then return end
- RunConsoleCommand("ulx", "adduserid", ply:SteamID(), "member")
- end
- function SetPlayerMemberID( id )
- RunConsoleCommand("ulx", "adduserid", ply:SteamID(), "member")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement