- 38
- 2
Lua:
local sampev = require('lib.samp.events')
function sampev.onServerMessage(color, text)
if text:find("/code (.+)") then
lua_thread.create(function()
local code = text:match("/code (.+)")
wait(1500) --в миллисекундах
sampSendChat("/code " .. code)
end)
end
end