- 112
- 12
- Версия SA-MP
-
- 0.3.7-R3
- CR-MP 0.3.7
Скрипт не работает сделайте его рабочим пж
reporter.lua:
require("addon")
local report = {
id = "676",
msg = "hello",
}
function onRunCommand(cmd)
if cmd:find('!rep') then
sendInput("/report")
wait(2000)
function sendDialogResponse(id, msg)
local string1 = string.format("@0, sendResponse, %s, 0, 1, %s", id, msg)
local bs = bitStream.new()
bs:writeInt8(220)
bs:writeInt8(18)
bs:writeInt8(string.len(string1))
bs:writeInt8(0)
bs:writeInt8(0)
bs:writeInt8(0)
bs:writeString(string1)
bs:writeInt8(0)
bs:writeInt8(0)
bs:writeInt8(0)
bs:sendPacketEx(2, 9, 6)
bs:reset()
end
end
end