// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE CLEO+}
{$USE file}
{$USE ini}
{$USE newOpcodes}
0000: NOP
:NONAME_2
wait 0
SAMP.Available
jf @NONAME_2
chatmsg "{73b461}[HudColors]{FFFFFF} Скрипт загружен.{dc4747} Пример: /hud [money] [0xARGB]" color -1
chatmsg "{73b461}[HudColors]{FFFFFF} Доступные варианты:{dc4747} money, hud, wanted, armour, patron" color -1
0B34: samp register_client_command "hud" to_label @NONAME_700
if
8AAB: not file_exists "CLEO\HudColors.ini"
jf @NONAME_437
0AF1: write_int -1 to_ini_file "CLEO\HudColors.ini" section "HUD" key "MONEY"
0AF1: write_int -1 to_ini_file "CLEO\HudColors.ini" section "HUD" key "HEALTH"
0AF1: write_int -1 to_ini_file "CLEO\HudColors.ini" section "HUD" key "WANTED"
0AF1: write_int -1 to_ini_file "CLEO\HudColors.ini" section "HUD" key "PATRON"
0AF1: write_int -1 to_ini_file "CLEO\HudColors.ini" section "HUD" key "ARMOUR"
jump @NONAME_696
:NONAME_437
0AF0: 0@ = get_int_from_ini_file "CLEO\HudColors.ini" section "HUD" key "MONEY"
0AF0: 1@ = get_int_from_ini_file "CLEO\HudColors.ini" section "HUD" key "HEALTH"
0AF0: 2@ = get_int_from_ini_file "CLEO\HudColors.ini" section "HUD" key "WANTED"
0AF0: 10@ = get_int_from_ini_file "CLEO\HudColors.ini" section "HUD" key "PATRON"
0AF0: 11@ = get_int_from_ini_file "CLEO\HudColors.ini" section "HUD" key "ARMOUR"
0A8C: write_memory 12235312 size 4 value 0@ virtual_protect 1
0A8C: write_memory 12235308 size 4 value 1@ virtual_protect 1
0A8C: write_memory 12235332 size 4 value 2@ virtual_protect 1
0A8C: write_memory 12235320 size 4 value 10@ virtual_protect 1
0A8C: write_memory 12235324 size 4 value 11@ virtual_protect 1
:NONAME_696
0BDE: pause_thread 0
:NONAME_700
SAMP.IsCommandTyped(3@)
alloc 4@ = allocate_memory_size 25
0AA7: call_function 8528045 num_params 4 pop 4 5@v 4@ "%s %x" 3@ 6@
if and
6@ == 2
30@ = 0
jf @NONAME_1226
if
0C21: stricmp string1 4@ string2 "money"
jf @NONAME_858
call @NONAME_1247 1 5@ 7@
0A8C: write_memory 12235312 size 4 value 7@ virtual_protect 1
0AF1: write_int 7@ to_ini_file "CLEO\HudColors.ini" section "HUD" key "MONEY"
:NONAME_858
if
0C21: stricmp string1 4@ string2 "health"
jf @NONAME_950
call @NONAME_1247 1 5@ 7@
0A8C: write_memory 12235308 size 4 value 7@ virtual_protect 1
0AF1: write_int 7@ to_ini_file "CLEO\HudColors.ini" section "HUD" key "HEALTH"
:NONAME_950
if
0C21: stricmp string1 4@ string2 "wanted"
jf @NONAME_1042
call @NONAME_1247 1 5@ 7@
0A8C: write_memory 12235332 size 4 value 7@ virtual_protect 1
0AF1: write_int 7@ to_ini_file "CLEO\HudColors.ini" section "HUD" key "WANTED"
:NONAME_1042
if
0C21: stricmp string1 4@ string2 "patron"
jf @NONAME_1134
call @NONAME_1247 1 5@ 7@
0A8C: write_memory 12235320 size 4 value 7@ virtual_protect 1
0AF1: write_int 7@ to_ini_file "CLEO\HudColors.ini" section "HUD" key "PATRON"
:NONAME_1134
if
0C21: stricmp string1 4@ string2 "armour"
jf @NONAME_1226
call @NONAME_1247 1 5@ 7@
0A8C: write_memory 12235324 size 4 value 7@ virtual_protect 1
0AF1: write_int 7@ to_ini_file "CLEO\HudColors.ini" section "HUD" key "ARMOUR"
:NONAME_1226
free 4@
4@ = 0
5@ = 0
SAMP.CmdRet
:NONAME_1247
0B66: render argb 0@ to_a 1@ r 2@ g 3@ b 4@
0B67: render a 1@ r 4@ g 3@ b 2@ to_argb 0@
ret 1 0@