CLEO Thread CallBack wait 2000 reg_cmd search search While True wait e

 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
{$CLEO}
Thread "CallBack"
wait 2000
reg_cmd "search" @search
While True
wait 0
end
:search
0B35: samp 1@ = get_last_command_params
if 0AD4: 4@ = scan_string 1@ format "%d" 5@ //IF and SET
then
chat "{4e71a1}[SEARCH] {1cc729}Идет поиск." -1
wait 5000
0209: 10@ = random_int_in_ranges 0 1
if 10@ == 1
then
0209: 17@ = random_int_in_ranges 1 900
chat "{4e71a1}[SEARCH] {1cc729}Стоимость дома {ff3b3b}№%d {1cc729}меньше {ff3b3b}%d." -1 17@ 5@
else
chat "{4e71a1}[SEARCH] {1cc729}Ничего не найдено." -1
end
end
SAMP.CmdRet()