помогите сделать активацию

hardstyledrill2009

Активный
Автор темы
524
86
lua:
local act = false
act = "]"

function main()
    while not isSampAvailable() do wait(100) end
    sampAddChatMessage("{FFFF00}[KeySpoof]{FFFFFF} (/time) {FFFFFF}был загружен. Активация: "..act, -1)
    while true do wait(0)
        if testCheat(act) then
            act = not act
        end
        if act then
            if sampIsChatInputActive() then
                text = sampGetChatInputText()
                textLength = string.len(text)
                print(textLength)
                if textLength == 1 and text ~= "/" then
                    sampSetChatInputText("/")
                elseif textLength == 2 and text ~= "/t" then
                    sampSetChatInputText("/t")
                elseif textLength == 3 and text ~= "/ti" then
                    sampSetChatInputText("/ti")
                elseif textLength == 4 and text ~= "/tim" then
                    sampSetChatInputText("/tim")
                elseif textLength == 5 and text ~= "/time" then
                    lua_thread.create(function()
                        sampSetChatInputText("/time")
                        wait(100)
                        sampProcessChatInput("/time")
                    end)
                elseif textLength > 5 and text ~= "/time" then
                    sampSetChatInputText("/time")
                end
            end
        end
    end
end
у меня скрипт не выключается и сразу включен когда я захожу в игре, и немогу так играть эт кейспуф, активация любая, лишь бы не мешала игре
 

askfmaskfaosflas

Потрачен
1,089
511
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Вытащи эти строчки из беск. цикла и будет тебе счастье
if testCheat(act) then
act = not act
end

если помог, то нажми на галочку возле моего ответа выше
 
Последнее редактирование:
  • Нравится
Реакции: hardstyledrill2009