Advertisement
Guest User

Untitled

a guest
Jun 29th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1.  
  2. function Kun_GroupCheck(ply)
  3. KLog_BanGroup(ply)
  4. end
  5. hook.Add("PlayerSpawn","Kun_Connect", Kun_Connect)
  6.  
  7. function KLog_BanGroup(ply)
  8. local steamid = ply:SteamID()
  9. local nid = util.SteamIDTo64(steamid)
  10. for k,v in pairs(KLogs.BannedSteamGroups) do
  11. http.Fetch( "https://steamcommunity.com/groups/"..v.."/memberslistxml/?xml=1",
  12. function( body, len, headers, code )
  13. local ntbl = string.Explode("<members>", body)
  14. local nntbl = string.Explode("<steamID64>", ntbl[2])
  15. for a,b in pairs(nntbl) do
  16. local ftbl = string.Replace(nntbl[a], "</steamID64>", "")
  17. if(ftbl != nil and ftbl != "" and ftbl != "</members>" and ftbl != "</memberList>") then
  18. if(tonumber(nid) == tonumber(ftbl)) then
  19. ply:Ban(0)
  20. end
  21. end
  22. end
  23. end,
  24. function( error )
  25.  
  26. end
  27. )
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement