- 26
- 3
Например: при получении сообщения от сервера: [ADMIN] ник админа: Капча на СЛОВО: СЛОВО/ЦИФРА?
Код:
local reasons = {"Капча", "mute", "spcar", "jail", "jailoff", "sethp", "sban", "banoff", "muteoff", "sbanoff", "spplayer", "slap", "unmute", "unjail", "sban", "spcar", "ban", "sban", "warn", "skick", "setskin", "ao", "unban", "unwarn", "setskin", "skick", "banip", "offban", "offwarn", "plveh", "sban", "ptp", "o", "aad", "givegun", "avig", "aunvig", "setadmin", "givedonate", "spawncars", "delacc",}
for k,v in ipairs(reasons) do
if text:match("%[.*%] (%w+_?%w+)%[(%d+)%]%: Капча на "%s"..v.."%s") then
started = started + 1
if started < 2 then
prikoll = "true"
admin_nick, admin_id, other = text:match("%[.+%] (%w+_?%w+)%[(%d+)%]%: /"..v.."%s(.*)")
cmd = v
paramssss = other
if stop == 0 then
lua_thread.create(function()
for i = 0, 5 do
if active_report2 == 0 then
status("false", i)
else
status("true", i)
end
end
if prikoll == "true" then
wait(550)
printStyledString("You missed form", 1000, 5)
active_report = 1
active_report2 = 0
started = 0
bbstart = -1
end
end)
end
end
end
end
end