- 523
- 87
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