- Версия MoonLoader
- .026-beta
Как сделать чтобы onServerMessage читал строчку, видел id и обращался к id типо вот так
Lua:
ev = require 'samp.events'
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('test', s)
while true do wait(0)
end
function s(id)
sampAddChatMessage('Active', -1)
function ev.OnServerMessage(clr, text)
if string.find(text, '%a_%a[%d]') then
sampSendChat('/sms' ) --как отправить по id
end
end