CLEO SF Thread CallBack wait 2000 reg_cmd inv inv alloc 96 alloc 96 Wh

 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}
{$I SF}
Thread "CallBack"
wait 2000
reg_cmd "inv" @inv
alloc 1@ 96
alloc 5@ 96
While True
wait 0
if 0B3C: samp is_dialog_responded id 67 button 0@ list_item 0 input_text 1@
then
if 0@ == 1
then
0C1A: 2@ = atoi 1@
if 0B23: samp is_player_connected 2@
then
0B20: samp 3@ = actor_handle_by_samp_player_id 2@
if 056D: actor 3@ defined
then
0B3B: samp show_dialog id 68 caption "{0192ff}Gang Bot" text "{FFFFFF}Введите {ff0101}rang {FFFFFF}игрока" button_1 "Продолжить" button_2 "Закрыть" style DIALOG_STYLE_INPUT
if 0B3C: samp is_dialog_responded id 68 button 4@ list_item 0 input_text 5@
then
if 4@ == 1
then
0C1A: 6@ = atoi 5@
if and
6@ >= 0
6@ <=9
then
chatmsg "{0192ff}[Gang Bot] id игрока - {ff0101}%d" -1 2@
chatmsg "{0192ff}[Gang Bot] Rang игрока - {ff0101}%d" -1 6@
free 1@
free 5@
end
end
end
end
end
end
end
end
:inv
0B3B: samp show_dialog id 67 caption "{0192ff}Gang Bot" text "{FFFFFF}Введите {ff0101}id {FFFFFF}игрока" button_1 "Продолжить" button_2 "Закрыть" style DIALOG_STYLE_INPUT
SAMP.CmdRet()