function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand("sendcommand", function()
lua_thread.create(function()
for i = 0, 100 do
sampSendChat("/твоя команда")
i = i +1
wait(6000)
end
end)
end)
wait(-1)
end