Lua C-Binder

- |2347| -

Известный
Автор темы
401
182
C-Binder
Простой и эффективный биндер для повседневных задач



Описание
Легкий биндер, предназначенный для быстрой отправки заранее заготовленных фраз в чат. Минимум лишних функций, максимум быстродействия. Идеально подходит для игроков Arizona RP благодаря встроенному фиксу конфликтов клавиш.

Основные возможности
  • Горячие клавиши: Использование комбинации B + [1-0] для мгновенной отправки нужной строки.
  • Fix BattlePass: Автоматическое отключение открытия меню BP на кнопку B для комфортной работы биндера на Arizona RP.
  • Автосохранение: Все ваши настройки и тексты сохраняются в файл C-Binder.ini.




Управление
  • Открыть настройки: /bset
  • Использование: Зажмите клавишу B и нажмите любую цифру от 1 до 0.

1729862593174.png




Техническая информация
Требования: mimgui
Оригинальный скрипт (источник вдохновения): Classic Binder





Обратная связь
Нужно больше слотов для биндов или поддержка дополнительных клавиш-модификаторов? Пишите в теме!
 

Вложения

  • C-Binder.lua
    2.4 KB · Просмотры: 153
Последнее редактирование:
  • Нравится
Реакции: ddoseek и Deanytb

chapo

tg/inst: @moujeek
Всефорумный модератор
9,203
12,534
вместо
Lua:
 if  isKeyDown(66) and isKeyJustPressed(VK_1) then
      sampSendChat("" .. u8:decode(mainIni.config.b1))---Команда №1
      end
      
      if  isKeyDown(66) and isKeyJustPressed(VK_2) then
      sampSendChat("" .. u8:decode(mainIni.config.b2))---Команда №2
      end
      
      if  isKeyDown(66) and isKeyJustPressed(VK_3) then
      sampSendChat("" .. u8:decode(mainIni.config.b3))---Команда №3
      end
      
      if  isKeyDown(66) and isKeyJustPressed(VK_4) then
      sampSendChat("" .. u8:decode(mainIni.config.b4))---Команда №4
      end
      
      if  isKeyDown(66) and isKeyJustPressed(VK_5) then
      sampSendChat("" .. u8:decode(mainIni.config.b5))---Команда №5
      end
      
      if  isKeyDown(66) and isKeyJustPressed(VK_6) then
      sampSendChat("" .. u8:decode(mainIni.config.b6))---Команда №6
      end
      
      if  isKeyDown(66) and isKeyJustPressed(VK_7) then
      sampSendChat("" .. u8:decode(mainIni.config.b7))---Команда №7
      end
      
      if  isKeyDown(66) and isKeyJustPressed(VK_8) then
      sampSendChat("" .. u8:decode(mainIni.config.b8))---Команда №8
      end
      
      if  isKeyDown(66) and isKeyJustPressed(VK_9) then
      sampSendChat("" .. u8:decode(mainIni.config.b9))---Команда №9
      end
      
      if  isKeyDown(66) and isKeyJustPressed(VK_0) then
     sampSendChat("" .. u8:decode(mainIni.config.b0))---Команда №0
      end
можно было
Lua:
for i = 1, 9 do
    if isKeyDown(66) and isKeyJustPressed(_G['VK_'..i]) then
        sampSendChat(u8:decode(mainIni.config['b'..i]))
    end
end
 

- |2347| -

Известный
Автор темы
401
182
вместо
Lua:
 if  isKeyDown(66) and isKeyJustPressed(VK_1) then
      sampSendChat("" .. u8:decode(mainIni.config.b1))---Команда №1
      end
     
      if  isKeyDown(66) and isKeyJustPressed(VK_2) then
      sampSendChat("" .. u8:decode(mainIni.config.b2))---Команда №2
      end
     
      if  isKeyDown(66) and isKeyJustPressed(VK_3) then
      sampSendChat("" .. u8:decode(mainIni.config.b3))---Команда №3
      end
     
      if  isKeyDown(66) and isKeyJustPressed(VK_4) then
      sampSendChat("" .. u8:decode(mainIni.config.b4))---Команда №4
      end
     
      if  isKeyDown(66) and isKeyJustPressed(VK_5) then
      sampSendChat("" .. u8:decode(mainIni.config.b5))---Команда №5
      end
     
      if  isKeyDown(66) and isKeyJustPressed(VK_6) then
      sampSendChat("" .. u8:decode(mainIni.config.b6))---Команда №6
      end
     
      if  isKeyDown(66) and isKeyJustPressed(VK_7) then
      sampSendChat("" .. u8:decode(mainIni.config.b7))---Команда №7
      end
     
      if  isKeyDown(66) and isKeyJustPressed(VK_8) then
      sampSendChat("" .. u8:decode(mainIni.config.b8))---Команда №8
      end
     
      if  isKeyDown(66) and isKeyJustPressed(VK_9) then
      sampSendChat("" .. u8:decode(mainIni.config.b9))---Команда №9
      end
     
      if  isKeyDown(66) and isKeyJustPressed(VK_0) then
     sampSendChat("" .. u8:decode(mainIni.config.b0))---Команда №0
      end
можно было
Lua:
for i = 1, 9 do
    if isKeyDown(66) and isKeyJustPressed(_G['VK_'..i]) then
        sampSendChat(u8:decode(mainIni.config['b'..i]))
    end
end
Спасибо за совет