Lua C-Binder

Vombat138

Участник
Автор темы
106
20
C-Binder-04-06-2023.png

Описание: Простой биндер.

Команды:
/bset
- Активация скрипта.

Возможности:
1.
B + [1-0] — Отправить в чат строку по номеру.
2.Оключение BattlePass на кнопку B для ARZ.
3.Весь текст и настройки сохраняются в C-Binder.ini.


binder.png

Требования
mimgui



Оригинальный скрипт: тык
 

Вложения

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

chapo

🫡 В армии с 17.10.2023. В ЛС НЕ ОТВЕЧАЮ
Друг
8,747
11,157
вместо
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
 

Vombat138

Участник
Автор темы
106
20
вместо
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
Спасибо за совет