function main()
for i = 48, 57 do
if isKeyJustPressed(i) then
if state < 5 then
state = state + 1
end
end
end
end
function samp.onShowDialog(id, style, title, btn, btn, text)
state = 0
dtitle = title
if dtitle:find('репорт') then
if state == 1 then
sampSetCurrentDialogEditboxText("а")
elseif state == 2 then
sampSetCurrentDialogEditboxText("ад")
elseif state == 3 then
sampSetCurrentDialogEditboxText("адм")
elseif state == 4 then
sampSetCurrentDialogEditboxText("адми")
elseif state == 5 then
sampSetCurrentDialogEditboxText("админ")
elseif state == 0 then
sampSetCurrentDialogEditboxText('')
end
end
end