// 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
:Noname_2
wait 400
SAMP.Available
else_jump @Noname_2
30@ = Render.CreateFont("Segoe UI", 12, 1)
0B34: samp register_client_command "bcfg" to_label @Noname_940
0B34: samp register_client_command "bh" to_label @Noname_949
alloc 10@ 16
gosub @Noname_1002
if
25@ == 1
else_jump @Noname_141
chatmsg "Bone-hp by{0e7575} KENNEX{ffffff} | loaded." -1
:Noname_141
wait 0
if
24@ == 1
else_jump @Noname_888
call @Noname_895 5 $PLAYER_ACTOR 1 2@ 3@ 4@ 5@ 6@ 7@
SAMP.Convert3DCoordsToScreen(5@, 6@, 7@, 5@, 6@)
29@ = Actor.Health($PLAYER_ACTOR)
if
not 29@ > 100
else_jump @Noname_256
29@ *= 1.1
jump @Noname_263
:Noname_256
29@ = 110
:Noname_263
5@ -= 60
Render.DrawBorderedBox(5@, 6@, 29@, 16, 21@, 0, -1442840576)
Render.DrawBorderedBox(5@, 6@, 110, 16, 22@, 14@, -16777216)
if
26@ == 1
else_jump @Noname_462
04DD: 9@ = actor $PLAYER_ACTOR armour
if
9@ > 0
else_jump @Noname_462
if
not 9@ > 100
else_jump @Noname_395
9@ *= 1.1
jump @Noname_402
:Noname_395
9@ = 110
:Noname_402
6@ -= 26
Render.DrawBorderedBox(5@, 6@, 9@, 16, 23@, 0, -1442840576)
Render.DrawBorderedBox(5@, 6@, 110, 16, 22@, 14@, -16777216)
6@ += 26
:Noname_462
if
13@ == 1
else_jump @Noname_494
5@ += 23
jump @Noname_551
:Noname_494
if
13@ == 2
else_jump @Noname_526
5@ += 55
jump @Noname_551
:Noname_526
if
13@ == 3
else_jump @Noname_551
5@ += 86
:Noname_551
if
15@ == 1
else_jump @Noname_695
5@ -= 16
Render.DrawBorderedBox(5@, 6@, 34, 16, 1677721600, 1, -1442840576)
5@ += 16
if
26@ == 1
else_jump @Noname_695
if
9@ > 0
else_jump @Noname_695
6@ -= 26
5@ -= 16
Render.DrawBorderedBox(5@, 6@, 34, 16, 1677721600, 1, -1442840576)
6@ += 26
5@ += 16
:Noname_695
29@ = Actor.Health($PLAYER_ACTOR)
format 10@ "%d" 29@
12@ = 0
12@ = Render.FontDrawLength(30@, 10@)
12@ /= 2
0062: 5@ -= 12@ // (int)
6@ -= 4
Render.DrawText(30@, 10@, 5@, 6@, 20@)
005A: 5@ += 12@ // (int)
if
26@ == 1
else_jump @Noname_888
04DD: 9@ = actor $PLAYER_ACTOR armour
if
9@ > 0
else_jump @Noname_888
format 10@ "%d" 9@
12@ = Render.FontDrawLength(30@, 10@)
12@ /= 2
0062: 5@ -= 12@ // (int)
6@ -= 26
Render.DrawText(30@, 10@, 5@, 6@, 20@)
:Noname_888
jump @Noname_141
:Noname_895
0A96: 8@ = actor 0@ struct
0AA6: call_method 6160832 struct 8@ num_params 3 pop 0 1 1@ 2@v
ret 3 2@ 3@ 4@
:Noname_940
gosub @Noname_1002
SAMP.CmdRet
:Noname_949
0B12: 24@ = 24@ XOR 1
0AF1: write_int 24@ to_ini_file "cleo\bone-hp.ini" section "Main" key "Activation"
SAMP.CmdRet
:Noname_1002
if
0AAB: file_exists "cleo\bone-hp.ini"
else_jump @Noname_1911
0AF0: 16@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Text" key "A"
0AF0: 17@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Text" key "R"
0AF0: 18@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Text" key "G"
0AF0: 19@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Text" key "B"
0B67: render a 16@ r 17@ g 18@ b 19@ to_argb 20@
0AF0: 16@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Armour" key "A"
0AF0: 17@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Armour" key "R"
0AF0: 18@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Armour" key "G"
0AF0: 19@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Armour" key "B"
0B67: render a 16@ r 17@ g 18@ b 19@ to_argb 23@
0AF0: 16@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Health" key "A"
0AF0: 17@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Health" key "R"
0AF0: 18@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Health" key "G"
0AF0: 19@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Health" key "B"
0B67: render a 16@ r 17@ g 18@ b 19@ to_argb 21@
0AF0: 16@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Background" key "A"
0AF0: 17@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Background" key "R"
0AF0: 18@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Background" key "G"
0AF0: 19@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Background" key "B"
0B67: render a 16@ r 17@ g 18@ b 19@ to_argb 22@
0AF0: 24@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Main" key "Activation"
0AF0: 26@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Main" key "ActivationArmour"
0AF0: 25@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Main" key "Show message author"
0AF0: 14@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Main" key "Border"
0AF0: 15@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Main" key "Square"
0AF0: 13@ = get_int_from_ini_file "cleo\bone-hp.ini" section "Main" key "Text-pos"
jump @Noname_2700
:Noname_1911
0AF1: write_int 1 to_ini_file "cleo\bone-hp.ini" section "Main" key "Show message author"
0AF1: write_int 1 to_ini_file "cleo\bone-hp.ini" section "Main" key "Activation"
0AF1: write_int 1 to_ini_file "cleo\bone-hp.ini" section "Main" key "ActivationArmour"
0AF1: write_int 2 to_ini_file "cleo\bone-hp.ini" section "Main" key "Border"
0AF1: write_int 1 to_ini_file "cleo\bone-hp.ini" section "Main" key "Square"
0AF1: write_int 1 to_ini_file "cleo\bone-hp.ini" section "Main" key "Text-pos"
0AF1: write_int 255 to_ini_file "cleo\bone-hp.ini" section "Text" key "A"
0AF1: write_int 204 to_ini_file "cleo\bone-hp.ini" section "Text" key "R"
0AF1: write_int 204 to_ini_file "cleo\bone-hp.ini" section "Text" key "G"
0AF1: write_int 204 to_ini_file "cleo\bone-hp.ini" section "Text" key "B"
0AF1: write_int 200 to_ini_file "cleo\bone-hp.ini" section "Health" key "A"
0AF1: write_int 255 to_ini_file "cleo\bone-hp.ini" section "Health" key "R"
0AF1: write_int 0 to_ini_file "cleo\bone-hp.ini" section "Health" key "G"
0AF1: write_int 0 to_ini_file "cleo\bone-hp.ini" section "Health" key "B"
0AF1: write_int 200 to_ini_file "cleo\bone-hp.ini" section "Armour" key "A"
0AF1: write_int 0 to_ini_file "cleo\bone-hp.ini" section "Armour" key "R"
0AF1: write_int 0 to_ini_file "cleo\bone-hp.ini" section "Armour" key "G"
0AF1: write_int 255 to_ini_file "cleo\bone-hp.ini" section "Armour" key "B"
0AF1: write_int 100 to_ini_file "cleo\bone-hp.ini" section "Background" key "A"
0AF1: write_int 0 to_ini_file "cleo\bone-hp.ini" section "Background" key "R"
0AF1: write_int 0 to_ini_file "cleo\bone-hp.ini" section "Background" key "G"
0AF1: write_int 0 to_ini_file "cleo\bone-hp.ini" section "Background" key "B"
:Noname_2700
return