Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. local users = { "unnamed/pass", "name/pass" }
  2.  
  3. local function(cn, hash)
  4.     for i, v in ipairs(server.clients()) do
  5.         if hash == server.hashpassword(cn, v) then
  6.             server.player_msg(cn, "logged in.")
  7.         end
  8.     end
  9. end
  10.  
  11.  
  12. server.event_handler("setmaster", function(cn, hash, set)
  13.     if hash ~= then
  14.         setmaster(cn, hash)
  15.     end
  16. end)
  17.  
  18. server.event_handler("connecting", function(cn, host, name, hash, reserved_slot)
  19.     if hash ~= "" then
  20.         setmaster(cn, hash)
  21.     end
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement