- 7
- 0
- Версия SA-MP
-
- Любая
у меня есть бот на ферму новичков и что бы активировать его нужно нажать F3 помогите изменить активацию на cntr+w или же просто на любую букву цифру
Код:
script_name('Farm Bot')
script_author('kopnev')
script_version('1.7')
script_version_number(17)
local sampev = require 'lib.samp.events'
local inicfg = require 'inicfg'
local imgui = require 'imgui'
local imadd = require 'imgui_addons'
local encoding = require 'encoding'
local effil = require 'effil'
local memory = require 'memory'
local rkeys = require 'rkeys'
local vkeys = require 'vkeys'
local dlstatus = require('moonloader').download_status
encoding.default = 'CP1251'
u8 = encoding.UTF8
local main_windows_state = imgui.ImBool(false)
local settings_window = imgui.ImBool(false)
local loop_window = imgui.ImBool(false)
local changelog_window = imgui.ImBool(false)
local sat_flag = false -- https://blast.hk/threads/31640/
local sat_full = false
local f_scrText_state = false
local hun = 0
local textdraw = { numb = 549.5, del = 54.5, {549.5, 60, -1436898180}, {547.5, 58, -16777216}, {549.5, 60, 1622575210} }
local def = {
settings = {
theme = 7,
style = 1,
vkladka = 5,
reload = false,
reloadR = false,
post = 0,
limit = true,
lim = 30,
limit1 = true,
lim1 = 4,
key1 = 114,
helptext = true,
b_loop = false,
d_loop = 350,
uahungry = false,
hungry = false,
animsuse = false,
anims = "/anims 32",
altbot = false,
animsbot = false,
chipsbot = false,
fishbot = false,
venisonbot = false,
venisonbotbag = false,
idVK = 0,
auto = false,
bg = false,
faedit = false,
invisible = false,
},
vk = {
token = "",
id = 0,
InChat = true,
ot = true,
manage = false,
active = false,
cord = true,
hp = true
}
}
local directIni = "KopnevScripts\\Farm Bot.ini"
local ini = inicfg.load(def, directIni)
local faedit = imgui.ImBool(ini.settings.faedit)
local faico = faedit.v
if faico then
fa = require 'fAwesome5'
fa_font = nil
fa_glyph_ranges = imgui.ImGlyphRanges({ fa.min_range, fa.max_range })
end
local InChat = imgui.ImBool(ini.vk.InChat)
local ot = imgui.ImBool(ini.vk.ot)
local manage = imgui.ImBool(ini.vk.manage)
local active = imgui.ImBool(ini.vk.active)
local cord = imgui.ImBool(ini.vk.cord)
local hp = imgui.ImBool(ini.vk.hp)
local style = imgui.ImInt(ini.settings.style)
local b_loop = imgui.ImBool(ini.settings.b_loop)
local d_loop = imgui.ImInt(ini.settings.d_loop)
local tema = imgui.ImInt(ini.settings.theme)
local post = imgui.ImInt(ini.settings.post)
local limit = imgui.ImBool(ini.settings.limit)
local lim = imgui.ImInt(ini.settings.lim)
local helptext = imgui.ImBool(ini.settings.helptext)
local limit1 = imgui.ImBool(ini.settings.limit1)
local lim1 = imgui.ImInt(ini.settings.lim1)
local uahungry = imgui.ImBool(ini.settings.uahungry)
local hungry = imgui.ImBool(ini.settings.hungry)
local animsuse = imgui.ImBool(ini.settings.animsuse)
local anims = imgui.ImBuffer(ini.settings.anims, 32)
local altbot = imgui.ImBool(ini.settings.altbot)
local animsbot = imgui.ImBool(ini.settings.animsbot)
local chipsbot = imgui.ImBool(ini.settings.chipsbot)
local fishbot = imgui.ImBool(ini.settings.fishbot)
local venisonbot = imgui.ImBool(ini.settings.venisonbot)
local venisonbotbag = imgui.ImBool(ini.settings.venisonbotbag)
local invisible = imgui.ImBool(ini.settings.invisible)
local auto = imgui.ImBool(ini.settings.auto)
local bg = imgui.ImBool(ini.settings.bg)
local idVK = imgui.ImInt(ini.settings.idVK)
local GroupToken = imgui.ImBuffer(ini.vk.token, 128)
local id = imgui.ImInt(ini.vk.id)
value = 0
value1 = 0
work = false
work1 = false
gopoint = false
onpoint = false
bplant = false
success = false
onpoint2 = false
ww = false
gopay = false
zdorov = false
gou = false
num = 0
local vkladki = {
false,
false,
false,
false,
false,
false,
}
vkladki[ini.settings.vkladka] = true
local ActiveMenu = {
v = {ini.settings.key1,ini.settings.key2}
}
local bindID = 0
local tLastKeys = {}
local items = {
u8"Тёмная тема",
u8"Синия тема",
u8"Красная тема",
u8"Голубая тема",
u8"Зелёная тема",
u8"Оранжевая тема",
u8"Фиолетовая тема",
u8"Тёмно-светлая тема"
}
local styles = {
u8'Строгий',
u8'Мягкий'
}
local posts = {
u8"Начальный фермер",
u8"Тракторист",
u8"Комбайнер"
}