├── README.md ├── [LuaScript] Advanced Chams.lua ├── [LuaScript] Anti Kick Remastered.lua ├── [LuaScript] Anti Kick.lua ├── [LuaScript] Auto Buy.lua ├── [LuaScript] Chat Callouts.lua ├── [LuaScript] Chroma-Lines.lua ├── [LuaScript] Color Name Changer.lua ├── [LuaScript] Crash Server.lua ├── [LuaScript] Fake Vac Ban Message.lua ├── [LuaScript] HitLog.lua ├── [LuaScript] LOL Combo Kill Messages.lua ├── [LuaScript] Legit AA Min.lua ├── [LuaScript] Legit AA.lua ├── [LuaScript] Material-Speclist.lua ├── [LuaScript] Mind Control.lua ├── [LuaScript] Name Changer.lua ├── [LuaScript] Onetap Spec List.lua ├── [LuaScript] Onetap Watermark.lua ├── [LuaScript] Per-User Resolver.lua ├── [LuaScript] PewDiePie vs T-Series.lua ├── [LuaScript] Rainbow Spread CrossHair.lua ├── [LuaScript] Reset Score.lua ├── [LuaScript] Slow Walk Fix.lua ├── [LuaScript] Tap Fire.lua ├── [LuaScript] Velocity Graph.lua ├── [LuaScript] Victory Royale.lua └── [Release] Aimware Mind Control.lua /README.md: -------------------------------------------------------------------------------- 1 | # aw-lua-scripts 2 | 3 | 4 | Here you can find list of all the lua scripts that I have coded, if you wish to improve/make changes any of the lua scripts make sure to make a pull request with your changes. -------------------------------------------------------------------------------- /[LuaScript] Advanced Chams.lua: -------------------------------------------------------------------------------- 1 | local showMenu = gui.Checkbox(gui.Reference("VISUALS", "MISC", "Yourself Extra"), "rab_advanced_chams_menu", "Show Advanced Chroma Menu", false) 2 | local mainWindow = gui.Window("rab_advanced_chams", "Advanced Chroma", 200, 200, 682, 700); 3 | local chamsgroup = gui.Groupbox(mainWindow, "Settings", 13, 13, 655, 620); 4 | local masterSwitch = gui.Checkbox(chamsgroup, "rab_advanced_chams_masterswitch", "Master Switch", false); 5 | local menuPressed = 1; 6 | local checkboxVarNames = { "rab_pmodal_masterswitch", "rab_hands_masterswitch", "rab_weapons_masterswitch", "rab_ghost_masterswitch", "rab_glow_masterswitch", "rab_crosshair_masterswitch" }; 7 | local comboBoxVarNames = { "rab_select_mod_playermodal", "rab_select_mod_hands", "rab_select_mod_weapons", "rab_select_mod_ghost", "rab_select_mod_glow", "rab_select_mod_crosshair" }; 8 | local editboxVarNames = { "rab_pmodal_hex_input", "rab_hands_hex_input", "rab_weapons_hex_input", "rab_ghost_hex_input", "rab_glow_hex_input", "rab_crosshair_hex_input" }; 9 | local chromaSpeedVarNames = { "rab_pmodal_chroma_speed", "rab_hands_chroma_speed", "rab_weapons_chroma_speed", "rab_ghost_chroma_speed", "rab_glow_chroma_speed", "rab_crosshair_chroma_speed" }; 10 | local alphaVarNames = { "rab_chams_alpha_playermodal", "rab_chams_alpha_hands", "rab_chams_alpha_weapons", "rab_chams_alpha_ghost", "rab_chams_alpha_glow", "rab_chams_alpha_crosshair" }; 11 | local enablePulsatingVarNames = { "rab_pmodal_pulsating_masterswitch", "rab_hands_pulsating_masterswitch", "rab_weapons_pulsating_masterswitch", "rab_ghost_pulsating_masterswitch", "rab_glow_pulsating_masterswitch", "rab_crosshair_pulsating_masterswitch" }; 12 | local pulsatingSpeedVarNames = { "rab_pmodal_pulsating_speed", "rab_hands_pulsating_speed", "rab_weapons_pulsating_speed", "rab_ghost_pulsating_speed", "rab_glow_pulsating_speed", "rab_crosshair_pulsating_speed" }; 13 | 14 | 15 | local function getMenuItems(checkBoxVarName, comboBoxVarName, editBoxVarName, chromaSpeedSliderVarName, alphaSliderVarName, enablePulsatingVarName, pulsatingSpeedVarName) 16 | local menuItems = {}; 17 | menuItems[1] = { "checkbox", checkBoxVarName, "Enable", { true } }; 18 | menuItems[2] = { "combobox", comboBoxVarName, "Modification Type", { "Chroma", "Static" } }; 19 | menuItems[3] = { "text", "Hex Value" }; 20 | menuItems[4] = { "editbox", editBoxVarName, "f62222" }; 21 | menuItems[5] = { "slider", chromaSpeedSliderVarName, "Chroma Speed", { 1, 1, 10 } }; 22 | menuItems[6] = { "slider", alphaSliderVarName, "Alpha", { 255, 0, 255 } }; 23 | menuItems[7] = { "checkbox", enablePulsatingVarName, "Enable Pulsating", { false } }; 24 | menuItems[8] = { "slider", pulsatingSpeedVarName, "Pulsating Speed", { 1, 1, 10 } }; 25 | return menuItems; 26 | end 27 | 28 | local function addMenuToGui(menus) 29 | for i = 1, #menus do 30 | local menu = menus[i]; 31 | local menuWindow = menu[1]; 32 | local menuName = menu[2]; 33 | local menuPaddingLeft = menu[3]; 34 | local menuPaddingTop = menu[4]; 35 | local menuWidth = menu[5]; 36 | local menuHeight = menu[6]; 37 | local menuItems = menu[7]; 38 | local menuGroup = gui.Groupbox(menuWindow, menuName, menuPaddingLeft, menuPaddingTop, menuWidth, menuHeight); 39 | for i2 = 1, #menuItems do 40 | local menuItem = menuItems[i2]; 41 | local menuItemType = menuItem[1]; 42 | local menuItemVarName = menuItem[2]; 43 | local menuItemName; 44 | if (#menuItem >= 3) then menuItemName = menuItem[3] end; 45 | local menuItemValues; 46 | if (#menuItem >= 4) then menuItemValues = menuItem[4] end; 47 | if (menuItemType == "combobox") then 48 | gui.Combobox(menuGroup, menuItemVarName, menuItemName, menuItemValues[1], menuItemValues[2]); 49 | elseif (menuItemType == "slider") then 50 | gui.Slider(menuGroup, menuItemVarName, menuItemName, menuItemValues[1], menuItemValues[2], menuItemValues[3]); 51 | elseif (menuItemType == "checkbox") then 52 | gui.Checkbox(menuGroup, menuItemVarName, menuItemName, menuItemValues[1]); 53 | elseif (menuItemType == "editbox") then 54 | gui.Editbox(menuGroup, menuItemVarName, menuItemName); 55 | elseif (menuItemType == "text") then 56 | gui.Text(menuGroup, menuItemVarName); 57 | end; 58 | end 59 | end 60 | end 61 | 62 | local function getMenuItemsForID(id) 63 | return getMenuItems(checkboxVarNames[id], comboBoxVarNames[id], editboxVarNames[id], chromaSpeedVarNames[id], alphaVarNames[id], enablePulsatingVarNames[id], pulsatingSpeedVarNames[id]) 64 | end 65 | 66 | local pModalMenu = { chamsgroup, "Player Model", 0, 30, 200, 265, getMenuItemsForID(1) }; 67 | 68 | local handsMenu = { chamsgroup, "Hands", 0, 310, 200, 265, getMenuItemsForID(2) }; 69 | 70 | local weaponMenu = { chamsgroup, "Weapons", 210, 30, 200, 265, getMenuItemsForID(3) }; 71 | 72 | local ghostMenu = { chamsgroup, "Ghost", 210, 310, 200, 265, getMenuItemsForID(4) }; 73 | 74 | local glowMenu = { chamsgroup, "Glow", 420, 30, 200, 265, getMenuItemsForID(5) }; 75 | 76 | local crosshairMenu = { chamsgroup, "Crosshair", 420, 310, 200, 265, getMenuItemsForID(6) }; 77 | 78 | addMenuToGui({ pModalMenu, handsMenu, weaponMenu, ghostMenu, glowMenu, crosshairMenu }) 79 | 80 | gui.Text(mainWindow, "Advanced Chroma - Made by Rab"); 81 | 82 | local function getChamsVar(i) 83 | if (i == 1) then 84 | return { { "clr_chams_ct_vis", "v" }, { "clr_chams_t_vis", "v" } }; 85 | elseif (i == 2) then 86 | return { { "clr_chams_hands_primary", "v" }, { "clr_chams_hands_primary", "v" } }; 87 | elseif (i == 3) then 88 | return { { "clr_chams_weapon_primary", "v" }, { "clr_chams_weapon_secondary", "v" } }; 89 | elseif (i == 4) then 90 | return { { "clr_chams_ghost_client", "v" }, { "clr_chams_ghost_server", "v" }, { "clr_chams_historyticks", "v" } }; 91 | elseif (i == 5) then 92 | return { { "vis_glowalpha", "sf" }, { "clr_esp_box_ct_vis", "v" }, { "clr_esp_box_t_vis", "v" }, { "clr_esp_box_ct_invis", "v" }, { "clr_esp_box_t_invis", "v" } }; 93 | elseif (i == 6) then 94 | return { { "clr_esp_crosshair", "v" }, { "clr_esp_crosshair_recoil", "v" }, { "clr_misc_hitmarker", "v" } }; 95 | end; 96 | end 97 | 98 | local function getPulsateAlpha(speed) 99 | return math.floor(math.abs(math.sin(globals.CurTime() * speed) * 255)); 100 | end 101 | 102 | local function getFadeRGB(speed) 103 | local r = math.floor(math.sin(globals.RealTime() * speed) * 127 + 128) 104 | local g = math.floor(math.sin(globals.RealTime() * speed + 2) * 127 + 128) 105 | local b = math.floor(math.sin(globals.RealTime() * speed + 4) * 127 + 128) 106 | return { r, g, b }; 107 | end 108 | 109 | local function validHexColor(color) 110 | return nil ~= (color:find("^%x%x%x%x%x%x$") or color:find("^%x%x%x$")); 111 | end 112 | 113 | local function getHexInput(hexInput) 114 | local hex = gui.GetValue(hexInput); 115 | hex = hex:gsub("#", ""); 116 | local validHex = validHexColor(hex); 117 | if (validHex == nil) then validHex = "f62222" end; 118 | local rgb = {}; 119 | if hex:len() == 3 then 120 | rgb[1] = (tonumber("0x" .. hex:sub(1, 1) .. hex:sub(1, 1))); 121 | rgb[2] = (tonumber("0x" .. hex:sub(2, 2) .. hex:sub(2, 2))); 122 | rgb[3] = (tonumber("0x" .. hex:sub(3, 3) .. hex:sub(3, 3))); 123 | return rgb; 124 | elseif (hex:len() == 6) then 125 | rgb[1] = (tonumber("0x" .. hex:sub(1, 2))); 126 | rgb[2] = (tonumber("0x" .. hex:sub(3, 4))); 127 | rgb[3] = (tonumber("0x" .. hex:sub(5, 6))); 128 | return rgb; 129 | end; 130 | return { 255, 0, 0 } 131 | end 132 | 133 | local function setChromaValue(keys, alpha, speed) 134 | for i = 1, #keys do 135 | local rgb = getFadeRGB(gui.GetValue(speed)); 136 | local key = keys[i]; 137 | local var = key[1]; 138 | local wat = key[2]; 139 | if (wat == "v") then 140 | gui.SetValue(var, rgb[1], rgb[2], rgb[3], math.floor(alpha)); 141 | elseif (wat == "sf") then 142 | gui.SetValue(var, alpha / 255); 143 | end 144 | end 145 | end 146 | 147 | local function setGuiValues(keys, rgb, alpha) 148 | for i = 1, #keys do 149 | local key = keys[i]; 150 | local var = key[1]; 151 | local wat = key[2]; 152 | if (wat == "v") then 153 | gui.SetValue(var, rgb[1], rgb[2], rgb[3], math.floor(alpha)); 154 | elseif (wat == "sf") then 155 | gui.SetValue(var, alpha / 255); 156 | end 157 | end 158 | end 159 | 160 | local function drawChams(enabled, selection, chamsVars, alpha, hexInput, pulsating, pulsatingSpeed, chromaSpeed) 161 | if (gui.GetValue(enabled)) then 162 | local shouldPulsate = gui.GetValue(pulsating); 163 | local alphaValue = gui.GetValue(alpha); 164 | if (shouldPulsate) then 165 | alphaValue = getPulsateAlpha(gui.GetValue(pulsatingSpeed)); 166 | end 167 | if (gui.GetValue(selection) == 0) then 168 | setChromaValue(chamsVars, alphaValue, chromaSpeed); 169 | else 170 | setGuiValues(chamsVars, getHexInput(hexInput), alphaValue); 171 | end 172 | end 173 | end 174 | 175 | callbacks.Register('Draw', function() 176 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 177 | menuPressed = menuPressed == 0 and 1 or 0; 178 | end 179 | if (showMenu:GetValue()) then 180 | mainWindow:SetActive(menuPressed); 181 | else 182 | mainWindow:SetActive(0); 183 | end 184 | if (not masterSwitch:GetValue()) then return end 185 | for i = 1, #checkboxVarNames do 186 | drawChams(checkboxVarNames[i], comboBoxVarNames[i], getChamsVar(i), alphaVarNames[i], editboxVarNames[i], enablePulsatingVarNames[i], pulsatingSpeedVarNames[i], chromaSpeedVarNames[i]) 187 | end 188 | end); -------------------------------------------------------------------------------- /[LuaScript] Anti Kick Remastered.lua: -------------------------------------------------------------------------------- 1 | --[=====[ 2 | 3 | Anti Kick Vote Made by Rab(SamzSakerz#4758) 4 | __ __ 5 | |__) /\ |__) 6 | | \ /~~\ |__) 7 | __ __ ___ ___ ___ 8 | / ` |__) |__ /\ | |__ 9 | \__, | \ |___ /~~\ | |___ 10 | ___ __ ___ ___ 11 | | | |__| /\ | /__` |\ | |__ \_/ | 12 | |/\| | | /~~\ | .__/ | \| |___ / \ | 13 | 14 | --]=====] 15 | 16 | -- Register all the events we will be listening to 17 | local eventsToListen = { "game_start", "vote_cast", "vote_changed", "vote_ended", "vote_failed", "vote_passed" }; 18 | for i = 1, #eventsToListen do 19 | client.AllowListener(eventsToListen[i]); 20 | end 21 | 22 | -- Create the window for adding options for anti kick. 23 | local aimwareMenu = gui.Reference("MENU"); 24 | local windowW, windowH = 200, 275; 25 | local mainWindow = gui.Window("rab_anti_kick_menu", "Anti Kick", 200, 200, windowW, windowH); 26 | local settingsGroup = gui.Groupbox(mainWindow, "Settings", 13, 13, windowW - 25, windowH - 55); 27 | 28 | -- Add options to the window 29 | local enable = gui.Checkbox(settingsGroup, "rab_anti_kick_enabled", "Enable Anti Kick", false); 30 | local joinSpec = gui.Checkbox(settingsGroup, "rab_anti_kick_join_spec", "Join Spectators", false); 31 | local switchTeam = gui.Checkbox(settingsGroup, "rab_anti_kick_switch_team", "Switch Team", false); 32 | 33 | local voteThreshold = gui.Slider(settingsGroup, "rab_anti_kick_threshold", "Scramble threshold %", 80, 1, 100); 34 | 35 | -- Add info bar options to window 36 | local drawInfo = gui.Checkbox(settingsGroup, "rab_anti_kick_info_bar", "Info Bar", false); 37 | local theme = gui.Combobox(settingsGroup, "rab_anti_kick_info_bar_theme", "Info Bar Theme", "Light", "Dark", "Amoled") 38 | 39 | -- Add option to enable/disable window via aw menu 40 | local showMenu = gui.Checkbox(gui.Reference("MISC", "AUTOMATION", "Other"), "rab_anti_kick_show", "Show Anti Kick Menu", false); 41 | 42 | -- Needed Variables for the vote feature to work. 43 | local self_voted = false; 44 | local vote_yes_count = 1; 45 | local self_being_kicked = false; 46 | local potentialVotes = 0; 47 | local vote_cool_down = 0; 48 | local last_call_vote = 1; 49 | local last_team_in = 1; 50 | 51 | -- Needed Vars for info bar 52 | local mouseX, mouseY, x, y, dx, dy, w, h = 0, 0, 25, 660, 0, 0, 160, 60; 53 | local shouldDrag = false; 54 | local primary_color = { { 255, 255, 255 }, { 33, 33, 33 }, { 0, 0, 0 } }; 55 | local secondary_color = { { 238, 238, 238 }, { 44, 44, 44 }, { 0, 0, 0 } } 56 | local text_color = { { 0, 0, 0 }, { 255, 255, 255 }, { 255, 255, 255 } } 57 | local RabFonts = { Verdana17400 = draw.CreateFont("Verdana", 17, 400), Verdana13400 = draw.CreateFont("Verdana", 13, 400) } 58 | 59 | -- Register callback for our DispatchUserMessage event. 60 | callbacks.Register("DispatchUserMessage", function(um) 61 | local id = um:GetID(); 62 | -- if(id > 40 and id < 50) then print(id) end; 63 | if (id == 46 and enable:GetValue()) then 64 | local lp = entities.GetLocalPlayer(); 65 | -- Entity Index of the person who started the vote 66 | local vote_starter_entid = um:GetInt(2); 67 | if (lp == nil) then 68 | return 69 | end ; 70 | local localPlayerIndex = lp:GetIndex(); 71 | -- print("vote started by id: " .. vote_starter_entid .. " our id is: ".. localPlayerIndex) 72 | if (vote_starter_entid == localPlayerIndex) then 73 | -- print("we just called a vote") 74 | -- We are calling the vote so lets reset some cache 75 | self_voted, self_being_kicked, vote_yes_count, potentialVotes = true, false, 0, 0; 76 | else 77 | local personGettingKickedName = um:GetString(5); 78 | local voteType = um:GetInt(3); 79 | local localPlayerName = lp:GetName(); 80 | -- Check if the vote is a callvote kick and if the person getting kicked is our name, or empty 81 | if (voteType == 0 and (personGettingKickedName == localPlayerName or personGettingKickedName == '')) then 82 | self_being_kicked = true; 83 | self_voted = false; 84 | end 85 | end 86 | elseif id == 48 then 87 | -- Check if the vote kick on us has failed and reset cache 88 | if (self_being_kicked) then 89 | self_being_kicked, vote_yes_count, potentialVotes = false, 0, 0; 90 | end 91 | elseif id == 47 then 92 | -- Check if we have swapped/scrambled/changed level if so lets reset the vote_cool_down value and reset cache. 93 | -- print('vote passed') 94 | -- print("self_voted: ", tostring(self_voted)) 95 | if (self_voted) then 96 | -- print('vote passed 2') 97 | self_voted, self_being_kicked, vote_yes_count, potentialVotes, vote_cool_down = false, false, 0, 0, 0; 98 | end 99 | end 100 | end); 101 | 102 | -- Register callback for our FireGameEvent event. 103 | callbacks.Register("FireGameEvent", function(e) 104 | local en = e:GetName(); 105 | if (en == "game_start") then 106 | -- a new game has started lets reset our vote cache 107 | self_voted, self_being_kicked, vote_yes_count, potentialVotes, vote_cool_down = false, false, 0, 0, 0; 108 | elseif (en == "vote_changed") then 109 | -- Check if we didn't start the vote and we are being kicked at the same time and then store potential votes needed for us to get kicked 110 | if (self_voted ~= true and self_being_kicked) then 111 | potentialVotes = e:GetInt("potentialVotes"); 112 | end 113 | elseif (en == "vote_cast") then 114 | local lp = entities.GetLocalPlayer(); 115 | local localPlayerIndex = lp:GetIndex(); 116 | -- Vote option the person casted 117 | local voteOption = e:GetInt("vote_option"); 118 | 119 | -- Entity id of the person who casted the vote 120 | local vote_starter_entid = e:GetInt("entityid"); 121 | if (self_voted ~= true and self_being_kicked) then 122 | -- Checks if we have voted yes, we can't vote yes on our own kick vote so lets make self_being_kicked false and reset cache 123 | if (vote_starter_entid == localPlayerIndex and vote_option == 0) then 124 | self_being_kicked, vote_yes_count, potentialVotes = false, 0, 0; 125 | -- Someone else voted yes on the vote and we have verified we are the one being kicked so lets add +1 to vote_yes_count 126 | elseif (vote_starter_entid ~= localPlayerIndex and voteOption == 0) then 127 | vote_yes_count = vote_yes_count + 1; 128 | end 129 | end 130 | end 131 | end); 132 | 133 | -- Register callback for our Draw event. 134 | callbacks.Register("Draw", function() 135 | -- Set the visibility of our settings window. 136 | mainWindow:SetActive(showMenu:GetValue() and aimwareMenu:IsActive()); 137 | 138 | -- Check if we have anti vote enabled, if not lets return. 139 | if (enable:GetValue() ~= true) then 140 | return 141 | end 142 | local lp = entities.GetLocalPlayer(); 143 | if (lp ~= nil) then 144 | -- Check if we called the vote and we are being kicked also check if potentialVotes isn't 0 145 | if (self_voted ~= true and self_being_kicked and potentialVotes ~= 0) then 146 | -- For debugging 147 | -- print('self_voted: ', tostring(self_voted), ' ', 'self_being_kicked: ', tostring(self_being_kicked), ' ', 'vote_yes_count: ', vote_yes_count, 'potentialVotes: ', potentialVotes, 'vote_cool_down: ', vote_cool_down ) 148 | 149 | local thresholdReached = ((vote_yes_count / (potentialVotes / 2)) * 100) >= voteThreshold:GetValue(); 150 | 151 | -- We have reached our threshold limit lets active anti kick 152 | if (thresholdReached) then 153 | -- Reset some cache since we wont be getting kicked anymore 154 | self_voted, self_being_kicked, vote_yes_count, potentialVotes = false, false, 0, 0; 155 | 156 | -- Lets call a vote to override us being kicked 157 | local vote_to_call = last_call_vote == 1 and 'SwapTeams' or last_call_vote == 2 and 'ScrambleTeams' or 'ChangeLevel ' .. engine.GetMapName(); 158 | 159 | -- Lets change the last_call_vote so we pick a different call_vote next time. 160 | last_call_vote = last_call_vote == 1 and 2 or last_call_vote == 2 and 3 or last_call_vote == 3 and 1; 161 | 162 | -- Finally lets execute the call-vote command 163 | client.Command('callvote ' .. vote_to_call) 164 | 165 | -- Lets set the vote_cool_down since we have just started a vote. Vote cool downs are 120 seconds, to be safe lets set it at 140. 166 | vote_cool_down = globals.RealTime() + 140; 167 | 168 | -- Check if we have join spectators enabled if not lets just return from here 169 | if (joinSpec:GetValue() ~= true) then 170 | return 171 | end 172 | 173 | -- Lets cache the num of the last team we were in before joining specs 174 | local teamNum = lp:GetTeamNumber(); 175 | last_team_in = switchTeam:GetValue() and (teamNum == 2 and 3 or 2) or teamNum 176 | client.Command("jointeam 1"); 177 | end 178 | -- check if we are in spectators and vote_cool_down has ended 179 | elseif (lp:GetTeamNumber() == 1 and vote_cool_down ~= 0 and vote_cool_down < globals.RealTime()) then 180 | vote_cool_down, last_team_in = 0, 1; 181 | client.Command("jointeam 0 " .. last_team_in); 182 | -- check if we aren't in specs and vote_cool_down hasn't ended 183 | elseif (lp:GetTeamNumber() ~= 1 and vote_cool_down ~= 0) then 184 | --TODO: Implement something 185 | end 186 | else 187 | self_voted, self_being_kicked, vote_yes_count, potentialVotes, vote_cool_down = false, false, 0, 0, 0; 188 | end 189 | local remainingTime = math.ceil((vote_cool_down - globals.RealTime()) * 100) / 100; 190 | if (remainingTime < 0 and vote_cool_down ~= 0) then 191 | vote_cool_down, last_team_in = 0, 1; 192 | end 193 | if (drawInfo:GetValue()) then 194 | if input.IsButtonDown(1) then 195 | mouseX, mouseY = input.GetMousePos(); 196 | if shouldDrag then 197 | x = mouseX - dx; 198 | y = mouseY - dy; 199 | end 200 | if mouseX >= x and mouseX <= x + w and mouseY >= y and mouseY <= y + 40 then 201 | shouldDrag = true; 202 | dx = mouseX - x; 203 | dy = mouseY - y; 204 | end 205 | else 206 | shouldDrag = false; 207 | end 208 | local currentTheme = theme:GetValue() + 1; 209 | local rgb = primary_color[currentTheme]; 210 | local topbarSize = 25; 211 | draw.Color(rgb[1], rgb[2], rgb[3], 255) 212 | draw.FilledRect(x, y, x + w, y + h); 213 | rgb = text_color[currentTheme]; 214 | draw.Color(rgb[1], rgb[2], rgb[3], 255); 215 | draw.SetFont(RabFonts.Verdana17400); 216 | draw.Text(x + 10, y + topbarSize / 8, "Anti Kick Info") 217 | local r = math.floor(math.sin((globals.RealTime()) * 2) * 127 + 128) 218 | local g = math.floor(math.sin((globals.RealTime()) * 2 + 2) * 127 + 128) 219 | local b = math.floor(math.sin((globals.RealTime()) * 2 + 4) * 127 + 128) 220 | rgb = { r, g, b }; 221 | draw.Color(rgb[1], rgb[2], rgb[3], 255) 222 | draw.FilledRect(x, y + topbarSize, x + w, y + h); 223 | rgb = secondary_color[currentTheme]; 224 | draw.Color(rgb[1], rgb[2], rgb[3], 255) 225 | draw.FilledRect(x, y + topbarSize + 5, x + w, y + h); 226 | rgb = text_color[currentTheme]; 227 | draw.Color(rgb[1], rgb[2], rgb[3], 255); 228 | draw.SetFont(RabFonts.Verdana13400); 229 | if (vote_cool_down == 0) then 230 | remainingTime = "N/A" 231 | end 232 | draw.Text(x + 5, (y + topbarSize) + 5, "Remaining Time: " .. remainingTime) 233 | draw.Text(x + 5, (y + topbarSize) + 20, "Team to join back in: " .. (last_team_in == 2 and "T" or last_team_in == 3 and "CT" or "N/A")) 234 | end 235 | end) -------------------------------------------------------------------------------- /[LuaScript] Anti Kick.lua: -------------------------------------------------------------------------------- 1 | local cool_down_delay, last_team_in, last_cv, vote_count, potentialVotes, menuPressed, is_me = -1, -1, 1, 1, 0, 1, false; 2 | local showMenu = gui.Checkbox(gui.Reference("MISC", "AUTOMATION", "Other"), "rab_anti_kick_show", "Show Anti Kick Menu", false); 3 | local mainWindow = gui.Window("rab_anti_kick", "Anti Kick", 200, 200, 165, 180); 4 | local settingsGroup = gui.Groupbox(mainWindow, "Settings", 13, 13, 140, 120); 5 | local enable = gui.Checkbox(settingsGroup, "rab_anti_kick_enabled", "Enable Anti Kick", false); 6 | local join_spec = gui.Checkbox(settingsGroup, "rab_anti_kick_join_spec", "Join Spectator", false); 7 | local threshold = gui.Slider(settingsGroup, "rab_anti_kick_threshold", "Scramble threshold %", 80, 1, 100); 8 | 9 | client.AllowListener("game_start"); 10 | client.AllowListener("vote_cast"); 11 | client.AllowListener("vote_changed"); 12 | client.AllowListener("vote_failed"); 13 | client.AllowListener("vote_passed"); 14 | client.AllowListener("vote_ended"); 15 | 16 | local function checkAndCallVote() 17 | if (is_me ~= true or potentialVotes == 0) then return end; 18 | local lp = entities.GetLocalPlayer(); 19 | if ((((vote_count - 1) / (potentialVotes / 2)) * 100) >= threshold:GetValue()) then 20 | potentialVotes, vote_count = 0, 1; 21 | if (last_cv == 1) then 22 | client.Command("callvote ChangeLevel " .. engine.GetMapName()); 23 | last_cv = 2; 24 | elseif (last_cv == 2) then 25 | client.Command("callvote SwapTeams"); 26 | last_cv = 3; 27 | elseif (last_cv == 3) then 28 | client.Command("callvote ScrambleTeams"); 29 | last_cv = 1; 30 | end 31 | if (join_spec:GetValue() ~= true) then return end; 32 | cool_down_delay, last_team_in = globals.RealTime() + 140, lp:GetTeamNumber(); 33 | client.Command("jointeam 1"); 34 | end 35 | end 36 | 37 | callbacks.Register("DispatchUserMessage", function(um) 38 | if (um:GetID() ~= 46 or enable:GetValue() ~= true) then return end; 39 | vote_count, potentialVotes = 1, 0; 40 | local lp = entities.GetLocalPlayer(); 41 | if (um:GetInt(3) == 0 and um:GetString(5) == lp:GetName()) then 42 | is_me = true; 43 | checkAndCallVote(); 44 | end; 45 | end); 46 | 47 | callbacks.Register("Draw", function() 48 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 49 | menuPressed = menuPressed == 0 and 1 or 0; 50 | end 51 | if (showMenu:GetValue()) then 52 | mainWindow:SetActive(menuPressed); 53 | else 54 | mainWindow:SetActive(0); 55 | end 56 | if (cool_down_delay == -1 or last_team_in == -1 or enable:GetValue() ~= true or join_spec:GetValue() ~= true) then return end; 57 | if (cool_down_delay < globals.RealTime()) then 58 | client.Command("jointeam 0 " .. last_team_in); 59 | cool_down_delay, last_team_in, vote_count, potentialVotes, is_me = -1, -1, 1, 0, false; 60 | end 61 | end) 62 | 63 | callbacks.Register("FireGameEvent", function(e) 64 | local en = e:GetName(); 65 | if (enable:GetValue() ~= true) then return end; 66 | if (en == "game_start") then 67 | cool_down_delay, last_team_in, last_cv, vote_count, potentialVotes, is_me = -1, -1, 1, 1, 0, false; 68 | elseif (en == "vote_changed") then 69 | potentialVotes = e:GetInt("potentialVotes"); 70 | checkAndCallVote(); 71 | elseif (en == "vote_cast") then 72 | if (client.GetLocalPlayerIndex() ~= e:GetInt("entityid") and e:GetInt("vote_option") == 0) then 73 | vote_count = vote_count + 1; 74 | checkAndCallVote(); 75 | end 76 | elseif (en == "vote_failed" or en == "vote_passed" or en == "vote_ended") then 77 | vote_count, potentialVotes,is_me = 1, 0, false; 78 | end 79 | end) -------------------------------------------------------------------------------- /[LuaScript] Auto Buy.lua: -------------------------------------------------------------------------------- 1 | local ref = gui.Reference("MISC", "AUTOMATION", "Other"); 2 | local showMenu = gui.Checkbox(ref, "rab_autobuy_showmenu", "Show Auto Buy Menu", false); 3 | local menuPressed = 1; 4 | local primaryWeapons = { 5 | {"None", nil}; 6 | { "SCAR 20 | G3SG1", "scar20" }; 7 | { "SSG 008", "ssg08" }; 8 | { "AWP", "awp" }; 9 | { "G3 SG1 | AUG", "sg556" }; 10 | { "AK 47 | M4A1", "ak47" }; 11 | }; 12 | local secondaryWeapons = { 13 | {"None", nil}; 14 | { "Dual Elites", "elite" }; 15 | { "Desert Eagle | R8 Revolver", "deagle" }; 16 | { "Five Seven | Tec 9", "tec9" }; 17 | { "P250", "p250" }; 18 | }; 19 | local armors = { 20 | { "None", nil, nil }; 21 | { "Kevlar Vest", "vest", nil }; 22 | { "Kevlar Vest + Helmet", "vest", "vesthelm" }; 23 | }; 24 | local granades = { 25 | { "None", nil, nil }; 26 | { "Grenade", "hegrenade", nil }; 27 | { "Flashbang", "flashbang", nil }; 28 | { "Smoke Grenade", "smokegrenade", nil }; 29 | { "Decoy Grenade", "decoy", nil }; 30 | { "Molotov | Incindiary Grenade", "molotov", "incgrenade" }; 31 | }; 32 | local mainWindow = gui.Window("rab_autobuy", "Auto Buy", 200, 200, 250, 554); 33 | local autoBuyGroup = gui.Groupbox(mainWindow, "Settings", 15, 15, 220, 480); 34 | local enabled = gui.Checkbox(autoBuyGroup, "rab_autobuy_masterswitch", "Enabled Auto Buy", false); 35 | local printLogs = gui.Checkbox(autoBuyGroup, "rab_autobuy_printlogs", "Print Logs To Aimware Console", false); 36 | local concatCommand = gui.Checkbox(autoBuyGroup, "rab_autobuy_concat", "Concact Buy Command", false); 37 | concatCommand:SetValue(true); 38 | local primaryWeaponSelection = gui.Combobox(autoBuyGroup, "rab_autobuy_primary_weapon", "Primary Weapon", primaryWeapons[1][1], primaryWeapons[2][1], primaryWeapons[3][1], primaryWeapons[4][1], primaryWeapons[5][1], primaryWeapons[6][1]); 39 | local secondaryWeaponSelection = gui.Combobox(autoBuyGroup, "rab_autobuy_secondary_weapon", "Secondary Weapon", secondaryWeapons[1][1], secondaryWeapons[2][1], secondaryWeapons[3][1], secondaryWeapons[4][1], secondaryWeapons[5][1]); 40 | local armorSelection = gui.Combobox(autoBuyGroup, "rab_autobuy_armor", "Armor", armors[1][1], armors[2][1], armors[3][1]); 41 | armorSelection:SetValue(2); 42 | local granadeSlot1 = gui.Combobox(autoBuyGroup, "rab_autobuy_grenade_slot_1", "Grenade Slot #1", granades[1][1], granades[2][1], granades[3][1], granades[4][1], granades[5][1], granades[6][1]); 43 | granadeSlot1:SetValue(1); 44 | local granadeSlot2 = gui.Combobox(autoBuyGroup, "rab_autobuy_grenade_slot_2", "Grenade Slot #2", granades[1][1], granades[2][1], granades[3][1], granades[4][1], granades[5][1], granades[6][1]); 45 | granadeSlot2:SetValue(3); 46 | local granadeSlot3 = gui.Combobox(autoBuyGroup, "rab_autobuy_grenade_slot_3", "Grenade Slot #3", granades[1][1], granades[2][1], granades[3][1], granades[4][1], granades[5][1], granades[6][1]); 47 | granadeSlot3:SetValue(5); 48 | local granadeSlot4 = gui.Combobox(autoBuyGroup, "rab_autobuy_grenade_slot_4", "Grenade Slot #4", granades[1][1], granades[2][1], granades[3][1], granades[4][1], granades[5][1], granades[6][1]); 49 | granadeSlot4:SetValue(2); 50 | local taser = gui.Checkbox(autoBuyGroup, "rab_autobuy_taser", "Buy Taser", false); 51 | local defuseKit = gui.Checkbox(autoBuyGroup, "rab_autobuy_defusekit", "Buy Defuse Kit", false); 52 | gui.Text(mainWindow, "Auto Buy - Made By Rab(SamzSakerz#4758)"); 53 | 54 | local function getSingleTableItem(selection, table) 55 | return table[selection:GetValue() + 1][2]; 56 | end 57 | 58 | local function getMultiTableItems(seletion, table) 59 | local table = table[seletion:GetValue() + 1]; 60 | return { table[2], table[3] }; 61 | end 62 | 63 | local function insertToTableNonNull(tableToInsertTo, table1) 64 | for i = 1, #table1 do 65 | local item = table1[i]; 66 | if (item ~= nil) then 67 | table.insert(tableToInsertTo, item); 68 | end 69 | end 70 | end 71 | 72 | local function inserToTableBool(tableToInserTo, bool, itemToInsert) 73 | if (bool:GetValue()) then 74 | table.insert(tableToInserTo, itemToInsert); 75 | end 76 | end 77 | 78 | local function buy(items, concat) 79 | local buyCommand = ''; 80 | for i = 1, #items do 81 | local item = items[i]; 82 | if (concat) then 83 | buyCommand = buyCommand .. 'buy "' .. item .. '"; '; 84 | else 85 | if (printLogs:GetValue()) then 86 | print('Bought x1 ' .. item); 87 | end; 88 | client.Command('buy "' .. item .. '";', true); 89 | end; 90 | end; 91 | if (buyCommand ~= '') then 92 | if (printLogs:GetValue()) then 93 | print('Bought x' .. #items .. ' items'); 94 | end; 95 | client.Command(buyCommand); 96 | end; 97 | end 98 | 99 | callbacks.Register('FireGameEvent', function(e) 100 | local lp, en, ui = entities.GetLocalPlayer(), e:GetName(), client.GetPlayerIndexByUserID(e:GetInt('userid')); 101 | if (enabled:GetValue() ~= true or lp == nil or en ~= "player_spawn" or ui ~= lp:GetIndex()) then return 102 | end; 103 | local stuffToBuy = {}; 104 | table.insert(stuffToBuy, getSingleTableItem(primaryWeaponSelection, primaryWeapons)) 105 | table.insert(stuffToBuy, getSingleTableItem(secondaryWeaponSelection, secondaryWeapons)); 106 | insertToTableNonNull(stuffToBuy, getMultiTableItems(armorSelection, armors)); 107 | inserToTableBool(stuffToBuy, defuseKit, 'defuser'); 108 | insertToTableNonNull(stuffToBuy, getMultiTableItems(granadeSlot1, granades)); 109 | insertToTableNonNull(stuffToBuy, getMultiTableItems(granadeSlot2, granades)); 110 | insertToTableNonNull(stuffToBuy, getMultiTableItems(granadeSlot3, granades)); 111 | insertToTableNonNull(stuffToBuy, getMultiTableItems(granadeSlot4, granades)); 112 | inserToTableBool(stuffToBuy, taser, 'taser'); 113 | buy(stuffToBuy, concatCommand:GetValue()); 114 | end); 115 | 116 | 117 | callbacks.Register("Draw", function() 118 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 119 | menuPressed = menuPressed == 0 and 1 or 0; 120 | end 121 | if (showMenu:GetValue()) then 122 | mainWindow:SetActive(menuPressed); 123 | else 124 | mainWindow:SetActive(0); 125 | end 126 | end); 127 | 128 | client.AllowListener("player_spawn"); -------------------------------------------------------------------------------- /[LuaScript] Chat Callouts.lua: -------------------------------------------------------------------------------- 1 | local SetVis = gui.Reference('MISC', "AUTOMATION", "Other"); 2 | local enabled = gui.Checkbox(SetVis, "rab_chat_callouts_enabled", "Chat Callouts", false); 3 | local callouts = {}; 4 | local last_msg = globals.TickCount(); 5 | 6 | callbacks.Register("DrawESP", function(e) 7 | local en, lp = e:GetEntity(), entities.GetLocalPlayer(); 8 | if (enabled:GetValue() ~= true or en:GetTeamNumber() == lp:GetTeamNumber() or en:IsAlive() ~= true or en:IsPlayer() ~= true) then return end; 9 | local enName = en:GetName(); 10 | local enLoc = en:GetPropString('m_szLastPlaceName'); 11 | local shouldAdd = true; 12 | for index, callout in pairs(callouts) do 13 | local eName = callout[1]; 14 | local eLoc = callout[2]; 15 | if (eName == enName) then 16 | if (eLoc ~= enLoc) then 17 | callouts[index] = { enName, enLoc, true } 18 | end 19 | shouldAdd = false; 20 | end 21 | end 22 | if (shouldAdd) then table.insert(callouts, { enName, enLoc, true }); end; 23 | end); 24 | 25 | callbacks.Register("Draw", function() 26 | if (enabled:GetValue() ~= true or #callouts <= 0) then return end; 27 | for index, callout in pairs(callouts) do 28 | local eName = callout[1]; 29 | local eLoc = callout[2]; 30 | local isActive = callout[3]; 31 | if (isActive and (globals.TickCount() - last_msg > 250)) then 32 | client.ChatSay(eName .. " Was last spotted In " .. addSpace(eLoc)); 33 | callouts[index] = { eName, eLoc, fade_multiplier } 34 | last_msg = globals.TickCount(); 35 | end 36 | end 37 | end) 38 | 39 | callbacks.Register("FireGameEvent", function(e) 40 | local en = e:GetName() 41 | if (enabled:GetValue() ~= true or #callouts <= 0) then return end; 42 | if (en == "game_start" or en == "round_start" or en == "round_end") then callouts = {} end 43 | end) 44 | 45 | function addSpace(str) 46 | local sb = {} 47 | for each in str:gmatch("[A-Z][^A-Z]*") do table.insert(sb, each .. " ") end 48 | return table.concat(sb) 49 | end -------------------------------------------------------------------------------- /[LuaScript] Chroma-Lines.lua: -------------------------------------------------------------------------------- 1 | local window = gui.Window('rab_chroma_lines', 'Chroma Lines', 200, 200, 255, 260); 2 | local frame = gui.Groupbox(window, 'Settings', 13, 13, 230, 200); 3 | 4 | local UI = { 5 | show = 1; 6 | enable = gui.Checkbox(frame, 'rab_enable_chroma_line', 'Enable', 0); 7 | mode = gui.Combobox(frame, 'rab_chroma_lines_mode', 'Color Mode', 'Static Color', 'Chroma'); 8 | color = gui.ColorEntry('rab_chroma_lines_color', 'Chroma Line Color', 246, 32, 32, 255); 9 | thickness = gui.Slider(frame, 'rab_chroma_lines_thickness', 'Thickness', 5, 1, 50); 10 | speed = gui.Slider(frame, 'rab_chroma_lines_speed', 'Chroma Speed', 1, 1, 10); 11 | } 12 | 13 | local function getFadeRGB(speed) 14 | local r = math.floor(math.sin(globals.RealTime() * speed) * 127 + 128) 15 | local g = math.floor(math.sin(globals.RealTime() * speed + 2) * 127 + 128) 16 | local b = math.floor(math.sin(globals.RealTime() * speed + 4) * 127 + 128) 17 | return r, g, b; 18 | end 19 | 20 | callbacks.Register('Draw', function() 21 | if input.IsButtonPressed(gui.GetValue('msc_menutoggle')) then 22 | UI.show = UI.show == 0 and 1 or 0 23 | end 24 | window:SetActive(UI.show); 25 | if (UI.enable:GetValue() ~= true) then 26 | return 27 | end 28 | 29 | local r, g, b, a = UI.color:GetValue(); 30 | if (UI.mode:GetValue() == 1) then 31 | r, g, b = getFadeRGB(UI.speed:GetValue()); 32 | end 33 | draw.Color(r, g, b, a); 34 | draw.FilledRect(0, 0, draw.GetScreenSize(), UI.thickness:GetValue()); 35 | end); -------------------------------------------------------------------------------- /[LuaScript] Color Name Changer.lua: -------------------------------------------------------------------------------- 1 | --[=====[ 2 | Color Name Changer Made by Rab(SamzSakerz#4758) 3 | __ __ 4 | |__) /\ |__) 5 | | \ /~~\ |__) 6 | __ __ ___ ___ ___ 7 | / ` |__) |__ /\ | |__ 8 | \__, | \ |___ /~~\ | |___ 9 | ___ __ ___ ___ 10 | | | |__| /\ | /__` |\ | |__ \_/ | 11 | |/\| | | /~~\ | .__/ | \| |___ / \ | 12 | 13 | --]=====] 14 | 15 | mgui={}local c={}local d={}local e={{}}local f={}local h=draw.CreateFont("Verdana",12,400)f.outline=function(i,j,k,l,m)draw.Color(m[1],m[2],m[3],m[4])draw.OutlinedRect(i,j,i+k,j+l)end;f.rect=function(i,j,k,l,m)draw.Color(m[1],m[2],m[3],m[4])draw.FilledRect(i,j,i+k,j+l)end;f.rect2=function(i,j,k,l)draw.FilledRect(i,j,i+k,j+l)end;f.gradient=function(i,j,k,l,n,o,p)f.rect(i,j,k,l,n)local r,g,b=o[1],o[2],o[3]if p then for q=1,l do local a=q/l*255;f.rect(i,j+q,k,1,{r,g,b,a})end else for q=1,k do local a=q/k*255;f.rect(i+q,j,1,l,{r,g,b,a})end end end;f.text=function(i,j,s,m,t)if t~=nil then draw.SetFont(t)else draw.SetFont(h)end;draw.Color(m[1],m[2],m[3],m[4])draw.Text(i,j,s)end;mgui.checkbox=function(u,v,width,w,x,mgui_id,y)local z=x;local n_left=u+d[y][1]local n_top=v+d[y][2]if mgui.mouse_mov(n_left,n_top,16,width)and e[1][7]~=true then mgui.color_aw("gui_controls3")else mgui.color_aw("gui_groupbox_background")end;drawing.block(n_left,n_top,21,width)if mgui.mouse_mov(n_left,n_top,16,width)and e[1][7]~=true then if z then mgui.color_aw("gui_checkbox_on_hover")else mgui.color_aw("gui_checkbox_off_hover")end;if input.IsButtonPressed(1)then mgui.color_aw("gui_checkbox_on_hover")if c[mgui_id][1]==false then c[mgui_id][1]=true else c[mgui_id][1]=false end end else if z then mgui.color_aw("gui_checkbox_on")else mgui.color_aw("gui_checkbox_off")end end;drawing.block_round(n_left+4,n_top+5,12,12)if z then mgui.color_aw("gui_controls2")else mgui.color_aw("gui_controls3")end;if mgui.mouse_mov(n_left,n_top,16,width)and e[1][7]~=true then mgui.color_aw("gui_controls2")end;drawing.encircle_round(n_left+4,n_top+5,12,12)local n_button_left=n_left+17;local n_button_top=n_top-1;mgui.color_aw("gui_text2")draw.SetFont(h)draw.Text(n_button_left+4,n_button_top+5,w)return z end;mgui.button=function(u,v,height,width,w,mgui_id,y)local n_left,n_top;if c[mgui_id][1]then else c[mgui_id]={false}end;if y==0 then n_left=u;n_top=v else n_left=u+d[y][1]n_top=v+d[y][2]end;local A=false;if mgui.mouse_mov(n_left,n_top,height,width)and e[1][7]~=true then mgui.color_aw("gui_button_hover")if input.IsButtonDown(1)then mgui.color_aw("gui_button_clicked")end;if input.IsButtonPressed(1)then A=true end else mgui.color_aw("gui_button_idle")end;drawing.block_round(n_left,n_top,height,width)local c_w,c_h=draw.GetTextSize(w)local n_button_left=n_left+width/2-c_w/2;local n_button_top=n_top+height/2-c_h/2;mgui.color_aw("gui_text1")draw.SetFont(h)draw.Text(n_button_left,n_button_top,w)return A end;local function B(a,b,C,D,E,F)if a>=C and a<=E and b>=D and b<=F then return true else return false end end;local function G(H,I,J)if HJ then return J end;return H end;mgui.listbox=function(i,j,K,L,M,N,y)i=i+d[y][1]j=j+d[y][2]if(#K-L)*20>=L*20 then while(#K-L)*20>=L*20 do L=L+1 end end;local l=L*20;local r,g,b,a=gui.GetValue("clr_gui_listbox_outline")f.outline(i,j,155,l+2,{r,g,b,a})r,g,b,a=gui.GetValue("clr_gui_listbox_background")f.rect(i+1,j+1,153,l,{r,g,b,a})local O=0;local P=0;local Q=false;for q=1,#K do local r,g,b,a=181,181,181,255;local R=j+q*20-19-N*20;local S=true;if R>j+l then S=false;O=O+1;Q=true elseif R=a4 and m_x<=a4+d[mgui_id][4]and m_y>=a5-25 and m_y<=a5 and d[mgui_id][3]==false then d[mgui_id][3]=true;a7=m_x-a4;a6=m_y-a5+25 end else d[mgui_id][3]=false end end;mgui.item_show=function()if e[1][7]then n_left=e[1][1]n_top=e[1][2]height=e[1][3]width=e[1][4]item_text=e[1][5]mgui_id=e[1][6]s_top=n_top+20;s_height=#item_text*15;mgui.color_aw("gui_combobox_drop1")drawing.block(n_left,s_top,s_height,width)drawing.shadow(n_left,s_top,s_height,width)for q=1,#item_text do if mgui.mouse_mov(n_left,s_top+15*q-14,14,width)then if input.IsButtonDown(1)then c[mgui_id][1]=q;c[mgui_id][2]=false;e[1][7]=false end;mgui.color_aw("gui_combobox_drop3")drawing.block(n_left,s_top+15*q-15,15,width)end;mgui.color_aw("gui_text2")draw.Text(n_left+8,s_top+15*q+1-15,item_text[q])end;if mgui.mouse_mov(n_left,n_top,height,width)then else if input.IsButtonDown(1)then if c[mgui_id][2]==true then c[mgui_id][2]=false;e[1][7]=false end end end end end;mgui.mouse_mov=function(u,v,height,width)m_x,m_y=input.GetMousePos()if m_x>=u and m_x<=u+width and m_y>=v and m_y<=v+height then return true end end;mgui.color_aw=function(a8)r,g,b,a=gui.GetValue("clr_"..a8)draw.Color(r,g,b,a)end;mgui.max_component=function(a9,aa)if c[1]==null then for q=1,aa do table.insert(c,{})end;for q=1,a9 do table.insert(d,{})end end end;drawing={}drawing.block=function(u,v,height,width)draw.FilledRect(u,v,u+width,v+height)end;drawing.block_round=function(u,v,height,width)draw.RoundedRectFill(u,v,u+width,v+height)end;drawing.encircle=function(u,v,height,width)draw.OutlinedRect(u,v,u+width,v+height)end;drawing.encircle_round=function(u,v,height,width)draw.RoundedRect(u,v,u+width,v+height)end;drawing.shadow=function(u,v,height,width)alpha=100;left_s=u;top_s=v;height_s=height;width_s=width;for q=1,1 do alpha=alpha-20;left_s=left_s-1;top_s=top_s-1;height_s=height_s+2;width_s=width_s+2;draw.Color(10,10,10,alpha)drawing.encircle(left_s,top_s,height_s,width_s)end;alpha=20;for q=1,10 do alpha=alpha-2;if alpha<0 then break end;left_s=left_s-1;top_s=top_s-1;height_s=height_s+2;width_s=width_s+2;draw.Color(10,10,10,alpha)drawing.encircle(left_s,top_s,height_s,width_s)end end;mgui.edit=function(u,v,width,w,s,mgui_id,y)if c[mgui_id][1]==null then c[mgui_id]={"",false}e_text=s;c[mgui_id][1]=s else e_text=c[mgui_id][1]end;height=18;n_left=u+d[y][1]n_top=v+d[y][2]if mgui.mouse_mov(n_left,n_top,40,width)and e[1][7]~=true then mgui.color_aw("gui_controls3")else mgui.color_aw("gui_groupbox_background")end;drawing.block(n_left,n_top,18,width)mgui.color_aw("gui_controls1")drawing.block_round(n_left+5,n_top+20,height,width-10)if mgui.mouse_mov(n_left+5,n_top+20,height,width-10)and e[1][7]~=true then mgui.color_aw("gui_controls2")if input.IsButtonDown(1)then mgui.color_aw("gui_controls2")if c[mgui_id][2]==false then c[mgui_id][2]=true end end else if input.IsButtonDown(1)then if c[mgui_id][2]==true then c[mgui_id][2]=false end end;mgui.color_aw("gui_controls3")end;if c[mgui_id][2]==true then mgui.color_aw("gui_controls1")s_text=e_text.."_"else s_text=e_text end;if c[mgui_id][2]==true then if input.IsButtonPressed(8)then e_text=string.sub(e_text,1,string.len(e_text)-1)c[mgui_id][1]=e_text end;in_text=mgui.input_to_text()c_w,c_h=draw.GetTextSize(e_text)if in_text~=""and c_w"}local A=""for q=48,90 do if input.IsButtonPressed(q)then if not input.IsButtonDown(16)and q>=65 and q<=90 then A=string.char(q+32)elseif input.IsButtonDown(16)and ab[q]then A=ab[q]else A=string.char(q)end end end;for q=187,222 do if input.IsButtonPressed(q)then if not input.IsButtonDown(16)and ac[q]~=nil then A=ac[q]elseif input.IsButtonDown(16)and ad[q]~=nil then A=ad[q]else A=string.char(q)end end end;if input.IsButtonPressed(32)then A=" "end;return A end;mgui.itembox=function(u,v,width,s,item_text,ae,mgui_id,y)if c[mgui_id][1]==null then c[mgui_id]={ae,false}else ae=c[mgui_id][1]act_item=c[mgui_id][2]end;height=18;n_left=u+d[y][1]n_top=v+d[y][2]if mgui.mouse_mov(n_left,n_top,45,width)and e[1][7]~=true then mgui.color_aw("gui_controls3")else mgui.color_aw("gui_groupbox_background")end;drawing.block(n_left,n_top,45,width)mgui.color_aw("gui_text2")draw.SetFont(h)draw.Text(n_left+7,n_top+3,s)n_top=n_top+20;n_left=n_left+5;n_width=width-10;mgui.color_aw("gui_controls1")drawing.block_round(n_left,n_top,height,n_width)if mgui.mouse_mov(n_left,n_top,height,width)and e[1][7]~=true then mgui.color_aw("gui_controls2")if input.IsButtonPressed(1)then if c[mgui_id][2]==false then c[mgui_id][2]=true end end else if c[mgui_id][2]==true then mgui.color_aw("gui_controls2")else mgui.color_aw("gui_controls3")end end;drawing.encircle_round(n_left,n_top,height,n_width)mgui.color_aw("gui_text2")draw.SetFont(h)draw.Text(n_left+8,n_top+2,item_text[ae])if c[mgui_id][2]==true then mgui.item(n_left,n_top,height,n_width,item_text,mgui_id)end;return c[mgui_id][1],item_text[c[mgui_id][1]]end 16 | 17 | -- Define all the colors valve supports 18 | local colorCodes = { 19 | ['white'] = "\x01", 20 | ['red'] = "\x02", 21 | ['purple'] = "\x03", 22 | ['green'] = "\x04", 23 | ['light_green'] = "\x05", 24 | ['turquoise'] = "\x06", 25 | ['light_red'] = "\x07", 26 | ['gray'] = "\x08", 27 | ['yellow'] = "\x09", 28 | ['gray2'] = "\x0A", 29 | ['light_blue'] = "\x0B", 30 | ['grayPurpleSpec'] = "\x0C", 31 | ['blue'] = "\x0D", 32 | ['pink'] = "\x0E", 33 | ['dark_orange'] = "\x0F", 34 | ['orange'] = "\x10" 35 | } 36 | 37 | local colorNames = { 38 | 'white', 39 | 'red', 40 | 'purple', 41 | 'green', 42 | 'light_green', 43 | 'turquoise', 44 | 'light_red', 45 | 'gray', 46 | 'yellow', 47 | 'gray2', 48 | 'light_blue', 49 | 'grayPurpleSpec', 50 | 'blue', 51 | 'pink', 52 | 'dark_orange', 53 | 'orange' 54 | } 55 | 56 | local colorCodeToHex = { 57 | ['\x01'] = 'FCFCFC', 58 | ['\x02'] = 'FB0200', 59 | ['\x03'] = 'B981EE', 60 | ['\x04'] = '40F840', 61 | ['\x05'] = 'B8F687', 62 | ['\x06'] = 'A1FC45', 63 | ['\x07'] = 'FF4641', 64 | ['\x08'] = 'C5C8CF', 65 | ['\x09'] = 'F1E776', 66 | ['\x0A'] = 'B1C3D9', 67 | ['\x0B'] = '629CDB', 68 | ['\x0C'] = '4B69FF', 69 | ['\x0D'] = 'AEC0D6', 70 | ['\x0E'] = 'D22CE4', 71 | ['\x0F'] = 'E94B4C', 72 | ['\x10'] = 'DFA93D', 73 | } 74 | 75 | local colorEscapes = { 76 | "\x01", 77 | "\x02", 78 | "\x03", 79 | "\x04", 80 | "\x05", 81 | "\x06", 82 | "\x07", 83 | "\x08", 84 | "\x09", 85 | "\x0A", 86 | "\x0B", 87 | "\x0C", 88 | "\x0D", 89 | "\x0E", 90 | "\x0F", 91 | "\x10" 92 | } 93 | 94 | -- Define vars to allow us to enable silent name 95 | local silentName, wait = false, 0; 96 | local currentName = ''; 97 | local menuPressed = 1; 98 | 99 | -- Changes the name silently 100 | local function makeNameChangerSilent() 101 | if (silentName) then 102 | return 103 | end 104 | gui.SetValue("msc_namestealer_enable", 1); 105 | gui.SetValue("msc_namestealer_interval", 5); 106 | if (wait == 0) then 107 | wait = 1; 108 | end 109 | if wait > 0 then 110 | wait = wait - globals.FrameTime(); 111 | return 112 | end 113 | client.SetConVar("name", ' ' .. currentName .. colorCodes.white .. ' ', false); 114 | silentName = true; 115 | gui.SetValue("msc_namestealer_enable", 0); 116 | gui.SetValue("msc_namestealer_interval", 0); 117 | end 118 | 119 | local function splitIntoTable(input) 120 | local output = {} 121 | local escapesString = ''; 122 | for i = 1, #colorEscapes do 123 | escapesString = escapesString .. colorEscapes[i]; 124 | end 125 | for code, text in (input):gmatch('([' .. escapesString .. '])([^' .. escapesString .. ']*)') do 126 | table.insert(output, { code, text }) 127 | end 128 | return output 129 | end 130 | 131 | local function validHexColor(color) 132 | return nil ~= (color:find("^%x%x%x%x%x%x$") or color:find("^%x%x%x$")); 133 | end 134 | 135 | local function hexToRGB(hex) 136 | hex = hex:gsub("#", ""); 137 | local validHex = validHexColor(hex); 138 | if (validHex == nil) then 139 | validHex = "f62222" 140 | end 141 | local rgb = {}; 142 | if hex:len() == 3 then 143 | rgb[1] = (tonumber("0x" .. hex:sub(1, 1) .. hex:sub(1, 1))); 144 | rgb[2] = (tonumber("0x" .. hex:sub(2, 2) .. hex:sub(2, 2))); 145 | rgb[3] = (tonumber("0x" .. hex:sub(3, 3) .. hex:sub(3, 3))); 146 | return rgb[1], rgb[2], rgb[3]; 147 | elseif (hex:len() == 6) then 148 | rgb[1] = (tonumber("0x" .. hex:sub(1, 2))); 149 | rgb[2] = (tonumber("0x" .. hex:sub(3, 4))); 150 | rgb[3] = (tonumber("0x" .. hex:sub(5, 6))); 151 | return rgb[1], rgb[2], rgb[3]; 152 | end 153 | return 255, 0, 0 154 | end 155 | 156 | local function parseCurrentName() 157 | local lines = {}; 158 | for _, v in ipairs(splitIntoTable(currentName)) do 159 | local r, g, b = hexToRGB(colorCodeToHex[v[1]]) 160 | table.insert(lines, { r, g, b, v[2] }); 161 | end 162 | mgui.multiColorLabel(65, 25, lines, 1); 163 | end 164 | 165 | callbacks.Register("Draw", function() 166 | local lp = entities.GetLocalPlayer(); 167 | if (lp ~= nil and lp:IsAlive()) then 168 | makeNameChangerSilent(); 169 | end 170 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 171 | menuPressed = menuPressed == 0 and 1 or 0; 172 | end 173 | if (menuPressed == 0) then 174 | return 175 | end ; 176 | mgui.max_component(10, 100) 177 | mgui.menu(25, 25, 160, 300, "Colored Name", 1); 178 | mgui.panel(15, 15, 130, 270, "", 2, 1); 179 | local previewPadding = 15; 180 | local itembox_index, itembox_text = mgui.itembox(25, previewPadding + 30, 70, "Select Color", colorNames, 1, 3, 1); 181 | local currentColor = colorCodes[itembox_text]; 182 | local name = mgui.edit(90, previewPadding + 30, 150, "Name", "", 4, 1); 183 | local nameWithColor = currentColor .. name; 184 | local addBtn = mgui.button(240, previewPadding + 52, 15, 35, "Add", 5, 1); 185 | if (addBtn) then 186 | currentName = currentName .. nameWithColor; 187 | end 188 | local applyBtn = mgui.button(30, previewPadding + 80, 25, 115, "Apply Name Change", 6, 1); 189 | if(applyBtn) then 190 | silentName = false; 191 | wait = 0; 192 | end 193 | local undoBtn = mgui.button(155, previewPadding + 80, 25, 115, "Undo Last Change", 6, 1); 194 | if(undoBtn) then 195 | local nameTable = splitIntoTable(currentName); 196 | currentName = ''; 197 | for i, v in ipairs(nameTable) do 198 | if(i ~= #nameTable) then 199 | currentName = currentName .. v[1] .. v[2]; 200 | end 201 | end 202 | end 203 | mgui.label(30, 25, "Name: ", 7, 1); 204 | parseCurrentName(); 205 | mgui.menu_mouse(1); 206 | mgui.item_show(); 207 | end); 208 | 209 | 210 | -------------------------------------------------------------------------------- /[LuaScript] Crash Server.lua: -------------------------------------------------------------------------------- 1 | local references = { 2 | aimware = gui.Reference("MENU"), 3 | }; 4 | local windowW, windowH = 200, 100; 5 | local window = gui.Window("lynx_server_crasher" .. "tabs", "Server Crasher", 100, 150, windowW, windowH); 6 | gui.Button(window, "Crash server", function() 7 | client.Command("survival_equip spawn_equip_healthshot", true); 8 | end) 9 | 10 | callbacks.Register("Draw", function() 11 | window:SetActive(references.aimware:IsActive()); 12 | end); 13 | -------------------------------------------------------------------------------- /[LuaScript] Fake Vac Ban Message.lua: -------------------------------------------------------------------------------- 1 | local gui_reference = gui.Reference("MISC", "General", "Main"); 2 | gui.Text(gui_reference, "Fake Vac Name"); 3 | local nameChanger = gui.Editbox(gui_reference, "rab_vac_fake_name", ""); 4 | local WAIT_FOR_NAMESTEALER = 2; 5 | local old_name = ""; 6 | local is_waiting = false; 7 | local wait = 0; 8 | callbacks.Register("Draw", function() 9 | if nameChanger:GetValue() ~= old_name then 10 | gui.SetValue("msc_namestealer_enable", 1); 11 | gui.SetValue("msc_namestealer_interval", 5); 12 | old_name = nameChanger:GetValue(); 13 | wait = WAIT_FOR_NAMESTEALER; 14 | is_waiting = true; 15 | end 16 | if is_waiting == true and wait > 0 then 17 | wait = wait - globals.FrameTime() 18 | elseif is_waiting == true then 19 | is_waiting = false 20 | wait = 0 21 | local new_name_entered = nameChanger:GetValue(); 22 | local new_name = " \x01\x0B"; 23 | if (new_name_entered ~= nil and new_name_entered ~= "") then 24 | new_name = string.char(32, 1, 11); 25 | old_name = nameChanger:GetValue(); 26 | new_name = new_name .. string.char(15) .. nameChanger:GetValue() .. ' has been permanently banned from official CS:GO servers.'; 27 | while (#new_name < 400) do 28 | new_name = new_name .. '\nᅠ'; 29 | end 30 | end 31 | new_name = new_name .. "\x01"; 32 | client.SetConVar("name", new_name, false) 33 | gui.SetValue("msc_namestealer_enable", 0) 34 | gui.SetValue("msc_namestealer_interval", 0) 35 | end 36 | end) -------------------------------------------------------------------------------- /[LuaScript] HitLog.lua: -------------------------------------------------------------------------------- 1 | local activeHitLogs = {}; 2 | local font = draw.CreateFont('Arial', 14, 14); 3 | 4 | local function HitGroup(INT_HITGROUP) 5 | if INT_HITGROUP == nil then 6 | return; 7 | elseif INT_HITGROUP == 0 then 8 | return "body"; 9 | elseif INT_HITGROUP == 1 then 10 | return "head"; 11 | elseif INT_HITGROUP == 2 then 12 | return "chest"; 13 | elseif INT_HITGROUP == 3 then 14 | return "stomach"; 15 | elseif INT_HITGROUP == 4 then 16 | return "left arm"; 17 | elseif INT_HITGROUP == 5 then 18 | return "right arm"; 19 | elseif INT_HITGROUP == 6 then 20 | return "left leg"; 21 | elseif INT_HITGROUP == 7 then 22 | return "right leg"; 23 | elseif INT_HITGROUP == 10 then 24 | return "body"; 25 | end 26 | end 27 | 28 | local function add(time, ...) 29 | table.insert(activeHitLogs, { 30 | ["text"] = { ... }, 31 | ["time"] = time, 32 | ["delay"] = globals.RealTime() + time, 33 | ["color"] = {{150, 185, 1}, {16, 0, 0}}, 34 | ["x_pad"] = -11, 35 | ["x_pad_b"] = -11, 36 | }) 37 | end 38 | 39 | local function getMultiColorTextSize(lines) 40 | local fw = 0 41 | local fh = 0; 42 | for i = 1, #lines do 43 | draw.SetFont(font); 44 | local w, h = draw.GetTextSize(lines[i][4]) 45 | fw = fw + w 46 | fh = h; 47 | end 48 | return fw, fh 49 | end 50 | 51 | local function drawMultiColorText(x, y, lines) 52 | local x_pad = 0 53 | for i = 1, #lines do 54 | local line = lines[i]; 55 | local r, g, b, msg = line[1], line[2], line[3], line[4] 56 | draw.SetFont(font); 57 | draw.Color(r, g, b, 255); 58 | draw.Text(x + x_pad, y, msg); 59 | local w, _ = draw.GetTextSize(msg) 60 | x_pad = x_pad + w 61 | end 62 | end 63 | 64 | local function showLog(count, color, text, layer) 65 | local y = 15 + (42 * (count - 1)); 66 | local w, h = getMultiColorTextSize(text) 67 | local mw = w < 150 and 150 or w 68 | if globals.RealTime() < layer.delay then 69 | if layer.x_pad < mw then layer.x_pad = layer.x_pad + (mw - layer.x_pad) * 0.05 end 70 | if layer.x_pad > mw then layer.x_pad = mw end 71 | if layer.x_pad > mw / 1.09 then 72 | if layer.x_pad_b < mw - 6 then 73 | layer.x_pad_b = layer.x_pad_b + ((mw - 6) - layer.x_pad_b) * 0.05 74 | end 75 | end 76 | if layer.x_pad_b > mw - 6 then 77 | layer.x_pad_b = mw - 6 78 | end 79 | else 80 | if layer.x_pad_b > -11 then 81 | layer.x_pad_b = layer.x_pad_b - (((mw - 5) - layer.x_pad_b) * 0.05) + 0.01 82 | end 83 | if layer.x_pad_b < (mw - 11) and layer.x_pad >= 0 then 84 | layer.x_pad = layer.x_pad - (((mw + 1) - layer.x_pad) * 0.05) + 0.01 85 | end 86 | if layer.x_pad < 0 then 87 | table.remove(activeHitLogs, count) 88 | end 89 | end 90 | local c1 = color[1] 91 | local c2 = color[2] 92 | local a = 255; 93 | draw.Color(c1[1], c1[2], c1[3], a); 94 | draw.FilledRect(layer.x_pad - layer.x_pad, y, layer.x_pad + 28, (h + y) + 20); 95 | draw.Color(c2[1], c2[2], c2[3], a); 96 | draw.FilledRect(layer.x_pad_b - layer.x_pad, y, layer.x_pad_b + 22, (h + y) + 20); 97 | drawMultiColorText(layer.x_pad_b - mw + 18, y + 9, text) 98 | end 99 | 100 | callbacks.Register('FireGameEvent', function(e) 101 | local en = e:GetName(); 102 | local isHurt = en == 'player_hurt'; 103 | local weaponFired = en == 'weapon_fire'; 104 | if isHurt == false and weaponFired == false then 105 | return 106 | end 107 | local localPlayer = entities.GetLocalPlayer(); 108 | local user = entities.GetByUserID(e:GetInt('userid')); 109 | if (localPlayer == nil or user == nil) then 110 | return; 111 | end 112 | if isHurt then 113 | local attacker = entities.GetByUserID(e:GetInt('attacker')); 114 | local remainingHealth = e:GetInt('health'); 115 | local damageDone = e:GetInt('dmg_health'); 116 | if (attacker == nil) then 117 | return; 118 | end 119 | if (localPlayer:GetIndex() == attacker:GetIndex()) then 120 | add(5, 121 | { 255, 255, 255, "Hit " }, 122 | { 150, 185, 1, string.sub(user:GetName(), 0, 28) }, 123 | { 255, 255, 255, " in the " }, 124 | { 150, 185, 1, HitGroup(e:GetInt('hitgroup')) }, 125 | { 255, 255, 255, " for " }, 126 | { 150, 185, 1, damageDone }, 127 | { 255, 255, 255, " damage (" }, 128 | { 150, 185, 1, remainingHealth .. " health remaining" }, 129 | { 255, 255, 255, ")" }) 130 | end 131 | elseif weaponFired then 132 | if (localPlayer:GetIndex() == user:GetIndex() and target ~= nil) then 133 | -- todo implement miss shots 134 | end 135 | end 136 | end); 137 | 138 | callbacks.Register('Draw', function() 139 | for index, hitlog in pairs(activeHitLogs) do 140 | showLog(index, hitlog.color, hitlog.text, hitlog) 141 | end 142 | end); -------------------------------------------------------------------------------- /[LuaScript] LOL Combo Kill Messages.lua: -------------------------------------------------------------------------------- 1 | local svgData = http.Get("https://rab.wtf/csgo/aimware/lol_kill_img.svg"); 2 | local imgRGBA, imgWidth, imgHeight = common.RasterizeSVG(svgData); 3 | local texture = draw.CreateTexture(imgRGBA, imgWidth, imgHeight); 4 | local font = draw.CreateFont("BeaufortforLOL-Bold", 100, 100); 5 | local kill_messages = { "DOUBLE KILL", "TRIPLE KILL", "QUADRA KILL", "PENTA KILL" }; 6 | local kill_table = {}; 7 | local kills, last_kill = 0, 0; 8 | 9 | local function getKillMessageForKill(kill) 10 | local killmessage = kill_messages[kill]; 11 | if (killmessage == nil) then killmessage = "" end; 12 | return killmessage .. '!'; 13 | end 14 | 15 | local function playSoundForKill(kill) 16 | local killmessage = kill_messages[kill]; 17 | if (killmessage == nil) then return end; 18 | local soundFile = string.lower(killmessage); 19 | soundFile = soundFile:gsub(" ", "_") 20 | print("soundFile: " .. soundFile); 21 | client.Command("playvol *rab_lol/" .. soundFile .. ".mp3 1", true); 22 | end 23 | 24 | callbacks.Register('FireGameEvent', function(e) 25 | local en = e:GetName(); 26 | if (en == "round_start" or en == "game_start") then kills = 0; end; 27 | if (en ~= "player_death") then return end; 28 | local user = entities.GetByUserID(e:GetInt('userid')); 29 | local localPlayer = entities.GetLocalPlayer(); 30 | if (user ~= nil) then 31 | if (localPlayer:GetIndex() == user:GetIndex()) then kills = 0; end; 32 | end; 33 | local attacker = entities.GetByUserID(e:GetInt('attacker')); 34 | if (attacker == nil) then return end; 35 | if (localPlayer:GetIndex() == attacker:GetIndex()) then 36 | if (kills > 10) then kills = 0 end; 37 | kills = kills + 1; 38 | if ((globals.RealTime()) > last_kill) then 39 | kills = 0; 40 | end; 41 | last_kill = globals.RealTime() + 3; 42 | kill_table[1] = { kills, globals.RealTime() + 3, false }; 43 | end; 44 | end); 45 | 46 | callbacks.Register("Draw", function() 47 | local w, h = draw.GetScreenSize(); 48 | local x = (w - imgWidth) / 2; 49 | local y = (h - imgHeight) / 4; 50 | if (kills == 0 or kills > 5 or #kill_table == 0) then return end; 51 | local kill = kill_table[1]; 52 | if (globals.RealTime() > kill[2]) then 53 | table.remove(kill_table, 1); 54 | return; 55 | end; 56 | local text = getKillMessageForKill(kills); 57 | if (text == "!") then return end; 58 | if (kill[3] ~= true) then 59 | playSoundForKill(kills); 60 | kill_table[1] = { kill[1], kill[2], true }; 61 | end; 62 | draw.SetTexture(texture); 63 | draw.FilledRect(x, y, x + imgWidth, y + imgHeight); 64 | draw.SetFont(font); 65 | local tw, th = draw.GetTextSize(text); 66 | draw.Color(196, 166, 116, 255); 67 | draw.TextShadow(((w - imgWidth)) / 2, ((h - imgHeight) + th) / 3, text) 68 | end); 69 | 70 | 71 | client.AllowListener('player_death'); -------------------------------------------------------------------------------- /[LuaScript] Legit AA Min.lua: -------------------------------------------------------------------------------- 1 | --[=====[ 2 | Legit Anti-Aim Made by Rab(SamzSakerz#4758) 3 | __ __ 4 | |__) /\ |__) 5 | | \ /~~\ |__) 6 | __ __ ___ ___ ___ 7 | / ` |__) |__ /\ | |__ 8 | \__, | \ |___ /~~\ | |___ 9 | ___ __ ___ ___ 10 | | | |__| /\ | /__` |\ | |__ \_/ | 11 | |/\| | | /~~\ | .__/ | \| |___ / \ | 12 | 13 | --]=====] 14 | local a=draw.CreateFont('Marlett',45,700)local b=true;local c=gui.Reference('RAGE','Main','Anti-aim main')local d=gui.Checkbox(c,'rab_legitaa_enable','Legit AA',false)local e=gui.Keybox(c,'rbot_legitaa_right','Right Key',0)local f=gui.Keybox(c,'rbot_legitaa_left','Left Key',0)local function g(h)if h~=0 then return input.IsButtonDown(h)end end;local function i()if g(f:GetValue())then b=true end;if g(e:GetValue())then b=false end end;local function j()local k,l=draw.GetScreenSize()local m=b and 2 or 3;gui.SetValue('rbot_antiaim_stand_desync',m)gui.SetValue('rbot_antiaim_move_desync',m)draw.SetFont(a)draw.Color(249,0,0,255)draw.Text(k/2+(b and 60 or-100),l/2,b and'4'or'3')draw.TextShadow(k/2+(b and 60 or-100),l/2,b and'4'or'3')end;local function n()local o={{'at_targets',0},{'autodir',0},{'move_pitch_real',0},{'move_real_add',-180},{'stand_pitch_real',0},{'stand_real',1},{'stand_velocity',250},{'stand_real_add',-180}}for p,q in ipairs(o)do gui.SetValue('rbot_antiaim_'..q[1],q[2])end end;callbacks.Register('Draw',function()if d:GetValue()then i()j()n()end end) -------------------------------------------------------------------------------- /[LuaScript] Legit AA.lua: -------------------------------------------------------------------------------- 1 | --[=====[ 2 | Legit Anti-Aim Made by Rab(SamzSakerz#4758) 3 | __ __ 4 | |__) /\ |__) 5 | | \ /~~\ |__) 6 | __ __ ___ ___ ___ 7 | / ` |__) |__ /\ | |__ 8 | \__, | \ |___ /~~\ | |___ 9 | ___ __ ___ ___ 10 | | | |__| /\ | /__` |\ | |__ \_/ | 11 | |/\| | | /~~\ | .__/ | \| |___ / \ | 12 | 13 | --]=====] 14 | 15 | local direction = true; 16 | local iconFont = draw.CreateFont('Marlett', 45, 700); 17 | local antiAimRef = gui.Reference('LEGIT', 'Extra'); 18 | gui.Text(antiAimRef, " Legit Anti Aim"); 19 | local right = gui.Keybox(antiAimRef, 'lbot_legitaa_right', 'Right Key', 0); 20 | local left = gui.Keybox(antiAimRef, 'lbot_legitaa_left', 'Left Key', 0); 21 | 22 | local function isButtonDown(key) 23 | return key > 0 and input.IsButtonDown(key); 24 | end 25 | 26 | local func = function() 27 | local lp = entities.GetLocalPlayer(); 28 | if (lp == nil or not lp:IsAlive()) then 29 | return 30 | end 31 | 32 | -- Update Values 33 | local lbot_key = gui.GetValue('lbot_key') 34 | gui.SetValue('rbot_active', not ((lbot_key > 0 and input.IsButtonPressed(lbot_key)) or isButtonDown(lbot_key))); 35 | 36 | if isButtonDown(left:GetValue()) then 37 | direction = true; 38 | end 39 | if isButtonDown(right:GetValue()) then 40 | direction = false; 41 | end 42 | 43 | -- Update Desync 44 | local w, h = draw.GetScreenSize(); 45 | local desyncValue = direction and 2 or 3; 46 | gui.SetValue('rbot_antiaim_stand_desync', desyncValue); 47 | gui.SetValue('rbot_antiaim_move_desync', desyncValue); 48 | draw.SetFont(iconFont); 49 | draw.Color(249, 0, 0, 255); 50 | draw.Text(w / 2 + (direction and -100 or 60), h / 2, direction and '4' or '3'); 51 | draw.TextShadow(w / 2 + (direction and -100 or 60), h / 2, direction and '4' or '3'); 52 | 53 | -- Update Values 54 | for _, v in ipairs({ 55 | { 'at_targets', 0 }, 56 | { 'autodir', 0 }, 57 | { 'move_pitch_real', 0 }, 58 | { 'move_real_add', -180 }, 59 | { 'stand_pitch_real', 0 }, 60 | { 'stand_real', 1 }, 61 | { 'stand_velocity', 250 }, 62 | { 'stand_real_add', -180 }, 63 | }) do 64 | gui.SetValue('rbot_antiaim_' .. v[1], v[2]); 65 | end 66 | end 67 | 68 | callbacks.Register('Draw', func); -------------------------------------------------------------------------------- /[LuaScript] Material-Speclist.lua: -------------------------------------------------------------------------------- 1 | --Made by Rab(SamzSakerz#4758) 2 | local mouseX, mouseY, x, y, dx, dy, w, h, menuPressed = 0, 0, 25, 660, 0, 0, 300, 50, 1; 3 | local shouldDrag = false; 4 | local font_main = draw.CreateFont("Trench", 22, 22); 5 | local font_spec = draw.CreateFont("Arial", 20, 20); 6 | local topbarSize = 25; 7 | local ref = gui.Reference('MISC', "GENERAL", "Extra"); 8 | local showMenu = gui.Checkbox(ref, "rab_material_spec_list", "Show Material Spectators Menu", false); 9 | 10 | --GUI Starts here 11 | local mainWindow = gui.Window("rab_material_spec_list", "Material Spectators", 50, 50, 165, 180); 12 | local settings = gui.Groupbox(mainWindow, "Settings", 13, 13, 140, 120); 13 | local masterSwitch = gui.Checkbox(settings, "rab_material_spec_masterswitch", "Master Switch", false); 14 | local theme = gui.Combobox(settings, "rab_material_spec_theme", "Theme", "Light", "Dark", "Amoled"); 15 | local hideBots = gui.Checkbox(settings, "rab_material_spec_hide_bots", "Hide Bots", false); 16 | local primary_color = { { 255, 255, 255 }, { 33, 33, 33 }, { 0, 0, 0 } }; 17 | local secondary_color = { { 238, 238, 238 }, { 44, 44, 44 }, { 0, 0, 0 } } 18 | local text_color = { { 0, 0, 0 }, { 255, 255, 255 }, { 255, 255, 255 } } 19 | 20 | --This gets a player array of all the specatators that is specating our local player thanks to Cheeseot 21 | local function getSpectators() 22 | local spectators = {}; 23 | local lp = entities.GetLocalPlayer(); 24 | if lp ~= nil then 25 | local players = entities.FindByClass("CCSPlayer"); 26 | local specI = 1; 27 | for i = 1, #players do 28 | local player = players[i]; 29 | if player ~= lp and player:GetHealth() <= 0 then 30 | local name = player:GetName(); 31 | if player:GetPropEntity("m_hObserverTarget") ~= nil then 32 | local playerindex = player:GetIndex(); 33 | local ping = entities.GetPlayerResources():GetPropInt("m_iPing", playerindex); 34 | local shouldAdd = true; 35 | if(ping == 0) then 36 | if (hideBots:GetValue()) then 37 | shouldAdd = false; 38 | end 39 | end 40 | if name ~= "GOTV" and playerindex ~= 1 then 41 | local target = player:GetPropEntity("m_hObserverTarget"); 42 | if target:IsPlayer() then 43 | local targetindex = target:GetIndex(); 44 | local myindex = client.GetLocalPlayerIndex(); 45 | if lp:IsAlive() then 46 | if targetindex == myindex and shouldAdd then 47 | spectators[specI] = player; 48 | specI = specI + 1; 49 | end 50 | end 51 | end 52 | end 53 | end 54 | end 55 | end 56 | end 57 | return spectators; 58 | end 59 | 60 | --Adding this makes the top-bar draggable thanks to Ruppet. 61 | local function dragFeature() 62 | if input.IsButtonDown(1) then 63 | mouseX, mouseY = input.GetMousePos(); 64 | if shouldDrag then 65 | x = mouseX - dx; 66 | y = mouseY - dy; 67 | end 68 | if mouseX >= x and mouseX <= x + w and mouseY >= y and mouseY <= y + 40 then 69 | shouldDrag = true; 70 | dx = mouseX - x; 71 | dy = mouseY - y; 72 | end 73 | else 74 | shouldDrag = false; 75 | end 76 | end 77 | 78 | local function getFadeRGB(speed) 79 | local r = math.floor(math.sin((globals.RealTime()) * speed) * 127 + 128) 80 | local g = math.floor(math.sin((globals.RealTime()) * speed + 2) * 127 + 128) 81 | local b = math.floor(math.sin((globals.RealTime()) * speed + 4) * 127 + 128) 82 | return { r, g, b }; 83 | end 84 | 85 | --This draws the nice looking material window designed and developed by Rab 86 | local function drawWindow(spectators) 87 | local h = h + (spectators * 17); 88 | local currentTheme = theme:GetValue() + 1; 89 | local rgb = primary_color[currentTheme]; 90 | draw.Color(rgb[1], rgb[2], rgb[3], 255) 91 | draw.FilledRect(x, y, x + w, y + h); 92 | rgb = text_color[currentTheme]; 93 | draw.Color(rgb[1], rgb[2], rgb[3], 255); 94 | draw.SetFont(font_main); 95 | draw.Text(x + 10, y + topbarSize / 8, "Spectators") 96 | rgb = getFadeRGB(1); 97 | draw.Color(rgb[1], rgb[2], rgb[3], 255) 98 | draw.FilledRect(x, y + topbarSize, x + w, y + h); 99 | rgb = secondary_color[currentTheme]; 100 | draw.Color(rgb[1], rgb[2], rgb[3], 255) 101 | draw.FilledRect(x, y + topbarSize + 5, x + w, y + h); 102 | end 103 | 104 | local function drawSpectators(spectators) 105 | for index, player in pairs(spectators) do 106 | draw.SetFont(font_spec); 107 | local currentTheme = theme:GetValue() + 1; 108 | local rgb = text_color[currentTheme]; 109 | draw.Color(rgb[1], rgb[2], rgb[3], 255); 110 | draw.Text(x + 15, (y + topbarSize - 5) + (index * 17), player:GetName()) 111 | end; 112 | end 113 | 114 | local function handleGUI() 115 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 116 | menuPressed = menuPressed == 0 and 1 or 0; 117 | end 118 | if (showMenu:GetValue()) then 119 | mainWindow:SetActive(menuPressed); 120 | else 121 | mainWindow:SetActive(0); 122 | end 123 | end 124 | 125 | callbacks.Register("Draw", function() 126 | handleGUI(); 127 | if (masterSwitch:GetValue() ~= true) then return end; 128 | dragFeature(); 129 | local spectators = getSpectators(); 130 | drawWindow(#spectators); 131 | drawSpectators(spectators); 132 | end) -------------------------------------------------------------------------------- /[LuaScript] Mind Control.lua: -------------------------------------------------------------------------------- 1 | --Mind Control made by Rab(SamzSakerz#4758) 2 | if (SenseUI == nil) then RunScript("senseui.lua"); end; 3 | local selected, scroll, shouldCallVote, shouldStealName, showBots, showEnemies, showTeam, showGradient, shouldScramble, shouldSwitch, shouldChangeMap, nameToSteal, alreadyPressedKicked, alreadyPressedScramble, alreadyPressedSwitch, alreadyPressedChangeMap, shouldClearNameHistory = 0, 0, false, false, false, true, true, true, false, false, false, nil, false, false, false, false, false; 4 | 5 | local oldName = client.GetConVar("name"); 6 | local loaded = false; 7 | 8 | local function isBot(player) 9 | return entities.GetPlayerResources():GetPropInt("m_iBotDifficulty", player:GetIndex()) > 0; 10 | end 11 | 12 | local function updateShouldAdd(bool, shouldAdd) 13 | if (bool ~= true) then 14 | shouldAdd = false; 15 | end 16 | return shouldAdd; 17 | end 18 | 19 | local function fetchPlayers() 20 | local playerNames, playerIndexs, players, lp, index = {}, {}, entities.FindByClass("CCSPlayer"), entities.GetLocalPlayer(), 1; 21 | for i = 1, #players do 22 | local player = players[i]; 23 | local pIndex = player:GetIndex(); 24 | if (player:IsPlayer() and (pIndex ~= lp:GetIndex() and pIndex ~= 1)) then 25 | local teamNumber = player:GetTeamNumber(); 26 | local lTeamNumber = lp:GetTeamNumber(); 27 | local shouldAdd = true; 28 | if (teamNumber ~= lTeamNumber) then 29 | shouldAdd = updateShouldAdd(showEnemies, shouldAdd); 30 | end; 31 | if (teamNumber == lTeamNumber) then 32 | shouldAdd = updateShouldAdd(showTeam, shouldAdd); 33 | end; 34 | if (isBot(player)) then 35 | shouldAdd = updateShouldAdd(showBots, shouldAdd); 36 | end; 37 | if (shouldAdd) then 38 | playerNames[index] = player:GetName(); 39 | playerIndexs[index] = pIndex; 40 | index = index + 1; 41 | end; 42 | end; 43 | end; 44 | return { playerNames, playerIndexs }; 45 | end 46 | 47 | local function stealName() 48 | local lp = entities.GetLocalPlayer(); 49 | if (lp == nil) then nameToSteal = nil; return end; 50 | if (nameToSteal ~= nil) then 51 | client.SetConVar("name", nameToSteal, 0) 52 | end; 53 | end 54 | 55 | 56 | callbacks.Register("Draw", function() 57 | stealName(); 58 | if SenseUI.BeginWindow("rab_mindcontrol_wnd", 50, 50, 700, 300) then 59 | SenseUI.DrawTabBar(); 60 | if (showGradient) then 61 | SenseUI.AddGradient(); 62 | end; 63 | SenseUI.SetWindowMoveable(true); 64 | SenseUI.SetWindowOpenKey(SenseUI.Keys.insert); 65 | local players = fetchPlayers(); 66 | if SenseUI.BeginGroup("rab_mindcontrol_players_info", "Players", 25, 25, 205, 250) then 67 | selected, scroll = SenseUI.Listbox(players[1], 11, false, selected, nil, scroll); 68 | SenseUI.EndGroup(); 69 | end; 70 | if SenseUI.BeginGroup("rab_mindcontrol_player_info", "Player Info", 255, 25, 205, 150) then 71 | local lp = entities.GetLocalPlayer(); 72 | if (players[2] ~= nil) then 73 | local player = entities.GetByIndex(players[2][selected]); 74 | if (player ~= nil) then 75 | local playerIndex = player:GetIndex(); 76 | SenseUI.Label("Name: " .. player:GetName()); 77 | SenseUI.Label("Index: " .. playerIndex); 78 | local team = "Unknown"; 79 | local teamNumber = player:GetTeamNumber(); 80 | if (teamNumber == 1) then 81 | team = "Spectator"; 82 | elseif (teamNumber == 2) then 83 | team = "Terrorist"; 84 | elseif (teamNumber == 3) then 85 | team = "Counter Terrorist"; 86 | end; 87 | SenseUI.Label("Team: " .. team); 88 | SenseUI.Label("Team Number: " .. teamNumber); 89 | if (lp:GetTeamNumber() == teamNumber) then 90 | shouldCallVote = SenseUI.Button("Callvote Kick", 120, 25); 91 | if shouldCallVote then 92 | if (alreadyPressedKicked ~= true) then 93 | local player_info = client.GetPlayerInfo(playerIndex); 94 | client.Command("callvote kick " .. player_info['UserID']); 95 | alreadyPressedKicked = true; 96 | end; 97 | else 98 | alreadyPressedKicked = false; 99 | end; 100 | end; 101 | shouldStealName = SenseUI.Button("Steal Name", 120, 25); 102 | if shouldStealName then 103 | nameToSteal = '​' .. player:GetName(); 104 | end; 105 | end; 106 | end; 107 | SenseUI.EndGroup(); 108 | end; 109 | if SenseUI.BeginGroup("rab_about_mindcontrol", "About Mind Control", 255, 205, 205, 80) then 110 | SenseUI.Label("Author: Rab"); 111 | SenseUI.Label("Author Discrd: SamzSakerz#4758"); 112 | SenseUI.Label("Credits: SenseUI (For The GUI)"); 113 | SenseUI.EndGroup(); 114 | end; 115 | if SenseUI.BeginGroup("rab_mindcontrol_settings", "Settings", 480, 25, 205, 100) then 116 | showGradient = SenseUI.Checkbox("Show Topbar Gradient", showGradient); 117 | SenseUI.Label("Player List Settings", true) 118 | showBots = SenseUI.Checkbox("Show Bots", showBots); 119 | showEnemies = SenseUI.Checkbox("Show Enemies", showEnemies); 120 | showTeam = SenseUI.Checkbox("Show Team", showTeam); 121 | SenseUI.EndGroup(); 122 | end; 123 | if SenseUI.BeginGroup("rab_mindcontrol_misc", "Misc", 480, 150, 205, 130) then 124 | shouldScramble = SenseUI.Button("Scramble Teams", 120, 22); 125 | if shouldScramble then 126 | if (alreadyPressedScramble ~= true) then 127 | client.Command("callvote ScrambleTeams"); 128 | alreadyPressedScramble = true; 129 | end; 130 | else 131 | alreadyPressedScramble = false; 132 | end; 133 | shouldSwitch = SenseUI.Button("Switch Teams", 120, 22); 134 | if shouldSwitch then 135 | if (alreadyPressedSwitch ~= true) then 136 | client.Command("callvote SwapTeams"); 137 | alreadyPressedSwitch = true; 138 | end; 139 | else 140 | alreadyPressedSwitch = false; 141 | end; 142 | shouldChangeMap = SenseUI.Button("Change Level", 120, 22); 143 | local mapName = engine.GetMapName(); 144 | if shouldChangeMap and mapName ~= nil then 145 | if (alreadyPressedChangeMap ~= true) then 146 | client.Command("callvote ChangeLevel " .. mapName); 147 | alreadyPressedChangeMap = true; 148 | end; 149 | else 150 | alreadyPressedChangeMap = false; 151 | end; 152 | shouldClearNameHistory = SenseUI.Button("Restore Name", 120, 22); 153 | if shouldClearNameHistory then 154 | nameToSteal = oldName; 155 | end; 156 | SenseUI.EndGroup(); 157 | end; 158 | SenseUI.EndWindow(); 159 | end; 160 | end); 161 | 162 | -------------------------------------------------------------------------------- /[LuaScript] Name Changer.lua: -------------------------------------------------------------------------------- 1 | --[=====[ 2 | Name Changer Made by Rab(SamzSakerz#4758) 3 | __ __ 4 | |__) /\ |__) 5 | | \ /~~\ |__) 6 | __ __ ___ ___ ___ 7 | / ` |__) |__ /\ | |__ 8 | \__, | \ |___ /~~\ | |___ 9 | ___ __ ___ ___ 10 | | | |__| /\ | /__` |\ | |__ \_/ | 11 | |/\| | | /~~\ | .__/ | \| |___ / \ | 12 | 13 | --]=====] 14 | mgui={}local c={}local d={}local e={{}}local f={}local h=draw.CreateFont("Verdana",12,400)f.outline=function(i,j,k,l,m)draw.Color(m[1],m[2],m[3],m[4])draw.OutlinedRect(i,j,i+k,j+l)end;f.rect=function(i,j,k,l,m)draw.Color(m[1],m[2],m[3],m[4])draw.FilledRect(i,j,i+k,j+l)end;f.rect2=function(i,j,k,l)draw.FilledRect(i,j,i+k,j+l)end;f.gradient=function(i,j,k,l,n,o,p)f.rect(i,j,k,l,n)local r,g,b=o[1],o[2],o[3]if p then for q=1,l do local a=q/l*255;f.rect(i,j+q,k,1,{r,g,b,a})end else for q=1,k do local a=q/k*255;f.rect(i+q,j,1,l,{r,g,b,a})end end end;f.text=function(i,j,s,m,t)if t~=nil then draw.SetFont(t)else draw.SetFont(h)end;draw.Color(m[1],m[2],m[3],m[4])draw.Text(i,j,s)end;mgui.checkbox=function(u,v,width,w,x,mgui_id,y)local z=x;local n_left=u+d[y][1]local n_top=v+d[y][2]if mgui.mouse_mov(n_left,n_top,16,width)and e[1][7]~=true then mgui.color_aw("gui_controls3")else mgui.color_aw("gui_groupbox_background")end;drawing.block(n_left,n_top,21,width)if mgui.mouse_mov(n_left,n_top,16,width)and e[1][7]~=true then if z then mgui.color_aw("gui_checkbox_on_hover")else mgui.color_aw("gui_checkbox_off_hover")end;if input.IsButtonPressed(1)then mgui.color_aw("gui_checkbox_on_hover")if z==false then z=true else z=false end end else if z then mgui.color_aw("gui_checkbox_on")else mgui.color_aw("gui_checkbox_off")end end;drawing.block_round(n_left+4,n_top+5,12,12)if z then mgui.color_aw("gui_controls2")else mgui.color_aw("gui_controls3")end;if mgui.mouse_mov(n_left,n_top,16,width)and e[1][7]~=true then mgui.color_aw("gui_controls2")end;drawing.encircle_round(n_left+4,n_top+5,12,12)local n_button_left=n_left+17;local n_button_top=n_top-1;mgui.color_aw("gui_text2")draw.SetFont(h)draw.Text(n_button_left+4,n_button_top+5,w)return z end;mgui.button=function(u,v,height,width,w,mgui_id,y)local n_left,n_top;if c[mgui_id][1]then else c[mgui_id]={false}end;if y==0 then n_left=u;n_top=v else n_left=u+d[y][1]n_top=v+d[y][2]end;local A=false;if mgui.mouse_mov(n_left,n_top,height,width)and e[1][7]~=true then mgui.color_aw("gui_button_hover")if input.IsButtonDown(1)then mgui.color_aw("gui_button_clicked")end;if input.IsButtonPressed(1)then A=true end else mgui.color_aw("gui_button_idle")end;drawing.block_round(n_left,n_top,height,width)local c_w,c_h=draw.GetTextSize(w)local n_button_left=n_left+width/2-c_w/2;local n_button_top=n_top+height/2-c_h/2;mgui.color_aw("gui_text1")draw.SetFont(h)draw.Text(n_button_left,n_button_top,w)return A end;local function B(a,b,C,D,E,F)if a>=C and a<=E and b>=D and b<=F then return true else return false end end;local function G(H,I,J)if HJ then return J end;return H end;mgui.listbox=function(i,j,K,L,M,N,y)i=i+d[y][1]j=j+d[y][2]if(#K-L)*20>=L*20 then while(#K-L)*20>=L*20 do L=L+1 end end;local l=L*20;local r,g,b,a=gui.GetValue("clr_gui_listbox_outline")f.outline(i,j,155,l+2,{r,g,b,a})r,g,b,a=gui.GetValue("clr_gui_listbox_background")f.rect(i+1,j+1,153,l,{r,g,b,a})local O=0;local P=0;local Q=false;for q=1,#K do local r,g,b,a=181,181,181,255;local R=j+q*20-19-N*20;local S=true;if R>j+l then S=false;O=O+1;Q=true elseif R=a4 and m_x<=a4+d[mgui_id][4]and m_y>=a5-25 and m_y<=a5 and d[mgui_id][3]==false then d[mgui_id][3]=true;a7=m_x-a4;a6=m_y-a5+25 end else d[mgui_id][3]=false end end;mgui.item_show=function()if e[1][7]then n_left=e[1][1]n_top=e[1][2]height=e[1][3]width=e[1][4]item_text=e[1][5]mgui_id=e[1][6]s_top=n_top+20;s_height=#item_text*15;mgui.color_aw("gui_combobox_drop1")drawing.block(n_left,s_top,s_height,width)drawing.shadow(n_left,s_top,s_height,width)for q=1,#item_text do if mgui.mouse_mov(n_left,s_top+15*q-14,14,width)then if input.IsButtonDown(1)then c[mgui_id][1]=q;c[mgui_id][2]=false;e[1][7]=false end;mgui.color_aw("gui_combobox_drop3")drawing.block(n_left,s_top+15*q-15,15,width)end;mgui.color_aw("gui_text2")draw.Text(n_left+8,s_top+15*q+1-15,item_text[q])end;if mgui.mouse_mov(n_left,n_top,height,width)then else if input.IsButtonDown(1)then if c[mgui_id][2]==true then c[mgui_id][2]=false;e[1][7]=false end end end end end;mgui.mouse_mov=function(u,v,height,width)m_x,m_y=input.GetMousePos()if m_x>=u and m_x<=u+width and m_y>=v and m_y<=v+height then return true end end;mgui.color_aw=function(a8)r,g,b,a=gui.GetValue("clr_"..a8)draw.Color(r,g,b,a)end;mgui.max_component=function(a9,aa)if c[1]==null then for q=1,aa do table.insert(c,{})end;for q=1,a9 do table.insert(d,{})end end end;drawing={}drawing.block=function(u,v,height,width)draw.FilledRect(u,v,u+width,v+height)end;drawing.block_round=function(u,v,height,width)draw.RoundedRectFill(u,v,u+width,v+height)end;drawing.encircle=function(u,v,height,width)draw.OutlinedRect(u,v,u+width,v+height)end;drawing.encircle_round=function(u,v,height,width)draw.RoundedRect(u,v,u+width,v+height)end;drawing.shadow=function(u,v,height,width)alpha=100;left_s=u;top_s=v;height_s=height;width_s=width;for q=1,1 do alpha=alpha-20;left_s=left_s-1;top_s=top_s-1;height_s=height_s+2;width_s=width_s+2;draw.Color(10,10,10,alpha)drawing.encircle(left_s,top_s,height_s,width_s)end;alpha=20;for q=1,10 do alpha=alpha-2;if alpha<0 then break end;left_s=left_s-1;top_s=top_s-1;height_s=height_s+2;width_s=width_s+2;draw.Color(10,10,10,alpha)drawing.encircle(left_s,top_s,height_s,width_s)end end;mgui.edit=function(u,v,width,w,s,mgui_id,y)if c[mgui_id][1]==null then c[mgui_id]={"",false}e_text=s;c[mgui_id][1]=s else e_text=c[mgui_id][1]end;height=18;n_left=u+d[y][1]n_top=v+d[y][2]if mgui.mouse_mov(n_left,n_top,40,width)and e[1][7]~=true then mgui.color_aw("gui_controls3")else mgui.color_aw("gui_groupbox_background")end;drawing.block(n_left,n_top,18,width)mgui.color_aw("gui_controls1")drawing.block_round(n_left+5,n_top+20,height,width-10)if mgui.mouse_mov(n_left+5,n_top+20,height,width-10)and e[1][7]~=true then mgui.color_aw("gui_controls2")if input.IsButtonDown(1)then mgui.color_aw("gui_controls2")if c[mgui_id][2]==false then c[mgui_id][2]=true end end else if input.IsButtonDown(1)then if c[mgui_id][2]==true then c[mgui_id][2]=false end end;mgui.color_aw("gui_controls3")end;if c[mgui_id][2]==true then mgui.color_aw("gui_controls1")s_text=e_text.."_"else s_text=e_text end;if c[mgui_id][2]==true then if input.IsButtonPressed(8)then e_text=string.sub(e_text,1,string.len(e_text)-1)c[mgui_id][1]=e_text end;in_text=mgui.input_to_text()c_w,c_h=draw.GetTextSize(e_text)if in_text~=""and c_w"}local A=""for q=48,90 do if input.IsButtonPressed(q)then if not input.IsButtonDown(16)and q>=65 and q<=90 then A=string.char(q+32)elseif input.IsButtonDown(16)and ab[q]then A=ab[q]else A=string.char(q)end end end;for q=187,222 do if input.IsButtonPressed(q)then if not input.IsButtonDown(16)and ac[q]~=nil then A=ac[q]elseif input.IsButtonDown(16)and ad[q]~=nil then A=ad[q]else A=string.char(q)end end end;if input.IsButtonPressed(32)then A=" "end;return A end;mgui.itembox=function(u,v,width,s,item_text,ae,mgui_id,y)if c[mgui_id][1]==null then c[mgui_id]={ae,false}else ae=c[mgui_id][1]act_item=c[mgui_id][2]end;height=18;n_left=u+d[y][1]n_top=v+d[y][2]if mgui.mouse_mov(n_left,n_top,45,width)and e[1][7]~=true then mgui.color_aw("gui_controls3")else mgui.color_aw("gui_groupbox_background")end;drawing.block(n_left,n_top,45,width)mgui.color_aw("gui_text2")draw.SetFont(h)draw.Text(n_left+7,n_top+3,s)n_top=n_top+20;n_left=n_left+5;n_width=width-10;mgui.color_aw("gui_controls1")drawing.block_round(n_left,n_top,height,n_width)if mgui.mouse_mov(n_left,n_top,height,width)and e[1][7]~=true then mgui.color_aw("gui_controls2")if input.IsButtonPressed(1)then if c[mgui_id][2]==false then c[mgui_id][2]=true end end else if c[mgui_id][2]==true then mgui.color_aw("gui_controls2")else mgui.color_aw("gui_controls3")end end;drawing.encircle_round(n_left,n_top,height,n_width)mgui.color_aw("gui_text2")draw.SetFont(h)draw.Text(n_left+8,n_top+2,item_text[ae])if c[mgui_id][2]==true then mgui.item(n_left,n_top,height,n_width,item_text,mgui_id)end;return c[mgui_id][1],item_text[c[mgui_id][1]]end 15 | 16 | local fishes = { 17 | ">))'>", 18 | "ᅠᅠ>))'>", 19 | "ᅠᅠᅠᅠᅠ >))'>", 20 | "ᅠᅠᅠᅠ ᅠ ᅠ ᅠ >))'>", 21 | " ᅠᅠᅠᅠ ᅠ <'((<", 22 | " ᅠᅠᅠᅠ<'((<", 23 | " ᅠᅠ<'((<", 24 | "<'((<", 25 | } 26 | 27 | local hitler = { '卐', '卍' } 28 | local stars = { '☆', '★' } 29 | 30 | local silentName, wait, enabled = false, 0, false; 31 | local currentName = ''; 32 | local menuPressed = 1; 33 | local nameTypes = { "Static", "Anim 1", "Anim 2", "Vote Troll", "Hitler", "Stars", "Fishes" }; 34 | local namePreset = {}; 35 | local type_index, type_text = 1, 0; 36 | local preset_index, preset_text = 1, 0; 37 | local editName = ''; 38 | local currentInt = 0; 39 | local lastChange = 0; 40 | local currentAnimInt = 1; 41 | 42 | local function changeGuiValues(i, i2) 43 | gui.SetValue("msc_namestealer_enable", i); 44 | gui.SetValue("msc_namestealer_interval", i2); 45 | end 46 | 47 | local function makeVoteTrollName() 48 | local tempName = ''; 49 | for _ = 1, 46 do 50 | tempName = tempName .. "\n"; 51 | end 52 | tempName = tempName .. editName; 53 | for _ = 1, 46 do 54 | tempName = tempName .. "\n"; 55 | end 56 | currentName = tempName; 57 | end 58 | 59 | local function doCustomAnimFromTable(table) 60 | if ((globals.RealTime()) > lastChange) then 61 | if (currentAnimInt > #table) then 62 | currentAnimInt = 1 63 | end 64 | currentName = table[currentAnimInt]; 65 | currentAnimInt = currentAnimInt + 1; 66 | lastChange = globals.RealTime() + 0.4; 67 | end 68 | end 69 | 70 | local function makeNameChangerSilent() 71 | if (enabled ~= true) then 72 | return 73 | end 74 | if (silentName ~= true) then 75 | changeGuiValues(1, 5); 76 | if (wait == 0) then 77 | wait = 2; 78 | end 79 | if (wait > 0) then 80 | wait = wait - globals.FrameTime(); 81 | return 82 | end 83 | silentName = true; 84 | changeGuiValues(0, 0) 85 | else 86 | client.SetConVar("name", currentName, false); 87 | end 88 | end 89 | 90 | local function makeFormingName(wat) 91 | local nameLen = string.len(editName); 92 | if (lastChange == 0) then 93 | lastChange = globals.RealTime() + 0.4 94 | end 95 | if ((globals.RealTime()) < lastChange) then 96 | return 97 | end 98 | local fNameLen = nameLen; 99 | if (wat == 3) then 100 | fNameLen = fNameLen * 2; 101 | end 102 | if (currentInt > fNameLen) then 103 | currentInt = 0 104 | end 105 | currentInt = currentInt + 1; 106 | lastChange = globals.RealTime() + 0.4; 107 | -- wat 2 and 3 is buggy atm will implement it later 108 | if (wat == 1) then 109 | currentName = editName:sub(currentInt); 110 | elseif (wat == 2) then 111 | currentName = editName:sub(-currentInt); 112 | elseif (wat == 3) then 113 | if #currentName <= currentInt then 114 | currentName = string.sub(currentName, currentInt); 115 | else 116 | currentName = string.sub(currentName, 1, currentInt - (currentInt * 2 - #currentName + 1)); 117 | end 118 | end 119 | currentName = currentName .. ' ' 120 | end 121 | 122 | callbacks.Register("Draw", function() 123 | local lp = entities.GetLocalPlayer(); 124 | if (lp ~= nil) then 125 | makeNameChangerSilent(); 126 | else 127 | silentName, wait = false, 0; 128 | end 129 | if (type_index == 1) then 130 | currentName = editName; 131 | elseif (type_index == 2) then 132 | makeFormingName(1); 133 | elseif (type_index == 3) then 134 | makeFormingName(2); 135 | elseif (type_index == 4) then 136 | makeVoteTrollName(); 137 | elseif (type_index == 5) then 138 | doCustomAnimFromTable(hitler) 139 | elseif (type_index == 6) then 140 | doCustomAnimFromTable(stars) 141 | elseif (type_index == 7) then 142 | doCustomAnimFromTable(fishes) 143 | end 144 | if (type_index == 1 or type_index == 2 or type_index == 3) then 145 | namePreset = { 'Custom', 'Time' } 146 | elseif (type_index == 4) then 147 | namePreset = { 'Custom' }; 148 | else 149 | namePreset = {}; 150 | end 151 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 152 | menuPressed = menuPressed == 0 and 1 or 0; 153 | end 154 | if (menuPressed ~= 0) then 155 | mgui.max_component(10, 100) 156 | mgui.menu(25, 25, 160, 300, "Name Changer", 1); 157 | mgui.panel(15, 15, 130, 270, "", 2, 1); 158 | enabled = mgui.checkbox(25, 25, 90, "Enable", enabled, 1, 1); 159 | local previewPadding = 20; 160 | type_index, type_text = mgui.itembox(25, previewPadding + 30, 70, "Name Type", nameTypes, 1, 3, 1); 161 | if (#namePreset > 0) then 162 | preset_index, preset_text = mgui.itembox(100, previewPadding + 30, 70, "Name Preset", namePreset, 1, 4, 1); 163 | end 164 | if (preset_text == 'Custom') then 165 | editName = mgui.edit(25, previewPadding + 75, 250, "Custom Text", "", 5, 1); 166 | elseif (preset_text == 'Time') then 167 | editName = '[' .. os.date("%X") .. ']'; 168 | else 169 | editName = 'BlAME RAB'; 170 | end 171 | mgui.label(100, 30, "Name: " .. currentName, 7, 1); 172 | mgui.menu_mouse(1); 173 | mgui.item_show(); 174 | end 175 | end); -------------------------------------------------------------------------------- /[LuaScript] Onetap Spec List.lua: -------------------------------------------------------------------------------- 1 | --Made by Rab(SamzSakerz#4758) 2 | local mouseX, mouseY, x, y, dx, dy, w, h = 0, 0, 25, 660, 0, 0, 300, 60; 3 | local shouldDrag = false; 4 | local font_title = draw.CreateFont("Arial", 16, 16); 5 | local font_spec = draw.CreateFont("Arial", 15, 15); 6 | local topbarSize = 25; 7 | local windowW, windowH, menuPressed, j = 240, 105, 1, 0; 8 | local mainWindow = gui.Window("rab_onetap_speclist", "Onetap Speclist", 200, 200, windowW, windowH); 9 | local settingsGroup = gui.Groupbox(mainWindow, "Settings", 13, 13, windowW - 25, windowH - 55); 10 | local enabled = gui.Checkbox(settingsGroup, 'rab_onetap_speclist_enable', 'Enable', true); 11 | local gradientOne = gui.ColorEntry("rab_onetap_speclist_gradient_one", "OT Spec List Gradient 1", 52, 63, 65, 255); 12 | local gradientTwo = gui.ColorEntry("rab_onetap_speclist_gradient_two", "OT Spec List Gradient 2", 190, 205, 216, 255); 13 | 14 | local function getSpectators() 15 | local spectators = {}; 16 | local lp = entities.GetLocalPlayer(); 17 | if lp ~= nil then 18 | local players = entities.FindByClass("CCSPlayer"); 19 | local specI = 1; 20 | for i = 1, #players do 21 | local player = players[i]; 22 | if player ~= lp and player:GetHealth() <= 0 then 23 | local name = player:GetName(); 24 | if player:GetPropEntity("m_hObserverTarget") ~= nil then 25 | local playerindex = player:GetIndex(); 26 | if name ~= "GOTV" and playerindex ~= 1 then 27 | local target = player:GetPropEntity("m_hObserverTarget"); 28 | if target:IsPlayer() then 29 | local targetindex = target:GetIndex(); 30 | local myindex = client.GetLocalPlayerIndex(); 31 | if lp:IsAlive() then 32 | if targetindex == myindex then 33 | spectators[specI] = player; 34 | specI = specI + 1; 35 | end 36 | end 37 | end 38 | end 39 | end 40 | end 41 | end 42 | end 43 | return spectators; 44 | end 45 | 46 | local function drawRectFill(r, g, b, a, x, y, w, h, texture) 47 | if (texture ~= nil) then 48 | draw.SetTexture(texture); 49 | else 50 | draw.SetTexture(r, g, b, a); 51 | end 52 | draw.Color(r, g, b, a); 53 | draw.FilledRect(x, y, x + w, y + h); 54 | end 55 | 56 | local function drawGradientRectFill(col1, col2, x, y, w, h) 57 | drawRectFill(col1[1], col1[2], col1[3], col1[4], x, y, w, h); 58 | local r, g, b = col2[1], col2[2], col2[3]; 59 | for i = 1, h do 60 | local a = i / h * col2[4]; 61 | drawRectFill(r, g, b, a, x + 2, y + i, w - 2, 1); 62 | end 63 | end 64 | 65 | local function dragFeature() 66 | if input.IsButtonDown(1) then 67 | mouseX, mouseY = input.GetMousePos(); 68 | if shouldDrag then 69 | x = mouseX - dx; 70 | y = mouseY - dy; 71 | end 72 | if mouseX >= x and mouseX <= x + w and mouseY >= y and mouseY <= y + 40 then 73 | shouldDrag = true; 74 | dx = mouseX - x; 75 | dy = mouseY - y; 76 | end 77 | else 78 | shouldDrag = false; 79 | end 80 | end 81 | 82 | local function drawOutline(r, g, b, a, x, y, w, h, howMany) 83 | for i = 1, howMany do 84 | draw.Color(r, g, b, a); 85 | draw.OutlinedRect(x - i, y - i, x + w + i, y + h + i); 86 | end 87 | end 88 | 89 | --This draws the nice looking material window designed and developed by Rab 90 | local function drawWindow(spectators) 91 | local h2 = 10 + (spectators * 15); 92 | local h = h + (spectators * 15); 93 | 94 | -- Draw small outline 95 | draw.Color(0, 0, 0, 255); 96 | draw.OutlinedRect(x - 6, y - 6, x + w + 6, y + h + 6); 97 | 98 | -- Draw big outline 99 | drawOutline(74, 65, 54, 200, x, y, w, h, 5); 100 | 101 | -- Draw the main bg 102 | drawRectFill(11, 11, 11, 150, x, y, w, h); 103 | 104 | 105 | -- Draw the text 106 | draw.Color(255, 255, 255); 107 | draw.SetFont(font_title); 108 | local spectext = 'spectators(' .. spectators .. ')'; 109 | local tW, _ = draw.GetTextSize(spectext); 110 | draw.Text(x + ((w - tW) / 2), y + 5, spectext) 111 | 112 | -- draw the gradient divider 113 | drawGradientRectFill({ gradientOne:GetValue() }, { gradientTwo:GetValue() }, x + 5, y + 23, w - 10, 5, true) 114 | 115 | drawRectFill(27, 24, 25, 255, x + 7, y + 40, w - 14, h2); 116 | 117 | drawOutline(41, 35, 36, 255, x + 7, y + 40, w - 14, h2, 2); 118 | end 119 | 120 | local function drawSpectators(spectators) 121 | for index, player in pairs(spectators) do 122 | draw.SetFont(font_spec); 123 | draw.Color(255, 255, 255, 255); 124 | draw.Text(x + 15, (y + topbarSize + 5) + (index * 15), player:GetName()) 125 | end 126 | end 127 | 128 | callbacks.Register("Draw", function() 129 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 130 | menuPressed = menuPressed == 0 and 1 or 0; 131 | end 132 | mainWindow:SetActive(menuPressed); 133 | if (enabled:GetValue() ~= true) then 134 | return 135 | end 136 | local spectators = getSpectators(); 137 | if (#spectators == 0) then 138 | return 139 | end 140 | drawWindow(#spectators); 141 | drawSpectators(spectators); 142 | dragFeature(); 143 | end) -------------------------------------------------------------------------------- /[LuaScript] Onetap Watermark.lua: -------------------------------------------------------------------------------- 1 | local font = draw.CreateFont('Arial', 14); 2 | local windowW, windowH, menuPressed, j = 240, 400, 1, 0; 3 | local mainWindow = gui.Window("rab_onetap_watermark", "Onetap watermark", 200, 200, windowW, windowH); 4 | local settingsGroup = gui.Groupbox(mainWindow, "Settings", 13, 13, windowW - 25, windowH - 55); 5 | local enabled = gui.Checkbox(settingsGroup, 'rab_onetap_watermark_enable', 'Enable', true); 6 | local colorType = gui.Combobox(settingsGroup, "rab_onetap_watermark_color_type", 'Color Type', 'Static', 'Chroma'); 7 | local rainbowSpeed = gui.Slider(settingsGroup, "rab_onetap_watermark_rainbow_speed", "Rainbow Fade Speed", 1, 1, 10); 8 | local r = gui.Slider(settingsGroup, "rab_onetap_watermark_r", "R", 0, 0, 255); 9 | local g = gui.Slider(settingsGroup, "rab_onetap_watermark_g", "G", 0, 0, 255); 10 | local b = gui.Slider(settingsGroup, "rab_onetap_watermark_b", "B", 0, 0, 255); 11 | local a = gui.Slider(settingsGroup, "rab_onetap_watermark_a", "A", 100, 0, 255); 12 | 13 | local function getTextColor() 14 | local luminance = math.sqrt(0.241 * (r:GetValue() ^ 2) + 0.691 * (g:GetValue() ^ 2) + 0.068 * (b:GetValue() ^ 2)); 15 | if (luminance >= 130) then 16 | return 0, 0, 0; 17 | end 18 | return 255, 255, 255; 19 | end 20 | 21 | local function doRainbow() 22 | local speed = rainbowSpeed:GetValue(); 23 | r:SetValue(math.floor(math.sin((globals.RealTime()) * speed) * 127 + 128)); 24 | g:SetValue(math.floor(math.sin((globals.RealTime()) * speed + 2) * 127 + 128)); 25 | b:SetValue(math.floor(math.sin((globals.RealTime()) * speed + 4) * 127 + 128)); 26 | end 27 | 28 | callbacks.Register("Draw", function() 29 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 30 | menuPressed = menuPressed == 0 and 1 or 0; 31 | end 32 | mainWindow:SetActive(menuPressed); 33 | if (enabled:GetValue() ~= true) then 34 | return 35 | end 36 | if (colorType:GetValue() == 1) then 37 | doRainbow(); 38 | end 39 | local lp = entities.GetLocalPlayer(); 40 | local playerResources = entities.GetPlayerResources(); 41 | 42 | -- do not edit above 43 | 44 | local divider = ' | '; 45 | local cheatName = 'aimware.net'; 46 | local userName = 'SamzSakerz'; 47 | 48 | -- Do not edit below 49 | local delay; 50 | local tick; 51 | local time = os.date("%X"); 52 | if (lp ~= nil) then 53 | delay = 'delay: ' .. playerResources:GetPropInt("m_iPing", lp:GetIndex()) .. 'ms'; 54 | tick = math.floor(lp:GetProp("localdata", "m_nTickBase") + 0x20) .. 'tick'; 55 | end 56 | local watermarkText = cheatName .. divider .. userName .. divider; 57 | if (delay ~= nil) then 58 | watermarkText = watermarkText .. delay .. divider; 59 | end 60 | if (tick ~= nil) then 61 | watermarkText = watermarkText .. tick .. divider; 62 | end 63 | watermarkText = watermarkText .. time; 64 | draw.SetFont(font); 65 | local w, h = draw.GetTextSize(watermarkText); 66 | local weightPadding, heightPadding = 20, 15; 67 | local watermarkWidth = weightPadding + w; 68 | local start_x, start_y = draw.GetScreenSize(); 69 | start_x, start_y = start_x - watermarkWidth - 20, start_y * 0.0225; 70 | draw.Color(r:GetValue(), g:GetValue(), b:GetValue(), a:GetValue()); 71 | draw.FilledRect(start_x, start_y, start_x + watermarkWidth, start_y + h + heightPadding); 72 | draw.Color(getTextColor()); 73 | draw.Text(start_x + weightPadding / 2, start_y + heightPadding / 2, watermarkText) 74 | end) -------------------------------------------------------------------------------- /[LuaScript] Per-User Resolver.lua: -------------------------------------------------------------------------------- 1 | --Made by Rab(SamzSakerz#4758) 2 | 3 | 4 | mgui={}local c={}local d={}local e={{}}local f={}f.outline=function(h,i,j,k,l)draw.Color(l[1],l[2],l[3],l[4])draw.OutlinedRect(h,i,h+j,i+k)end;f.rect=function(h,i,j,k,l)draw.Color(l[1],l[2],l[3],l[4])draw.FilledRect(h,i,h+j,i+k)end;f.rect2=function(h,i,j,k)draw.FilledRect(h,i,h+j,i+k)end;f.gradient=function(h,i,j,k,m,n,o)f.rect(h,i,j,k,m)local r,g,b=n[1],n[2],n[3]if o then for p=1,k do local a=p/k*255;f.rect(h,i+p,j,1,{r,g,b,a})end else for p=1,j do local a=p/j*255;f.rect(h+p,i,1,k,{r,g,b,a})end end end;f.text=function(h,i,q,l,s)if s~=nil then draw.SetFont(s)end;draw.Color(l[1],l[2],l[3],l[4])draw.Text(h,i,q)end;mgui.checkbox=function(t,u,v,w,x,y,z)local A=x;local B=t+d[z][1]local C=u+d[z][2]if mgui.mouse_mov(B,C,16,v)and e[1][7]~=true then mgui.color_aw("gui_controls3")else mgui.color_aw("gui_groupbox_background")end;drawing.block(B,C,21,v)if mgui.mouse_mov(B,C,16,v)and e[1][7]~=true then if A then mgui.color_aw("gui_checkbox_on_hover")else mgui.color_aw("gui_checkbox_off_hover")end;if input.IsButtonPressed(1)then mgui.color_aw("gui_checkbox_on_hover")if A==false then A=true else A=false end end else if A then mgui.color_aw("gui_checkbox_on")else mgui.color_aw("gui_checkbox_off")end end;drawing.block_round(B+4,C+5,12,12)if A then mgui.color_aw("gui_controls2")else mgui.color_aw("gui_controls3")end;if mgui.mouse_mov(B,C,16,v)and e[1][7]~=true then mgui.color_aw("gui_controls2")end;drawing.encircle_round(B+4,C+5,12,12)local D=B+17;local E=C-1;mgui.color_aw("gui_text2")draw.Text(D+4,E+5,w)return A end;mgui.button=function(t,u,F,v,w,y,z)local B,C;if c[y][1]then else c[y]={false}end;if z==0 then B=t;C=u else B=t+d[z][1]C=u+d[z][2]end;local G=false;if mgui.mouse_mov(B,C,F,v)and e[1][7]~=true then mgui.color_aw("gui_button_hover")if input.IsButtonDown(1)then mgui.color_aw("gui_button_clicked")end;if input.IsButtonPressed(1)then G=true end else mgui.color_aw("gui_button_idle")end;drawing.block_round(B,C,F,v)local H,I=draw.GetTextSize(w)local D=B+v/2-H/2;local E=C+F/2-I/2;mgui.color_aw("gui_text1")draw.Text(D,E,w)return G end;local function J(a,b,K,L,M,N)if a>=K and a<=M and b>=L and b<=N then return true else return false end end;local function O(P,Q,R)if PR then return R end;return P end;mgui.listbox=function(h,i,S,T,U,V,z)h=h+d[z][1]i=i+d[z][2]if(#S-T)*20>=T*20 then while(#S-T)*20>=T*20 do T=T+1 end end;local k=T*20;local r,g,b,a=gui.GetValue("clr_gui_listbox_outline")f.outline(h,i,155,k+2,{r,g,b,a})r,g,b,a=gui.GetValue("clr_gui_listbox_background")f.rect(h+1,i+1,153,k,{r,g,b,a})local W=0;local X=0;local Y=false;for p=1,#S do local r,g,b,a=181,181,181,255;local Z=i+p*20-19-V*20;local _=true;if Z>i+k then _=false;W=W+1;Y=true elseif Z=a7 and m_x<=a7+d[y][4]and m_y>=a8-25 and m_y<=a8 and d[y][3]==false then d[y][3]=true;ab=m_x-a7;aa=m_y-a8+25 end else d[y][3]=false end end;mgui.mouse_mov=function(t,u,F,v)m_x,m_y=input.GetMousePos()if m_x>=t and m_x<=t+v and m_y>=u and m_y<=u+F then return true end end;mgui.color_aw=function(ac)r,g,b,a=gui.GetValue("clr_"..ac)draw.Color(r,g,b,a)end;mgui.max_component=function(ad,ae)if c[1]==null then for p=1,ae do table.insert(c,{})end;for p=1,ad do table.insert(d,{})end end end;drawing={}drawing.block=function(t,u,F,v)draw.FilledRect(t,u,t+v,u+F)end;drawing.block_round=function(t,u,F,v)draw.RoundedRectFill(t,u,t+v,u+F)end;drawing.encircle=function(t,u,F,v)draw.OutlinedRect(t,u,t+v,u+F)end;drawing.encircle_round=function(t,u,F,v)draw.RoundedRect(t,u,t+v,u+F)end;drawing.shadow=function(t,u,F,v)alpha=100;left_s=t;top_s=u;height_s=F;width_s=v;for p=1,1 do alpha=alpha-20;left_s=left_s-1;top_s=top_s-1;height_s=height_s+2;width_s=width_s+2;draw.Color(10,10,10,alpha)drawing.encircle(left_s,top_s,height_s,width_s)end;alpha=20;for p=1,10 do alpha=alpha-2;if alpha<0 then break end;left_s=left_s-1;top_s=top_s-1;height_s=height_s+2;width_s=width_s+2;draw.Color(10,10,10,alpha)drawing.encircle(left_s,top_s,height_s,width_s)end end 5 | 6 | local playerSettings, target, menuPressed, selected, scroll = {}, nil, 1, 1, 0; 7 | 8 | function table.getIndex(table, element) 9 | for i, value in pairs(table) do 10 | local player = value[1]; 11 | if (player ~= nil and player == element) then 12 | return i; 13 | end; 14 | end; 15 | return -1; 16 | end 17 | 18 | local function updatePlayers() 19 | local playerNames, playerIndexs, players, lp = {}, {}, entities.FindByClass("CCSPlayer"), entities.GetLocalPlayer(); 20 | for i = 1, #players do 21 | local player = players[i]; 22 | local pIndex = player:GetIndex(); 23 | if (player:IsPlayer() and (pIndex ~= lp:GetIndex() and pIndex ~= 1)) then 24 | local index = table.getIndex(playerSettings, pIndex); 25 | if (player:GetTeamNumber() ~= lp:GetTeamNumber()) then 26 | if (index == -1) then 27 | table.insert(playerSettings, { pIndex, false }); 28 | end; 29 | else 30 | if (index ~= -1) then 31 | table.remove(playerSettings, index); 32 | end; 33 | end; 34 | end; 35 | end; 36 | end 37 | 38 | local function removeNilEnt() 39 | for i = #playerSettings, 1, -1 do 40 | if (entities.GetByIndex(playerSettings[i][1]) == nil) then 41 | table.remove(playerSettings, i); 42 | end; 43 | end; 44 | end 45 | 46 | callbacks.Register("Draw", function() 47 | updatePlayers(); 48 | removeNilEnt(); 49 | if (target ~= nil) then 50 | local tIndex = target:GetIndex(); 51 | for k, playerSetting in pairs(playerSettings) do 52 | if (tIndex == playerSetting[1]) then 53 | gui.SetValue('rbot_resolver', playerSetting[2]); 54 | end; 55 | end; 56 | target = nil; 57 | end; 58 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 59 | menuPressed = menuPressed == 0 and 1 or 0; 60 | end 61 | if (menuPressed == 0) then return end; 62 | mgui.max_component(10, 100); 63 | mgui.menu(25, 25, 290, 440, "Per-User Resolver", 1); 64 | mgui.panel(25, 25, 245, 175, "Players", 2, 1); 65 | selected, scroll = mgui.listbox(35, 35, playerSettings, 11, selected, scroll, 1); 66 | mgui.panel(225, 25, 40, 185, "Player Settings", 3, 1); 67 | local lp = entities.GetLocalPlayer(); 68 | local playerSetting = playerSettings[selected]; 69 | if (playerSetting ~= nil) then 70 | local player = playerSetting[1]; 71 | local reolverOn = playerSetting[2]; 72 | local val = mgui.checkbox(235, 35, 85, "Resolver", reolverOn, 32, 1); 73 | playerSettings[selected] = { player, val }; 74 | end; 75 | mgui.panel(225, 90, 80, 185, "About Per-User Settings", 4, 1); 76 | mgui.label(235, 110, "Author: Rab", 41, 1); 77 | mgui.label(235, 125, "Author Discrd: SamzSakerz#4758", 42, 1); 78 | mgui.label(235, 140, "Credits: QBER (For GUI API)", 43, 1); 79 | mgui.menu_mouse(1); 80 | end); 81 | 82 | callbacks.Register('AimbotTarget', function(ent) 83 | target = ent; 84 | end); -------------------------------------------------------------------------------- /[LuaScript] PewDiePie vs T-Series.lua: -------------------------------------------------------------------------------- 1 | --[=====[ 2 | PewDiePie VS T-Series Made by Rab(SamzSakerz#4758) 3 | __ __ 4 | |__) /\ |__) 5 | | \ /~~\ |__) 6 | __ __ ___ ___ ___ 7 | / ` |__) |__ /\ | |__ 8 | \__, | \ |___ /~~\ | |___ 9 | ___ __ ___ ___ 10 | | | |__| /\ | /__` |\ | |__ \_/ | 11 | |/\| | | /~~\ | .__/ | \| |___ / \ | 12 | 13 | --]=====] 14 | 15 | --[==========================[PROFILE PICTURE DATAS]==========================] 16 | 17 | 18 | --[==========================[VARIABLES]==========================] 19 | local font = draw.CreateFont('Arial', 16); 20 | local mouseX, mouseY, x, y, dx, dy, w, h = 0, 0, 25, 660, 0, 0, 300, 200; 21 | local shouldDrag = false; 22 | local URL = 'http://rab.wtf/pewseries.php/'; 23 | local PEWDIEPIE_PROFILE_PICTURE_DATA = ''; 24 | local TSERIES_PROFILE_PICTURE_DATA = ''; 25 | local PEWDIEPIE_PROFILE_PICTURE, TSERIES_PROFILE_PICTURE; 26 | local subData = { 0, 0 }; 27 | 28 | --[==========================[UTILS]==========================] 29 | local function ReadableNumber(amount) 30 | local formatted = amount 31 | while true do 32 | formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') 33 | if (k == 0) then 34 | break 35 | end 36 | end 37 | return formatted 38 | end 39 | 40 | local function drawRoundedRectFill(r, g, b, a, x, y, w, h) 41 | draw.Color(r, g, b, a); 42 | draw.RoundedRectFill(x, y, x + w, y + h); 43 | end 44 | 45 | local function drawRectFill(r, g, b, a, x, y, w, h) 46 | draw.Color(r, g, b, a); 47 | draw.FilledRect(x, y, x + w, y + h); 48 | end 49 | 50 | local function split(s, delimiter) 51 | if delimiter == nil then 52 | delimiter = "%s" 53 | end 54 | local t = {} 55 | for str in string.gmatch(s, "([^" .. delimiter .. "]+)") do 56 | table.insert(t, str) 57 | end 58 | return t 59 | end 60 | 61 | local function dragFeature() 62 | if input.IsButtonDown(1) then 63 | mouseX, mouseY = input.GetMousePos(); 64 | if shouldDrag then 65 | x = mouseX - dx; 66 | y = mouseY - dy; 67 | end 68 | if mouseX >= x and mouseX <= x + w and mouseY >= y and mouseY <= y + 40 then 69 | shouldDrag = true; 70 | dx = mouseX - x; 71 | dy = mouseY - y; 72 | end 73 | else 74 | shouldDrag = false; 75 | end 76 | end 77 | 78 | callbacks.Register('Draw', function() 79 | if (PEWDIEPIE_PROFILE_PICTURE == nil or TSERIES_PROFILE_PICTURE == nil) then 80 | PEWDIEPIE_PROFILE_PICTURE = draw.CreateTexture(common.RasterizeSVG(PEWDIEPIE_PROFILE_PICTURE_DATA)); 81 | TSERIES_PROFILE_PICTURE = draw.CreateTexture(common.RasterizeSVG(TSERIES_PROFILE_PICTURE_DATA)); 82 | end 83 | http.Get(URL, function(response) subData = split(response, ','); end); 84 | draw.SetTexture(255, 255, 255); 85 | drawRoundedRectFill(33, 33, 33, 255, x, y, w, 40); 86 | local topbar_text = 'PewDiePie vs T-Series By Rab'; 87 | draw.SetFont(font); 88 | local tw, th = draw.GetTextSize(topbar_text) 89 | draw.Color(255, 255, 255); 90 | draw.Text(x + ((w - tw) / 2), y + ((40 - th) / 2), topbar_text) 91 | local curY = y + 60; 92 | drawRoundedRectFill(33, 33, 33, 255, x, curY, w, h); 93 | dragFeature(); 94 | 95 | --Draw Profile Pictures 96 | curY = curY + 25; 97 | draw.SetTexture(PEWDIEPIE_PROFILE_PICTURE); 98 | drawRectFill(255, 255, 255, 255, x + 25, curY, 80, 80); 99 | 100 | draw.SetTexture(TSERIES_PROFILE_PICTURE); 101 | drawRectFill(255, 255, 255, 255, x + w - 95, curY, 60, 80); 102 | 103 | curY = curY + 95; 104 | draw.Color(255, 255, 255); 105 | local pewdiepieSubs = ReadableNumber(subData[1]); 106 | tw, th = draw.GetTextSize(pewdiepieSubs) 107 | draw.Text(x + 25 + ((80 - tw) / 2), curY, pewdiepieSubs); 108 | local tseriesSubs = ReadableNumber(subData[2]); 109 | tw, th = draw.GetTextSize(tseriesSubs) 110 | draw.Text((x + w - 95) + ((60 - tw) / 2), curY, tseriesSubs); 111 | 112 | local ahead = 'PewDiePie'; 113 | local howManySubs = subData[1] - subData[2]; 114 | if (subData[1] < subData[2]) then 115 | ahead = 'T-Series'; 116 | howManySubs = subData[2] - subData[1]; 117 | end 118 | local winningText = ahead .. ' Is winning by ' .. ReadableNumber(howManySubs) .. ' Subscribers'; 119 | tw, th = draw.GetTextSize(winningText) 120 | curY = curY + 25; 121 | draw.Text(x + ((w - tw) / 2), curY, winningText) 122 | end) 123 | -------------------------------------------------------------------------------- /[LuaScript] Rainbow Spread CrossHair.lua: -------------------------------------------------------------------------------- 1 | --[=====[ 2 | Rainbow Spread Crosshair Made by Rab(SamzSakerz#4758) 3 | __ __ 4 | |__) /\ |__) 5 | | \ /~~\ |__) 6 | __ __ ___ ___ ___ 7 | / ` |__) |__ /\ | |__ 8 | \__, | \ |___ /~~\ | |___ 9 | ___ __ ___ ___ 10 | | | |__| /\ | /__` |\ | |__ \_/ | 11 | |/\| | | /~~\ | .__/ | \| |___ / \ | 12 | 13 | --]=====] 14 | 15 | local a,b,c,d,e,f,g,h,i,j,select,pcall=callbacks.Register,draw.Color,draw.GetScreenSize,draw.Line,entities.GetLocalPlayer,globals.RealTime,math.cos,math.floor,math.rad,math.sin,select,pcall;local function k(l,m)return h(j((f()+l)*m)*127+128),h(j((f()+l)*m+2)*127+128),h(j((f()+l)*m+4)*127+128),255 end;local function n(o,p,q)local r,s;for t=0,360,10 do local u,v=o+q*g(i(t)),p+q*j(i(t))if u and r then b(k(t,10))d(u,v,r,s)end;r,s=u,v end end;a("Draw",function()pcall(function()n(c()/2,select(2,c())/2,e():GetPropEntity("m_hActiveWeapon"):GetWeaponInaccuracy()*1000)end)end) -------------------------------------------------------------------------------- /[LuaScript] Reset Score.lua: -------------------------------------------------------------------------------- 1 | callbacks.Register('FireGameEvent', function(e) 2 | local en = e:GetName(); 3 | if (en ~= "player_death") then return; end 4 | local i = entities.GetLocalPlayer():GetIndex(); 5 | local k = entities.GetPlayerResources():GetPropInt("m_iKills", i); 6 | local d = entities.GetPlayerResources():GetPropInt("m_iDeaths", i); 7 | if (k < d) then client.Command('rs', true) end; 8 | end); -------------------------------------------------------------------------------- /[LuaScript] Slow Walk Fix.lua: -------------------------------------------------------------------------------- 1 | autostop_keys = { 2 | "rbot_autosniper_autostop", 3 | "rbot_sniper_autostop", 4 | "rbot_scout_autostop", 5 | "rbot_revolver_autostop", 6 | "rbot_pistol_autostop", 7 | "rbot_smg_autostop", 8 | "rbot_rifle_autostop", 9 | "rbot_shotgun_autostop", 10 | "rbot_lmg_autostop", 11 | "rbot_shared_autostop" 12 | } 13 | local menuPressed = 1; 14 | autostop_user_saved_values = {} 15 | for i = 1, #autostop_keys do 16 | autostop_user_saved_values[i] = gui.GetValue(autostop_keys[i]); 17 | end 18 | 19 | local mam = gui.Reference("MISC", "AUTOMATION", "Movement"); 20 | local showMenu = gui.Checkbox(mam, "rab_slowwalkfix_show", "Show SlowWalk Fix Menu", false); 21 | local mainWindow = gui.Window("rab_slowwalkfix", "SlowWalk Fix", 200, 200, 220, 460); 22 | local settings = gui.Groupbox(mainWindow, "Settings", 13, 13, 190, 385); 23 | local enabled = gui.Checkbox(settings, "rab_slowwalkfix_enable", "Enable SlowWalk Fix", false); 24 | 25 | local bgtypeVarNames = { "rab_slowwalkfix_primarybg_type", "rab_slowwalkfix_secondarybg_type" }; 26 | local bgHexVarNames = { "rab_slowwalkfix_primarybg_hex", "rab_slowwalkfix_secondarybg_hex" }; 27 | local bgChromaSpeedVarNames = { "rab_slowwalkfix_primarybg_chroma_speed", "rab_slowwalkfix_secondarybg_chroma_speed" }; 28 | 29 | function addBgColorOption(bgTypeVarname, wat, bgHexVarName, bgChromaSpeedVarName, def) 30 | gui.Combobox(settings, bgTypeVarname, wat .. " Background Type", "Static", "Chroma"); 31 | gui.Text(settings, "Hex Value"); 32 | gui.Editbox(settings, bgHexVarName, def) 33 | gui.Slider(settings, bgChromaSpeedVarName, "Chroma Speed", 1, 1, 10) 34 | end 35 | 36 | addBgColorOption(bgtypeVarNames[1], "Primary", bgHexVarNames[1], bgChromaSpeedVarNames[1], "100000") 37 | addBgColorOption(bgtypeVarNames[2], "Secondary", bgHexVarNames[2], bgChromaSpeedVarNames[2], "96b901") 38 | gui.Text(settings, "Text Color Hex Value"); 39 | gui.Editbox(settings, "rab_slowalk_textcolor", "ffffff") 40 | gui.Text(mainWindow, "SlowWalk Fix - Made by Rab") 41 | 42 | callbacks.Register("Draw", function() 43 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 44 | menuPressed = menuPressed == 0 and 1 or 0; 45 | end 46 | if (showMenu:GetValue()) then 47 | mainWindow:SetActive(menuPressed); 48 | else 49 | mainWindow:SetActive(0); 50 | end 51 | local slowWalkBind = gui.GetValue("msc_slowwalk"); 52 | if (slowWalkBind == nil or slowWalkBind == 0) then return end 53 | local lPlayer = entities.GetLocalPlayer(); 54 | if (lPlayer == nil) then return end 55 | local slowWalkEnabled = input.IsButtonDown(slowWalkBind); 56 | for i = 1, #autostop_keys do 57 | if slowWalkEnabled and lPlayer:IsAlive() and enabled:GetValue() then 58 | local text = "SlowWalk Fix Enabled" 59 | local textWidth, textHeight = draw.GetTextSize(text); 60 | local top = 590 61 | drawColor(bgtypeVarNames[2], bgHexVarNames[2], bgChromaSpeedVarNames[2], {150, 185, 1}) 62 | draw.FilledRect(0, top, textWidth + 30, top + textHeight + 20); 63 | drawColor(bgtypeVarNames[1], bgHexVarNames[1], bgChromaSpeedVarNames[1], {16, 0, 0}) 64 | draw.FilledRect(0, top, textWidth + 20, top + textHeight + 20); 65 | local rgb = getHexInput("rab_slowalk_textcolor") 66 | draw.Color(rgb[1], rgb[2], rgb[3], 255); 67 | draw.Text(10, top + 10, text); 68 | gui.SetValue(autostop_keys[i], 0); 69 | else 70 | gui.SetValue(autostop_keys[i], autostop_user_saved_values[i]) 71 | end 72 | end 73 | end) 74 | 75 | function drawColor(selection, hexInput, chromaSpeed, default) 76 | local rgb; 77 | if (gui.GetValue(selection) == 0) then 78 | rgb = getHexInput(hexInput, default); 79 | else 80 | rgb = getFadeRGB(gui.GetValue(chromaSpeed)); 81 | end 82 | draw.Color(rgb[1], rgb[2], rgb[3], 255) 83 | end 84 | 85 | function getFadeRGB(speed) 86 | local r = math.floor(math.sin(globals.RealTime() * speed) * 127 + 128) 87 | local g = math.floor(math.sin(globals.RealTime() * speed + 2) * 127 + 128) 88 | local b = math.floor(math.sin(globals.RealTime() * speed + 4) * 127 + 128) 89 | return {r, g, b}; 90 | end 91 | 92 | function getHexInput(hexInput, default) 93 | local hex = gui.GetValue(hexInput); 94 | hex = hex:gsub("#", ""); 95 | local validHex = validHexColor(hex); 96 | if (validHex == nil) then validHex = "f62222" end; 97 | local rgb = {}; 98 | if hex:len() == 3 then 99 | rgb[1] = (tonumber("0x" .. hex:sub(1, 1) .. hex:sub(1, 1))); 100 | rgb[2] = (tonumber("0x" .. hex:sub(2, 2) .. hex:sub(2, 2))); 101 | rgb[3] = (tonumber("0x" .. hex:sub(3, 3) .. hex:sub(3, 3))); 102 | return rgb; 103 | elseif (hex:len() == 6) then 104 | rgb[1] = (tonumber("0x" .. hex:sub(1, 2))); 105 | rgb[2] = (tonumber("0x" .. hex:sub(3, 4))); 106 | rgb[3] = (tonumber("0x" .. hex:sub(5, 6))); 107 | return rgb; 108 | end; 109 | return default 110 | end 111 | 112 | function validHexColor(color) 113 | return nil ~= (color:find("^%x%x%x%x%x%x$") or color:find("^%x%x%x$")); 114 | end -------------------------------------------------------------------------------- /[LuaScript] Tap Fire.lua: -------------------------------------------------------------------------------- 1 | --[=====[ 2 | Tap Fire Made by Rab(SamzSakerz#4758) 3 | __ __ 4 | |__) /\ |__) 5 | | \ /~~\ |__) 6 | __ __ ___ ___ ___ 7 | / ` |__) |__ /\ | |__ 8 | \__, | \ |___ /~~\ | |___ 9 | ___ __ ___ ___ 10 | | | |__| /\ | /__` |\ | |__ \_/ | 11 | |/\| | | /~~\ | .__/ | \| |___ / \ | 12 | 13 | --]=====] 14 | 15 | local ref = gui.Reference('LEGIT', 'Triggerbot'); 16 | local tapfireKey, lastShot, tapFireDelay = gui.Keybox(ref, 'rab_tapfire_key', 'TapFire Key', 0), 0, 17 | gui.Slider(ref, 'rab_tapfire_delay', 'TapFire Delay', 40, 1, 100); 18 | 19 | callbacks.Register('CreateMove', function(UserCmd) 20 | local key = tapfireKey:GetValue(); 21 | if (key > 0 and input.IsButtonDown(key) and lastShot < globals.RealTime()) then 22 | UserCmd:SetButtons(UserCmd:GetButtons() | (1 << 0)); 23 | local delay = tapFireDelay:GetValue(); 24 | lastShot = globals.RealTime() + delay / 100; 25 | end 26 | end); -------------------------------------------------------------------------------- /[LuaScript] Velocity Graph.lua: -------------------------------------------------------------------------------- 1 | --[=====[ 2 | Velocity Graph Made by Rab(SamzSakerz#4758) 3 | __ __ 4 | |__) /\ |__) 5 | | \ /~~\ |__) 6 | __ __ ___ ___ ___ 7 | / ` |__) |__ /\ | |__ 8 | \__, | \ |___ /~~\ | |___ 9 | ___ __ ___ ___ 10 | | | |__| /\ | /__` |\ | |__ \_/ | 11 | |/\| | | /~~\ | .__/ | \| |___ / \ | 12 | 13 | --]=====] 14 | 15 | -- Create UI 16 | local windowW, windowH = 250, 400; 17 | local mainWindow = gui.Window("rab_velocity_graph_menu", "Velocity Graph", 200, 200, windowW, windowH); 18 | local settingsGroup = gui.Groupbox(mainWindow, "Settings", 13, 13, windowW - 25, windowH - 55); 19 | local enable = gui.Checkbox(settingsGroup, "rab_velocity_graph_enabled", "Enable", true); 20 | -- Speed Indicator Settings 21 | local uiSpeed = gui.Checkbox(settingsGroup, "rab_velocity_graph_speed_indicator", "Enable Speed Indicator", true); 22 | 23 | -- Graph Settings 24 | local menuPressed = 1; 25 | local uiGraph = gui.Checkbox(settingsGroup, "rab_velocity_graph_graph_ui", "Enable Graph UI", true); 26 | local uiGraphJumps = gui.Checkbox(settingsGroup, "rab_velocity_graph_ui_jumps", "Enable Graph UI Jumps", true); 27 | local uiGraphWidth = gui.Slider(settingsGroup, "rab_velocity_graph__ui_width", "Speed graph width", 250, 1, 700); 28 | local uiGraphMaxY = gui.Slider(settingsGroup, "rab_velocity_graph_ui_maxy", "Speed graph max speed", 400, 1, 5000); 29 | local uiGraphCompression = gui.Slider(settingsGroup, "rab_velocity_graph_ui_compress", "Speed graph compression", 3, 1, 15); 30 | local uiGraphFreq = gui.Slider(settingsGroup, "rab_velocity_graph_ui_freq", "Speed graph delay", 0, 0, 150); 31 | local uiGraphSpread = gui.Slider(settingsGroup, "rab_velocity_graph_ui_spread", "Speed graph spread", 1, 1, 50); 32 | local uiGraphColorType = gui.Combobox(settingsGroup, "rab_velocity_graph_ui_colortype", "Spread Graph Color Type", "Static", "Gradient Chroma", "Static Chroma"); 33 | local uiGraphColorRed = gui.Slider(settingsGroup, "rab_velocity_graph_ui_red", "Red", 255, 0, 255); 34 | local uiGraphColorGreen = gui.Slider(settingsGroup, "rab_velocity_graph_ui_green", "Green", 255, 0, 255); 35 | local uiGraphColorBlue = gui.Slider(settingsGroup, "rab_velocity_graph_ui_blue", "Blue", 255, 0, 255); 36 | local uiGraphStaticChromaSpeed = gui.Slider(settingsGroup, "rab_velocity_graph_ui_static_chroma_speed", "Static Chroma Speed", 1, 1, 10); 37 | local uiGraphAlpha = gui.Slider(settingsGroup, "rab_velocity_graph_ui_alpha", "Speed graph alpha", 255, 0, 255); 38 | 39 | 40 | -- Super Spoopy Stuff 41 | local superSpoopyIndeed = 0; 42 | 43 | -- Define needed vars 44 | local graphJump, graphLand, playerIsJumping, jumpPos, landPos, speed = false, false, false, {}, {}, 0; 45 | local lastDelay, lastGraph, prevTick, lastVelocity = 0, 0, 0, 0; 46 | local graphHistory = {}; 47 | local main_font = draw.CreateFont("Arial", 16); 48 | local font_small = draw.CreateFont("Arial", 12); 49 | 50 | local function round(number, decimals) 51 | local power = 10 ^ decimals 52 | return math.floor(number * power) / power 53 | end 54 | 55 | -- Gets prop float 56 | local function getPropFloat(lp, wat) 57 | return lp:GetPropFloat("localdata", wat) 58 | end 59 | 60 | local function colour(dist) 61 | if dist >= 235 then 62 | return { 255, 137, 34 } 63 | elseif dist >= 230 then 64 | return { 255, 33, 33 } 65 | elseif dist >= 227 then 66 | return { 57, 204, 96 } 67 | elseif dist >= 225 then 68 | return { 91, 225, 255 } 69 | else 70 | return { 170, 170, 170 } 71 | end 72 | end 73 | function HUEtoRGB(h) 74 | local z = math.floor(h / 60) 75 | local hi = z % 6; 76 | local f = h / 60 - z; 77 | 78 | local r = hi == 0 and 1 79 | or hi == 1 and (1 - f) 80 | or hi == 2 and 0 81 | or hi == 3 and 0 82 | or hi == 4 and 1 - (1 - f) 83 | or hi == 5 and 1 84 | or 0; 85 | 86 | local g = hi == 0 and 1 - (1 - f) 87 | or hi == 1 and 1 88 | or hi == 2 and 1 89 | or hi == 3 and 1 - f 90 | or hi == 4 and 0 91 | or hi == 5 and 0 92 | or 0; 93 | 94 | local b = hi == 0 and 0 95 | or hi == 1 and 0 96 | or hi == 2 and 1 - (1 - f) 97 | or hi == 3 and 1 98 | or hi == 4 and 1 99 | or hi == 5 and 1 - f 100 | or 0; 101 | 102 | return r * 255, g * 255, b * 255; 103 | end 104 | local function getFadeRGB(rgbSpeed) 105 | local r = math.floor(math.sin(globals.RealTime() * rgbSpeed) * 127 + 128) 106 | local g = math.floor(math.sin(globals.RealTime() * rgbSpeed + 2) * 127 + 128) 107 | local b = math.floor(math.sin(globals.RealTime() * rgbSpeed + 4) * 127 + 128) 108 | return r, g, b; 109 | end 110 | local function drawGraph(velocity, x, y, tickCount) 111 | local alpha, width, compress, spread = uiGraphAlpha:GetValue(), uiGraphWidth:GetValue(), uiGraphCompression:GetValue(), uiGraphSpread:GetValue(); 112 | x = x - (width / 2) 113 | if ((lastGraph + uiGraphFreq:GetValue()) < tickCount) then 114 | local temp = { }; 115 | temp.velocity = math.min(velocity, uiGraphMaxY:GetValue()); 116 | if (graphJump) then 117 | graphJump, temp.jump, temp.speed, temp.jumpPos = false, true, speed, jumpPos; 118 | end 119 | if (graphLand) then 120 | graphLand, temp.landed, temp.landPos = false, true, landPos 121 | end 122 | table.insert(graphHistory, temp) 123 | lastGraph = tickCount 124 | end 125 | local over = #graphHistory - (width / spread); 126 | if (over > 0) then 127 | table.remove(graphHistory, 1) 128 | end 129 | for i = 2, #graphHistory, 1 do 130 | local curVelocity, prevVelocity = graphHistory[i].velocity, graphHistory[i - 1].velocity; 131 | local curX, prevX = x + (i * spread), x + ((i - 1) * spread); 132 | local curY, prevY = y - (curVelocity / compress), y - (prevVelocity / compress); 133 | if (uiGraphJumps:GetValue()) then 134 | if graphHistory[i].jump then 135 | local index 136 | for q = i + 1, #graphHistory, 1 do 137 | if (graphHistory[q].jump or graphHistory[q].landed) then 138 | index = q 139 | break 140 | end 141 | end 142 | if (index) then 143 | if graphHistory[index].landPos and graphHistory[index].landPos[1] then 144 | local jSpeed = graphHistory[i].speed 145 | local lSpeed = graphHistory[index].velocity 146 | local speedGain = lSpeed - jSpeed 147 | if speedGain > -100 then 148 | local jPos = graphHistory[i].jumpPos 149 | local lPos = graphHistory[index].landPos 150 | local dist = math.sqrt((math.abs(lPos[1] - jPos[1]) ^ 2.0) + (math.abs(lPos[2] - jPos[2]) ^ 2.0)) + 32 151 | if dist > 150 then 152 | local jumpX = curX - 1 153 | local jumpY = curY 154 | local landX = x + (index * spread) 155 | local landY = y - (graphHistory[index].velocity / compress) 156 | local topY = landY - 13 157 | if topY > jumpY or topY > jumpY - 13 then 158 | topY = jumpY - 13 159 | end 160 | local text = speedGain > 0 and "+" or "" 161 | text = text .. speedGain; 162 | local middleX = (jumpX + landX) / 2 163 | draw.SetFont(font_small); 164 | draw.Color(255, 255, 255, alpha) 165 | draw.Text(middleX, topY - 13, text) 166 | local ljColour = colour(dist) 167 | draw.SetFont(font_small); 168 | draw.Color(ljColour[1], ljColour[2], ljColour[3], alpha) 169 | draw.Text(middleX, topY, "(" .. round(dist, 0) .. ")") 170 | end 171 | end 172 | end 173 | end 174 | end 175 | end 176 | local colorType = uiGraphColorType:GetValue(); 177 | local r, g, b = uiGraphColorRed:GetValue(), uiGraphColorGreen:GetValue(), uiGraphColorBlue:GetValue(); 178 | if (colorType == 1) then 179 | r, g, b = HUEtoRGB((i) - superSpoopyIndeed); 180 | elseif (colorType == 2) then 181 | r, g, b = getFadeRGB(uiGraphStaticChromaSpeed:GetValue()); 182 | end 183 | draw.Color(r, g, b, alpha) 184 | draw.Line(prevX, prevY, curX, curY) 185 | end 186 | superSpoopyIndeed = superSpoopyIndeed + 1; 187 | if (superSpoopyIndeed == 360) then 188 | superSpoopyIndeed = 0; 189 | end 190 | end 191 | 192 | callbacks.Register('FireGameEvent', function(e) 193 | local en = e:GetName(); 194 | if (en == "game_start" or en == "round_start") then 195 | graphJump, graphLand, playerIsJumping, jumpPos, landPos, speed = false, false, false, {}, {}, 0; 196 | lastDelay, lastGraph, prevTick, lastVelocity = 0, 0, 0, 0; 197 | graphHistory = {}; 198 | end 199 | end) 200 | 201 | callbacks.Register("Draw", function() 202 | -- Set the visibility of our settings window. 203 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 204 | menuPressed = menuPressed == 0 and 1 or 0; 205 | end 206 | mainWindow:SetActive(menuPressed); 207 | if (enable:GetValue() ~= true) then 208 | return 209 | end 210 | local lp = entities.GetLocalPlayer(); -- Get our local entity and check if its `nil`, If it's nil lets abort from here 211 | if (lp == nil or lp:IsAlive() ~= true) then 212 | graphJump, graphLand, playerIsJumping, jumpPos, landPos, speed = false, false, false, {}, {}, 0; 213 | lastDelay, lastGraph, prevTick, lastVelocity = 0, 0, 0, 0; 214 | graphHistory = {}; 215 | return 216 | end 217 | -- entity isn't nil lets start our code from here 218 | local flags = lp:GetProp('m_fFlags'); 219 | local playerIsInGround = (flags & 1) ~= 0 -- bitwise and (m & n) 220 | local moveType = lp:GetPropInt('movetype'); 221 | if (moveType == 9) then 222 | playerIsJumping = false; 223 | end 224 | local x, y, z = lp:GetAbsOrigin(); 225 | local vX, vY = getPropFloat(lp, 'm_vecVelocity[0]'), getPropFloat(lp, 'm_vecVelocity[1]'); 226 | if (playerIsInGround ~= true and playerIsJumping ~= true) then 227 | graphJump, playerIsJumping, jumpPos, speed = true, true, { x, y, z }, math.floor(math.min(9999, math.sqrt(vX ^ 2 + vY ^ 2)) + 0.2); 228 | end 229 | if (playerIsInGround and playerIsJumping) then 230 | playerIsJumping, graphLand, landPos = false, true, { x, y, z }; 231 | end 232 | if (lastDelay == 0 or lastDelay + 4 < globals.RealTime()) then 233 | speed = 0; 234 | lastDelay = globals.RealTime(); 235 | end 236 | local velocity = math.floor(math.min(10000, math.sqrt(vX * vX + vY * vY) + 0.5)) 237 | local screenX, screenY = draw.GetScreenSize(); 238 | local bottomX, bottomY = screenX / 2, screenY / 1.2; 239 | if (uiSpeed:GetValue()) then 240 | local r, g, b = 255, 255, 255 241 | if lastVelocity < velocity then 242 | r, g, b = 30, 255, 109 243 | end 244 | if lastVelocity == velocity then 245 | r, g, b = 255, 199, 89 246 | end 247 | if lastVelocity > velocity then 248 | r, g, b = 255, 119, 119 249 | end 250 | local text = velocity; 251 | if speed ~= 0 then 252 | text = text .. " (" .. speed .. ")" 253 | end 254 | draw.SetFont(main_font) 255 | draw.Color(r, g, b, 255) 256 | local tW, _ = draw.GetTextSize(text); 257 | draw.Text(bottomX - tW / 2, bottomY, text) 258 | end 259 | local tickCount = globals.TickCount(); 260 | if (uiGraph:GetValue()) then 261 | drawGraph(velocity, bottomX, bottomY - (bottomY * 0.03), tickCount) 262 | end 263 | if (prevTick + 5) < tickCount then 264 | lastVelocity, prevTick = velocity, tickCount; 265 | end 266 | end) -------------------------------------------------------------------------------- /[LuaScript] Victory Royale.lua: -------------------------------------------------------------------------------- 1 | local pngData = http.Get("https://rab.wtf/csgo/aimware/victory_royale.png"); 2 | local imgRGBA, imgWidth, imgHeight = common.DecodePNG(pngData); 3 | local texture = draw.CreateTexture(imgRGBA, imgWidth, imgHeight) 4 | local alpha, delay = -1, -1; 5 | 6 | callbacks.Register('FireGameEvent', function(e) 7 | local en = e:GetName(); 8 | if (en ~= "round_end") then return end; 9 | local winner, localPlayer = e:GetInt("winner"), entities.GetLocalPlayer(); 10 | local winner2 = entities.GetByUserID(winner); 11 | if (localPlayer ~= nil and (localPlayer:GetTeamNumber() == winner or (winner2 ~= nil and localPlayer:GetIndex() == winner2:GetIndex()))) then 12 | alpha, delay = 0, globals.RealTime() + 4; 13 | client.Command("playvol *victory_royale.mp3 1", true); 14 | end 15 | end) 16 | 17 | callbacks.Register("Draw", function() 18 | if (alpha == -1 and delay == -1) then return end; 19 | if (alpha == 0 and delay == -1) then alpha = -1 return end; 20 | if (alpha < 255 and delay ~= -1) then 21 | alpha = alpha + 1; 22 | end; 23 | if delay == -1 then 24 | alpha = alpha - 1 25 | end; 26 | if (globals.RealTime() > delay) then 27 | delay = -1; 28 | end; 29 | local w, h = draw.GetScreenSize(); 30 | local x = (w - imgWidth) / 2; 31 | local y = (h - imgHeight) / 8; 32 | draw.Color(255, 255, 255, alpha); 33 | draw.SetTexture(texture); 34 | draw.FilledRect(x, y, x + imgWidth, y + imgHeight); 35 | end); 36 | 37 | client.AllowListener('round_end'); -------------------------------------------------------------------------------- /[Release] Aimware Mind Control.lua: -------------------------------------------------------------------------------- 1 | local menuPressed, showBots, showEnemies, showTeam, selected, scroll, nameToSteal = 1, false, true, true, 0, 0, nil; 2 | 3 | --gui code 4 | mgui={}local c={}local d={}local e={{}}local f={}f.outline=function(h,i,j,k,l)draw.Color(l[1],l[2],l[3],l[4])draw.OutlinedRect(h,i,h+j,i+k)end;f.rect=function(h,i,j,k,l)draw.Color(l[1],l[2],l[3],l[4])draw.FilledRect(h,i,h+j,i+k)end;f.rect2=function(h,i,j,k)draw.FilledRect(h,i,h+j,i+k)end;f.gradient=function(h,i,j,k,m,n,o)f.rect(h,i,j,k,m)local r,g,b=n[1],n[2],n[3]if o then for p=1,k do local a=p/k*255;f.rect(h,i+p,j,1,{r,g,b,a})end else for p=1,j do local a=p/j*255;f.rect(h+p,i,1,k,{r,g,b,a})end end end;f.text=function(h,i,q,l,s)if s~=nil then draw.SetFont(s)end;draw.Color(l[1],l[2],l[3],l[4])draw.Text(h,i,q)end;mgui.checkbox=function(t,u,v,w,x,y,z)local A=false;if c[y][1]==null then c[y]={x}else A=c[y][1]end;local B=t+d[z][1]local C=u+d[z][2]if mgui.mouse_mov(B,C,16,v)and e[1][7]~=true then mgui.color_aw("gui_controls3")else mgui.color_aw("gui_groupbox_background")end;drawing.block(B,C,21,v)if mgui.mouse_mov(B,C,16,v)and e[1][7]~=true then if A then mgui.color_aw("gui_checkbox_on_hover")else mgui.color_aw("gui_checkbox_off_hover")end;if input.IsButtonPressed(1)then mgui.color_aw("gui_checkbox_on_hover")if c[y][1]==false then c[y][1]=true else c[y][1]=false end end else if A then mgui.color_aw("gui_checkbox_on")else mgui.color_aw("gui_checkbox_off")end end;drawing.block_round(B+4,C+5,12,12)if A then mgui.color_aw("gui_controls2")else mgui.color_aw("gui_controls3")end;if mgui.mouse_mov(B,C,16,v)and e[1][7]~=true then mgui.color_aw("gui_controls2")end;drawing.encircle_round(B+4,C+5,12,12)local D=B+17;local E=C-1;mgui.color_aw("gui_text2")draw.Text(D+4,E+5,w)return A end;mgui.button=function(t,u,F,v,w,y,z)local B,C;if c[y][1]then else c[y]={false}end;if z==0 then B=t;C=u else B=t+d[z][1]C=u+d[z][2]end;local G=false;if mgui.mouse_mov(B,C,F,v)and e[1][7]~=true then mgui.color_aw("gui_button_hover")if input.IsButtonDown(1)then mgui.color_aw("gui_button_clicked")end;if input.IsButtonPressed(1)then G=true end else mgui.color_aw("gui_button_idle")end;drawing.block_round(B,C,F,v)local H,I=draw.GetTextSize(w)local D=B+v/2-H/2;local E=C+F/2-I/2;mgui.color_aw("gui_text1")draw.Text(D,E,w)return G end;local function J(a,b,K,L,M,N)if a>=K and a<=M and b>=L and b<=N then return true else return false end end;local function O(P,Q,R)if PR then return R end;return P end;mgui.listbox=function(h,i,S,T,U,V,z)h=h+d[z][1]i=i+d[z][2]if(#S-T)*20>=T*20 then while(#S-T)*20>=T*20 do T=T+1 end end;local k=T*20;local r,g,b,a=gui.GetValue("clr_gui_listbox_outline")f.outline(h,i,155,k+2,{r,g,b,a})r,g,b,a=gui.GetValue("clr_gui_listbox_background")f.rect(h+1,i+1,153,k,{r,g,b,a})local W=0;local X=0;local Y=false;for p=1,#S do local r,g,b,a=181,181,181,255;local Z=i+p*20-19-V*20;local _=true;if Z>i+k then _=false;W=W+1;Y=true elseif Z=a7 and m_x<=a7+d[y][4]and m_y>=a8-25 and m_y<=a8 and d[y][3]==false then d[y][3]=true;ab=m_x-a7;aa=m_y-a8+25 end else d[y][3]=false end end;mgui.mouse_mov=function(t,u,F,v)m_x,m_y=input.GetMousePos()if m_x>=t and m_x<=t+v and m_y>=u and m_y<=u+F then return true end end;mgui.color_aw=function(ac)r,g,b,a=gui.GetValue("clr_"..ac)draw.Color(r,g,b,a)end;mgui.max_component=function(ad,ae)if c[1]==null then for p=1,ae do table.insert(c,{})end;for p=1,ad do table.insert(d,{})end end end;drawing={}drawing.block=function(t,u,F,v)draw.FilledRect(t,u,t+v,u+F)end;drawing.block_round=function(t,u,F,v)draw.RoundedRectFill(t,u,t+v,u+F)end;drawing.encircle=function(t,u,F,v)draw.OutlinedRect(t,u,t+v,u+F)end;drawing.encircle_round=function(t,u,F,v)draw.RoundedRect(t,u,t+v,u+F)end;drawing.shadow=function(t,u,F,v)alpha=100;left_s=t;top_s=u;height_s=F;width_s=v;for p=1,1 do alpha=alpha-20;left_s=left_s-1;top_s=top_s-1;height_s=height_s+2;width_s=width_s+2;draw.Color(10,10,10,alpha)drawing.encircle(left_s,top_s,height_s,width_s)end;alpha=20;for p=1,10 do alpha=alpha-2;if alpha<0 then break end;left_s=left_s-1;top_s=top_s-1;height_s=height_s+2;width_s=width_s+2;draw.Color(10,10,10,alpha)drawing.encircle(left_s,top_s,height_s,width_s)end end 5 | 6 | local function fetchPlayers() 7 | local playerNames, playerIndexs, players, lp, index = {}, {}, entities.FindByClass("CCSPlayer"), entities.GetLocalPlayer(), 1; 8 | for i = 1, #players do 9 | local player = players[i]; 10 | local pIndex = player:GetIndex(); 11 | if (player:IsPlayer() and (pIndex ~= lp:GetIndex() and pIndex ~= 1)) then 12 | local ping = entities.GetPlayerResources():GetPropInt("m_iPing", pIndex); 13 | local teamNumber = player:GetTeamNumber(); 14 | local lTeamNumber = lp:GetTeamNumber(); 15 | local shouldAdd = true; 16 | if (ping < 0) then 17 | if (showBots ~= true) then 18 | shouldAdd = false; 19 | end 20 | end; 21 | if (teamNumber ~= lTeamNumber) then 22 | if (showEnemies ~= true) then 23 | shouldAdd = false; 24 | end 25 | end; 26 | if (teamNumber == lTeamNumber) then 27 | if (showTeam ~= true) then 28 | shouldAdd = false; 29 | end 30 | end; 31 | if (shouldAdd) then 32 | playerNames[index] = player:GetName(); 33 | playerIndexs[index] = pIndex; 34 | index = index + 1; 35 | end; 36 | end; 37 | end; 38 | return { playerNames, playerIndexs }; 39 | end 40 | 41 | local function stealName() 42 | if (nameToSteal ~= nil) then 43 | client.SetConVar("name", '​' .. nameToSteal, 0) 44 | end; 45 | end 46 | 47 | callbacks.Register("Draw", function() 48 | stealName(); 49 | if input.IsButtonPressed(gui.GetValue("msc_menutoggle")) then 50 | menuPressed = menuPressed == 0 and 1 or 0; 51 | end 52 | if (menuPressed == 0) then return end; 53 | 54 | mgui.max_component(10, 100) 55 | 56 | mgui.menu(25, 25, 300, 630, "Mind Control", 1) 57 | 58 | mgui.panel(25, 25, 245, 175, "Players", 2, 1) 59 | local players = fetchPlayers(); 60 | selected, scroll = mgui.listbox(35, 35, players[1], 11, selected, scroll, 1) 61 | mgui.panel(225, 25, 150, 175, "Player Info", 3, 1) 62 | local lp = entities.GetLocalPlayer(); 63 | if (players[2] ~= nil) then 64 | local player = entities.GetByIndex(players[2][selected]); 65 | if (player ~= nil) then 66 | local playerIndex = player:GetIndex(); 67 | mgui.label(235, 35, "Name: " .. player:GetName(), 31, 1); 68 | mgui.label(235, 45, "Index: " .. playerIndex, 32, 1); 69 | local team = "Unknown"; 70 | local teamNumber = player:GetTeamNumber(); 71 | if (teamNumber == 1) then 72 | team = "Spectator"; 73 | elseif (teamNumber == 2) then 74 | team = "Terrorist"; 75 | elseif (teamNumber == 3) then 76 | team = "Counter Terrorist"; 77 | end; 78 | mgui.label(235, 55, "Team: " .. team, 4, 1); 79 | mgui.label(235, 65, "Team Number: " .. teamNumber, 33, 1); 80 | local callVoteButtonPad = 0; 81 | if (lp:GetTeamNumber() == teamNumber) then 82 | callVoteButtonPad = 25; 83 | if mgui.button(235, 80, 22, 130, "Callvote Kick", 34, 1) then 84 | local player_info = client.GetPlayerInfo(playerIndex); 85 | client.Command("callvote kick " .. player_info['UserID']); 86 | end 87 | end; 88 | if mgui.button(235, callVoteButtonPad + 80, 22, 130, "Steal Name", 35, 1) then 89 | nameToSteal = player:GetName(); 90 | end 91 | end; 92 | end; 93 | mgui.panel(225, 190, 80, 185, "About Mind Control", 4, 1) 94 | mgui.label(235, 210, "Author: Rab", 41, 1); 95 | mgui.label(235, 225, "Author Discrd: SamzSakerz#4758", 42, 1); 96 | mgui.label(235, 240, "Credits: QBER (For GUI API)", 43, 1); 97 | 98 | 99 | mgui.panel(420, 25, 100, 185, "Settings", 5, 1) 100 | showBots = mgui.checkbox(430, 40, 85, "Show Bots", showBots, 51, 1); 101 | showEnemies = mgui.checkbox(430, 60, 85, "Show Enemies", showEnemies, 52, 1); 102 | showTeam = mgui.checkbox(430, 80, 85, "Show Team", showTeam, 53, 1); 103 | 104 | mgui.panel(420, 150, 125, 175, "Misc", 6, 1) 105 | if mgui.button(430, 170, 22, 130, "Scramble Teams", 61, 1) then 106 | client.Command("callvote ScrambleTeams"); 107 | end 108 | if mgui.button(430, 195, 22, 130, "Switch Teams", 62, 1) then 109 | client.Command("callvote SwapTeams"); 110 | end 111 | local mapName = engine.GetMapName(); 112 | if mgui.button(430, 220, 22, 130, "Change Level", 63, 1) then 113 | if (mapName ~= nil) then 114 | client.Command("callvote ChangeLevel " .. mapName); 115 | end 116 | end 117 | if mgui.button(430, 245, 22, 130, "Clear Name History", 64, 1) then 118 | client.Command("callvote ScrambleTeams"); 119 | end 120 | mgui.menu_mouse(1); 121 | end); --------------------------------------------------------------------------------