local active = false
local text = 'Продам Гараж' -- Текст Рекламы
local time = 5 -- Время между сообщениями в секундах
function main()
repeat wait(0) until isSampAvailable()
sampRegisterChatCommand('autob', function()
active = not active
sampAddChatMessage('Авто-реклама ' .. (active and '{00FF00}включен' or '{FF0000}выключен'), -1)
end)
while true do
wait(0)
if active then
sampSendChat('/b '..text)
wait(time*1000)
end
end
end