local KV = {
[1] = "А",
[2] = "Б",
[3] = "В",
[4] = "Г",
[5] = "Д",
[6] = "Ж",
[7] = "З",
[8] = "И",
[9] = "К",
[10] = "Л",
[11] = "М",
[12] = "Н",
[13] = "О",
[14] = "П",
[15] = "Р",
[16] = "С",
[17] = "Т",
[18] = "У",
[19] = "Ф",
[20] = "Х",
[21] = "Ц",
[22] = "Ч",
[23] = "Ш",
[24] = "Я",
}
function randomFix(oneC, twoC)
oneC = tonumber(oneC)
twoC = tonumber(twoC)
local f = math.random(oneC, oneC)
local v = math.random(twoC, twoC)
local s = math.random(f, v)
return s
end
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
sampRegisterChatCommand("bb", bbb)
end
function bbb(param)
lua_thread.create(func1)
end
function func1()
wait(0)
local r = randomFix(0, 24)
answer_message = KV[r]
sampSendChat(answer_message, answer_message)
end