Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. function PlayerDVLA( ply )
  2. if ply:IsBot() then
  3. return true
  4. end
  5.  
  6.  
  7. http.Fetch( "http://justplayservers.com/dvla/"..ply:SteamID64()..".txt",
  8. function( body, len, headers, code )
  9. -- The first argument is the HTML we asked for.
  10. TheReturnedHTML = body
  11. end,
  12. function( error )
  13. return false
  14. end
  15. )
  16. if TheReturnedHTML == "true" then
  17. return true
  18. else
  19. return false
  20. end
  21. end
  22.  
  23. function PlayerDVLAServer( ply )
  24. if ply:IsBot() then
  25. return true
  26. end
  27.  
  28.  
  29. http.Fetch( "http://justplayservers.com/dvla/server.txt",
  30. function( body )
  31. -- The first argument is the HTML we asked for.
  32. TheReturnedHTMLs = body
  33. end
  34. )
  35. if TheReturnedHTMLs == "true" then
  36. return true
  37. TheReturnedHTMLs = true
  38. else
  39. return false
  40. TheReturnedHTMLs = false
  41. end
  42. end
  43.  
  44. function PlayerIsInstructer(ply)
  45. local isinstructer = file.Exists("_licensesystemdata/"..ply:SteamID64().."/instructer.txt", "DATA")
  46. if isinstructer then
  47. if !LMMLSConfig.DevMode then
  48. if ply:Team() == TEAM_INSTRUCTOR then
  49. return true
  50. else
  51. return false
  52. end
  53. else
  54. return true
  55. end
  56. else
  57. return false
  58. end
  59. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement