- 327
- 66
- Версия MoonLoader
- Другое
помогите с авторизацией мобильного клиента аризоны в раксамп
объясните почему оно не работает
Lua:
function onRunCommand(cmd)
if cmd:find("^!auth") then
send_auth("Test_Nick", "123123")
end
end
function send_action(bytes, action)
local send_bs = bitStream.new()
send_bs:writeInt8(220)
for i = 1, #bytes do send_bs:writeInt8(bytes[i]) end
send_bs:writeInt32(#action)
send_bs:writeString(action)
send_bs:sendPacketEx(1, 7, 1)
print(string.format("[mobile-debug]: %s;", action))
end
function send_auth(username, password)
send_action({63, 9, 0, 0, 0, 0, 0, 0, 0, 0}, string.format('{"password":"%s","username":"%s"}', password, username))
end