// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
thread "DINFO"
:DINFO_11
wait 300
SAMP.Available
else_jump @DINFO_11
alloc 3@ 256
alloc 5@ 256
alloc 10@ 8
alloc 11@ 8
alloc 12@ 8
alloc 13@ 8
alloc 14@ 8
alloc 19@ 1
alloc 20@ 1
alloc 21@ 1
alloc 15@ 8
alloc 16@ 8
alloc 17@ 8
alloc 18@ 8
alloc 33@ 1
alloc 32@ 1
if
8AAB: not file_exists "cleo\myconf.ini"
else_jump @DINFO_620
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "gruzKG"
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "prodanoZA"
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "dohod"
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "vKassu"
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "kolReisov"
0AF1: write_int 1 to_ini_file "cleo\myconf.ini" section "Settings" key "signal"
0AF1: write_int 1 to_ini_file "cleo\myconf.ini" section "Settings" key "autoOtvet"
if
0@ = File.Open("cleo\myconf.ini", 114)
else_jump @DINFO_531
chatmsg "• {00CC00}[Успешно] {ffffff}Файл создан" -1
:DINFO_531
if
8AAB: not file_exists "cleo\myconf.ini"
else_jump @DINFO_620
chatmsg "• {AC0000}[Ошибка] {ffffff}Невозможно создать файл" -1
0A93: end_custom_thread
:DINFO_620
chatmsg "[Мод-информатор для Дальнобойщиков DRP] {00FF00}работает{ffffff}, список команд:" -1
chatmsg "{00FF00}/shconf {ffffff}- вывод данных в любое время" -1
chatmsg "{00FF00}/delconf {ffffff}- очистить данные" -1
chatmsg "{00FF00}/asconf {ffffff}- вкл\выкл авто-гудок" -1
chatmsg "{00FF00}/aoconf {ffffff}- вкл\выкл автоответ на загрузке" -1
0B34: samp register_client_command "delconf" to_label @DINFO_2734
0B34: samp register_client_command "shconf" to_label @DINFO_2621
0B34: samp register_client_command "asconf" to_label @DINFO_3103
0B34: samp register_client_command "aoconf" to_label @DINFO_3360
:DINFO_991
0AF0: 14@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "kolReisov"
0AF0: 15@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "gruzKG"
0AF0: 16@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "prodanoZA"
0AF0: 17@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "dohod"
0AF0: 18@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "vKassu"
0AF0: 20@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "signal"
0AF0: 21@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "autoOtvet"
19@ = 0
:DINFO_1286
wait 0
SAMP.GetChatString(99, 5@, 6@, 7@, 8@)
if
0AD4: 3@ = scan_string 5@ format "%d кг груза было продано за {33AA33}%c%d.{FFFFFF} Доход: %c%d (%c%d дост" 10@ 33@ 11@ 33@ 12@ 33@ 13@
else_jump @DINFO_1780
:DINFO_1421
14@ += 1
005A: 10@ += 15@ // (int)
005A: 11@ += 16@ // (int)
005A: 12@ += 17@ // (int)
005A: 13@ += 18@ // (int)
0AF1: write_int 10@ to_ini_file "cleo\myconf.ini" section "Settings" key "gruzKG"
0AF1: write_int 11@ to_ini_file "cleo\myconf.ini" section "Settings" key "prodanoZA"
0AF1: write_int 12@ to_ini_file "cleo\myconf.ini" section "Settings" key "dohod"
0AF1: write_int 13@ to_ini_file "cleo\myconf.ini" section "Settings" key "vKassu"
0AF1: write_int 14@ to_ini_file "cleo\myconf.ini" section "Settings" key "kolReisov"
File.Close(0@)
005A: 12@ += 13@ // (int)
chatmsg "За %d рейса(-ов) заработок составил: %c%d, в кассу компании начислено: %c%d" -1 14@ 36 12@ 36 13@
jump @DINFO_991
:DINFO_1780
if
0C18: 3@ = strstr string1 5@ string2 "Вы достигли места назначения"
else_jump @DINFO_2040
SAMP.GetChatString(98, 5@, 6@, 7@, 8@)
if
0AD4: 3@ = scan_string 5@ format "%d кг груза было продано за {33AA33}%c%d.{FFFFFF} Доход: %c%d (%c%d доставлено" 10@ 33@ 11@ 33@ 12@ 33@ 13@
else_jump @DINFO_1973
jump @DINFO_1421
:DINFO_1973
if
0C18: 3@ = strstr string1 5@ string2 "Посигнальте, чтобы перейти к разгрузке."
else_jump @DINFO_2040
jump @DINFO_2379
:DINFO_2040
if
0C18: 3@ = strstr string1 5@ string2 "• {AC0000}[Ошибка] {ffffff}Вы приехали без груза"
else_jump @DINFO_2253
SAMP.GetChatString(98, 5@, 6@, 7@, 8@)
if
0AD4: 3@ = scan_string 5@ format "%d кг груза было продано за {33AA33}%c%d.{FFFFFF} Доход: %c%d (%c%d доставлено" 10@ 33@ 11@ 33@ 12@ 33@ 13@
else_jump @DINFO_2253
jump @DINFO_1421
:DINFO_2253
if
0C18: 3@ = strstr string1 5@ string2 "Посигнальте, чтобы перейти к разгрузке."
else_jump @DINFO_2320
jump @DINFO_2379
:DINFO_2320
if
0C18: 3@ = strstr string1 5@ string2 "Посигнальте, чтобы перейти к загрузке."
else_jump @DINFO_2614
:DINFO_2379
0AF0: 20@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "signal"
0AF0: 21@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "autoOtvet"
File.Close(0@)
if
20@ == 1
else_jump @DINFO_2614
19@ = 0
:DINFO_2492
wait 0
if
SAMP.IsDialogActive(-1)
else_jump @DINFO_2561
wait 400
19@ = 0
if
21@ == 1
else_jump @DINFO_2554
SAMP.SetDialogInputBoxText("15000")
SAMP.CloseDialog(1)
:DINFO_2554
jump @DINFO_991
:DINFO_2561
if
19@ >= 1
else_jump @DINFO_2593
19@ = 0
jump @DINFO_991
:DINFO_2593
SAMP.SetGameKeyState(18, 255)
19@ += 1
jump @DINFO_2492
:DINFO_2614
jump @DINFO_1286
:DINFO_2621
0085: 32@ = 17@ // (int)
005A: 32@ += 18@ // (int)
chatmsg "За %d рейса(-ов) заработок составил: %c%d, в кассу компании начислено: %c%d" -1 14@ 36 32@ 36 18@
SAMP.CmdRet
:DINFO_2734
if
14@ > 0
else_jump @DINFO_3055
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "gruzKG"
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "prodanoZA"
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "dohod"
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "vKassu"
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "kolReisov"
0AF0: 14@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "kolReisov"
File.Close(0@)
chatmsg "• {00CC00}[Успешно] {ffffff}Конфиг очищен" -1
jump @DINFO_3101
:DINFO_3055
chatmsg "• {AC0000}[Ошибка] {ffffff}Всё по нулям" -1
:DINFO_3101
SAMP.CmdRet
:DINFO_3103
0AF0: 20@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "signal"
File.Close(0@)
if
20@ == 1
else_jump @DINFO_3266
chatmsg "• {00CC00}[Авто-гудок]: {ffffff}Выключен" -1
20@ = 0
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "signal"
jump @DINFO_3358
:DINFO_3266
chatmsg "• {00CC00}[Авто-гудок]: {ffffff}Включен" -1
20@ = 1
0AF1: write_int 1 to_ini_file "cleo\myconf.ini" section "Settings" key "signal"
:DINFO_3358
SAMP.CmdRet
:DINFO_3360
0AF0: 21@ = get_int_from_ini_file "cleo\myconf.ini" section "Settings" key "autoOtvet"
File.Close(0@)
if
21@ == 1
else_jump @DINFO_3529
chatmsg "• {00CC00}[Авто-ответ]: {ffffff}Выключен" -1
21@ = 0
0AF1: write_int 0 to_ini_file "cleo\myconf.ini" section "Settings" key "autoOtvet"
jump @DINFO_3624
:DINFO_3529
chatmsg "• {00CC00}[Авто-ответ]: {ffffff}Включен" -1
21@ = 1
0AF1: write_int 1 to_ini_file "cleo\myconf.ini" section "Settings" key "autoOtvet"
:DINFO_3624
SAMP.CmdRet