CLEO NOSOURCE INCLUDE SF Thread dialog wait 2000 var int end cmd dialo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{$CLEO}
{$NOSOURCE}
{$INCLUDE SF}
Thread "dialog"
wait 2000
var
6@ : int
end
cmd "dialog" @dialog
While True
wait 0
if 0B3C: samp is_dialog_responded id 17 button 1@ list_item 2@ input_text 0
then
if 1@ == 1
then
if 2@ == 0
then
0AC8: 3@ = allocate_memory_size 256
0AD3: 3@ = format "{FFFFFF}Âû äåéñòâèòåëüíî õîòèòå ïåðåçàéòè â èãðó?%c{D2691E}* {FFFFFF}Âðåìÿ ïåðåçàõîäà - {9ACD32}15 (s)" 0xA
0B3B: samp show_dialog id 10 caption "Reconnect" text 3@ button_1 "Äà" button_2 "Íåò" style DIALOG_STYLE_MSGBOX
0AC9: free_allocated_memory 3@
if 0B3C: samp is_dialog_responded id 10 button 4@ list_item 0 input_text 0
then
if 4@ == 1
then
0AF0: 5@ = get_int_from_ini_file "CLEO\INI\Reconnect.ini" section "Drumk3N" key "Time"
0B28: samp disconnect_with_reason 0
wait 5@
0B27: samp set_gamestate 1
if 2@ == 1
then
0B3B: samp show_dialog id 11 caption "Delay" text "{FFFFFF}Ââåäèòå íèæå çàäåðæêó â ñåêóíäàõ." button_1 "Âûñòàâèòü" button_2 "Çàêðûòü" style DIALOG_STYLE_INPUT
if 0B3C: samp is_dialog_responded id 11 button 7@ list_item 0 input_text 6@
end
end
end
end
end
end
end
:dialog
0AC8: 0@ = allocate_memory_size 64
0ad3: format_stirng 0@ = "Reconnect%cDelay%cHelp" 0xA 0xA
0B3B: samp show_dialog id 17 caption "{4BEC13}Reconnect" text 0@ button_1 "Open" button_2 "Close" style DIALOG_STYLE_LIST
0AC9: free_allocated_memory 0@
SAMP.CmdRet()