script_name Autologin script_author FForest script_version local sampe

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
script_name('Autologin')
script_author('FForest')
script_version('1.0')
local sampev = require "lib.samp.events"
function sampev.onShowDialog(id, stytle, title, btn1, btn2, text)
--nick ввести Ваш ник
if id == 1 and text:find("nick") then
--pass ввести Ваш пасс
sampSendDialogResponse(id, 1, 0, "pass")
end
end
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
end