local times = false
function main()
if not isSampLoaded() then return end
sampRegisterChatCommand('test', time)
while true do
wait(0)
if times then
-- дальше сам
end
end
end
function time()
times = not times
sampAddChatMessage(times and "вкл" or "выкл", -1)
end