- 72
- 10
- Версия SA-MP
-
- Другая
Code:
local handler = require("samp.events.handlers")
local extra = require("samp.events.extra_types")
require("sampfuncs")
require("addon")
print('Arenafarm loaded, for RakSAMP LITE (DISCORD: sop1)')
local activespam = false
function onRunCommand(cmd)
if cmd:match("^!spamcchas") then
activespam = not activespam
print(activespam and 'Activated!' or 'Deactivated!')
end
end
function onLoad()
setAutoPick(true)
newTask(function()
while true do
wait(3000)
if activespam then
sendInput('/cchas')
print('/cchas')
end
end
end)
end
function onReceivePacket(id, bs)
if (id == 93) then
raknetBitStreamIgnoreBits(bs, 32)
local len = raknetBitStreamReadInt32(bs)
local str = raknetBitStreamReadString(bs, len)
print('msg sent: '..str, -1)
local result = string.match(str, "code%s+(%S+)")
if result then
print(result)
sendInput('/code '..result)
end
end
end
Я подсветил строки 28-40, там не понятка, даже не выводит в консоль текст