script_name AutoPasswd script_authors Igor Novikov sampev require lib

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
script_name("AutoPasswd")
script_authors("Igor Novikov")
sampev = require 'lib.samp.events'
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
while not isSampAvailable() do wait(100) end
wait(-1)
end
function sampev.onShowDialog(dialogId,style,title,button1,button2,text)
if (dialogId == 1 and title == '{66CCFF}Авторизация') then
sampSendDialogResponse(1,1,-1,'pass')
return false
end
end