// 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
repeat
wait 400
until 0AFA: is_samp_available
0AF8: samp add_message_to_chat "Convoy Checker v1.0 by SyntaX" color 0xFFA07A
:8
0001: wait 0 ms
0AFA: is_samp_available
004D: jump_if_false @8
0B34: samp register_client_command "pos" to_label @845
00D6: if
8AAB: not file_exists "CLEO\state.ini"
004D: jump_if_false @119
0AF1: write_int 100 to_ini_file "cleo\state.ini" section "Pos" key "X"
0AF1: write_int 500 to_ini_file "cleo\state.ini" section "Pos" key "Y"
:119
0AF0: 16@ = get_int_from_ini_file "cleo\state.ini" section "Pos" key "X"
0AF0: 17@ = get_int_from_ini_file "cleo\state.ini" section "Pos" key "Y"
0B6D: render 30@ = create_font "Georgia" height 10 flags 12
0BE3: raknet setup_incoming_rpc_hook @608
0AC8: 5@ = allocate_memory_size 30
:207
0001: wait 0 ms
00D6: if
0B61: samp is_local_player_spawned
004D: jump_if_false @601
0AF0: 17@ = get_int_from_ini_file "cleo\state.ini" section "Pos" key "Y"
0050: gosub @854
0AD3: 5@ = format "{%x}[LS] {%x}[LV] {%x}[SF]" 6@ 8@ 7@
0B6F: render font 30@ draw_text 5@ pos 16@ 17@ color -1
000A: 17@ += 15
00D6: if
0039: 18@ == 1
004D: jump_if_false @601
0B8D: samp set_cursor_mode 3
0B5E: get_cursor_pos 16@ 17@
0AF1: write_int 16@ to_ini_file "cleo\state.ini" section "Pos" key "X"
0AF1: write_int 17@ to_ini_file "cleo\state.ini" section "Pos" key "Y"
00D6: if
0C89: key_just_pressed 2
004D: jump_if_false @601
0006: 18@ = 0
0B8D: samp set_cursor_mode 0
:601
0002: jump @207
:608
0BE5: raknet 0@ = get_hook_param 1
00D6: if
0039: 0@ == 121
004D: jump_if_false @728
0BE5: raknet 0@ = get_hook_param 0
0BE7: raknet 1@ = bit_stream_read 0@ type 2
00D6: if
0039: 1@ == 408
004D: jump_if_false @676
0006: 2@ = 1
:676
00D6: if
0039: 1@ == 409
004D: jump_if_false @702
0006: 3@ = 1
:702
00D6: if
0039: 1@ == 410
004D: jump_if_false @728
0006: 4@ = 1
:728
00D6: if
0039: 0@ == 85
004D: jump_if_false @841
0BE5: raknet 0@ = get_hook_param 0
0BE7: raknet 1@ = bit_stream_read 0@ type 2
00D6: if
0039: 1@ == 408
004D: jump_if_false @789
0006: 2@ = 0
:789
00D6: if
0039: 1@ == 409
004D: jump_if_false @815
0006: 3@ = 0
:815
00D6: if
0039: 1@ == 410
004D: jump_if_false @841
0006: 4@ = 0
:841
0BE0: raknet hook_ret 1
:845
0006: 18@ = 1
0B43: samp cmd_ret
:854
00D6: if
0039: 2@ == 1
004D: jump_if_false @889
0006: 6@ = 3407667
0002: jump @899
:889
0006: 6@ = 16724736
:899
00D6: if
0039: 3@ == 1
004D: jump_if_false @934
0006: 7@ = 3407667
0002: jump @944
:934
0006: 7@ = 16724736
:944
00D6: if
0039: 4@ == 1
004D: jump_if_false @979
0006: 8@ = 3407667
0002: jump @989
:979
0006: 8@ = 16724736
:989
0051: return