local act = false
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('cmd', function()
if act then return sampAddChatMessage('Ошибка, таймер уже запущен, введите TIME как чит-код', -1) end
act = true
sampAddChatMessage('Таймер запущен, введите TIME как чит-код', -1)
timer = os.time() + 10
end)
while true do
wait(0)
if act then
if testCheat('TIME') and timer >= os.time() then act = false sampAddChatMessage('Успел', -1) end
if timer < os.time() then act = false sampAddChatMessage('Не успел', -1) end
end
end
end