Advertisement
Caliber_

Shitcheat auto-updater 1.1

Nov 11th, 2017
1,698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 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.  The reason for the update was for added functionality in Shitcheat.
  2. CreateConVar("SCAA", 1, 2048)
  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