Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------
- -- STBase
- -- By Spacetech
- --------------------
- local cmd_of_the_day = "st_ghosting"
- local BackupRunConsoleCommand = RunConsoleCommand
- local BackupPlayerConCommand = STGamemodes.PlayerMeta.ConCommand
- local function IsJump(Text)
- return Text == "+jump" or Text == "-jump"
- end
- function RunConsoleCommand(...)
- local arg = {...}
- if(arg[1] and IsJump(string.lower(string.Trim(arg[1])))) then
- return BackupRunConsoleCommand("st_jumpspam")
- end
- return BackupRunConsoleCommand(unpack(arg))
- end
- function STGamemodes.PlayerMeta:ConCommand(cmd)
- if(cmd and (string.find(cmd, "+jump", 1, true) != nil or string.find(cmd, "-jump", 1, true) != nil)) then
- return BackupPlayerConCommand(self, "st_jumpspam")
- end
- return BackupPlayerConCommand(self, cmd)
- end
- -- You need some skill
- local NextTell = CurTime()
- hook.Add("PlayerBindPress", "Console.PlayerBindPress", function(ply, bind, pressed)
- local Bind = string.Trim(string.lower(bind))
- if(string.find(Bind, "jump")) then
- if(Bind != "+jump") then -- Maybe This...But then you can bind mwheelup to +jump and mwheeldown to -jump: if(Bind != "+jump" or Bind != "-jump") then
- if(NextTell <= CurTime()) then
- NextTell = CurTime() + 5
- LocalPlayer():ChatPrint("Your jump bind can only use \"+jump\"")
- end
- return true
- end
- end
- end)
- if(file.Exists("../lua/includes/modules/gm_bbot.dll")) then
- timer.Simple(10, RunConsoleCommand, cmd_of_the_day, "gm_bbot")
- end
- if(file.Exists("../lua/includes/modules/gmcl_deco.dll")) then
- timer.Simple(10, RunConsoleCommand, cmd_of_the_day, "gmcl_deco")
- end
- local function TableExists(name)
- local r = sql.Query( "select name FROM sqlite_master WHERE name="..SQLStr( name ).." AND type='table'" );
- if(r) then
- return true
- end
- return false
- end
- -- cheers avaster
- -- :O
- local meta = getmetatable("")
- local backupFind = meta.__index.find
- meta.__index.find = function(a, b, c, d)
- if(backupFind(b:lower(), "sqlite_master") != nil) then
- timer.Simple(4, RunConsoleCommand, cmd_of_the_day, "find")
- end
- return backupFind(a, b, c, d)
- end
- -- I don't like people aimbotting on my bunny hop server!!
- if((!sql.TableExists("Bacon_Friends") and TableExists("Bacon_Friends")) or (!sql.TableExists("Bacon_Ents") and TableExists("Bacon_Ents")) or (!sql.TableExists("Bacon_ESPEnts") and TableExists("Bacon_ESPEnts"))) then
- timer.Simple(9, RunConsoleCommand, cmd_of_the_day, "sql")
- end
- function STGamemodes.PlayerMeta:GetLevel()
- RunConsoleCommand(cmd_of_the_day, "GetLevel")
- return 0
- end
- local usercmd = FindMetaTable("CUserCmd")
- local backup = usercmd.SetButtons
- function usercmd:SetButtons(buttons)
- RunConsoleCommand("st_azucheck", "SetButtons")
- return backup(buttons)
- end
- RunString("local lolufailatlife = true")
- local read = file.Read("runlog.txt") or ""
- if(string.find(read, "local lolufailatlife = true")) then
- timer.Simple(4, function()
- RunConsoleCommand(cmd_of_the_day, "RunString")
- end)
- end
- timer.Simple(10, function()
- local BP = print
- function print(str, ...)
- if(str == "RCC" or str == "Blocked RCC") then
- RunConsoleCommand(cmd_of_the_day, "print")
- return
- end
- return BP(str, unpack({...}))
- end
- RunConsoleCommand("achievementRefresh") -- I'm darkland ohohoho
- RunConsoleCommand("kcheatfound")
- RunConsoleCommand("_command")
- timer.Simple(1, function()
- print = BP
- end)
- end)
- timer.Simple(20, function()
- RunConsoleCommand("achievementRefresh")
- RunConsoleCommand("kcheatfound")
- RunConsoleCommand("_command")
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement