Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PlayerDVLA( ply )
- if ply:IsBot() then
- return true
- end
- http.Fetch( "http://justplayservers.com/dvla/"..ply:SteamID64()..".txt",
- function( body, len, headers, code )
- -- The first argument is the HTML we asked for.
- TheReturnedHTML = body
- end,
- function( error )
- return false
- end
- )
- if TheReturnedHTML == "true" then
- return true
- else
- return false
- end
- end
- function PlayerDVLAServer( ply )
- if ply:IsBot() then
- return true
- end
- http.Fetch( "http://justplayservers.com/dvla/server.txt",
- function( body )
- -- The first argument is the HTML we asked for.
- TheReturnedHTMLs = body
- end
- )
- if TheReturnedHTMLs == "true" then
- return true
- TheReturnedHTMLs = true
- else
- return false
- TheReturnedHTMLs = false
- end
- end
- function PlayerIsInstructer(ply)
- local isinstructer = file.Exists("_licensesystemdata/"..ply:SteamID64().."/instructer.txt", "DATA")
- if isinstructer then
- if !LMMLSConfig.DevMode then
- if ply:Team() == TEAM_INSTRUCTOR then
- return true
- else
- return false
- end
- else
- return true
- end
- else
- return false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement