{$CLEO}
0000: NOP
wait 2000
while true
wait 0
0AC8: 0@ = 260
0AB1: @getChatEntryText 1 99 0@
if 0C14: strcmp string1 0@ string2 "Server closed the connection."
then
wait 10000
0B27: samp set_gamestate 1
repeat
wait 100
until 0B4C: samp is_dialog_active -1
0B4B: samp set_current_dialog_editbox_text "password"
wait 200
0B47: samp close_current_dialog_with_button 1
wait 200
end
0AC9: 0@
end
:getChatEntryText
0AA2: 1@ = "samp.dll"
1@ += 0x212A6C
0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0
1@ += 0x136
0@ *= 252
005A: 1@ += 0@
1@ += 28
0AB2: ret 1 1@