local ev = require "samp.events"
local active = false
function main()
sampRegisterChatCommand("mptp", function()
active = not active
sampAddChatMessage("mptp " .. (active and "on" or "off))
end)
wait(-1)
end
function ev.onServerMessage(color, text)
local id = string.match(text, "[a-zA-Z0-9_]+%[(%d+)%]: {FFCD00}%+")
if id and active then
sampSendChat("/gethere " .. id)
-- допиши чё там надо как надо
end
return true
end