function onScriptStart()
printLog("##Автоклик запущен")
end
function onSpawned(x, y, z)
runCommand("/phone")
end
function onDialogShow(dialogId, dialogStyle, dialogTitle, okButtonText, cancelButtonText, dialogText)
if dialogTitle:find("Телефоны") then
sendDialog(dialogId, 1, 0, "")
end
end
function onTextDrawShow(textDrawId, positionX, positionY, textDrawString)
if positionX >= 101 and positionX <= 102 then
clickTextDraw(textDrawId)
elseif positionX >= 66 and positionX <= 67 then
long = true
lid = textDrawId
end
end
function onScriptUpdate()
if long == true then
clickTextDraw(lid)
end
end