Луа скрипт

TolikEbolik!

Участник
Автор темы
44
2
При нажатии кнопки активации скрипта активируется при открытом чате, вопрос как убрать активацию при открытом чате?
 
Решение
Lua:
require "lib.moonloader"
function main()
  if not isSampfuncsLoaded() or not isSampLoaded() then return end
  while not isSampAvailable() do wait(100) end
  while true do
  wait(0)
if not sampIsChatInputActive() then
    if isKeyDown(VK_B) and isKeyJustPressed(VK_E) then
      sampSendChat("/beer")
    end
    if isKeyDown(VK_A) and isKeyJustPressed(VK_H) then
      sampSendChat("/armour")
      end
      if isKeyJustPressed(VK_L) then
      sampSendChat("/lock")
      end
      end
   end
   end

TolikEbolik!

Участник
Автор темы
44
2
внедри его в этот код, я просто тупой
Код:
require "lib.moonloader"
function main()
  if not isSampfuncsLoaded() or not isSampLoaded() then return end
  while not isSampAvailable() do wait(100) end
  while true do
  wait(0)
    if isKeyDown(VK_B) and isKeyJustPressed(VK_E) then
      sampSendChat("/beer")
    end
    if isKeyDown(VK_A) and isKeyJustPressed(VK_H) then
      sampSendChat("/armour")
      end
      if isKeyJustPressed(VK_L) then
      sampSendChat("/lock")
      end
   end
   end
 

Albertio

Attention! Thanks for your attention.
877
703
Lua:
require "lib.moonloader"
function main()
  if not isSampfuncsLoaded() or not isSampLoaded() then return end
  while not isSampAvailable() do wait(100) end
  while true do
  wait(0)
if not sampIsChatInputActive() then
    if isKeyDown(VK_B) and isKeyJustPressed(VK_E) then
      sampSendChat("/beer")
    end
    if isKeyDown(VK_A) and isKeyJustPressed(VK_H) then
      sampSendChat("/armour")
      end
      if isKeyJustPressed(VK_L) then
      sampSendChat("/lock")
      end
      end
   end
   end
 
  • Нравится
Реакции: TolikEbolik!