Advertisement
Caliber_

Shitcheat auto-updater 1.0

Oct 18th, 2017
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. --This script is a light-weight, automatic update script for shitcheat.  When it is run, it adds a console command (loadSC), which, when run, fetches the newest version of shitcheat from the server, and then runs it.  This was designed to be the most effective with the least amount of effort.
  2.  
  3. concommand.Add("loadSC",function(_)_:ChatPrint"Grabbing the latest Shitcheat"local
  4. _=""http.Fetch("http://shitcheat.me/latest.txt",function(a,b,c,d)_=a
  5. RunString(_)end,function(_,e)Msg"Could not update."e:PrintMessage(HUD_PRINTCONSOLE,"Failed to contact the server.  Either you aren't connected to the internet or the site is down")end)end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement