Code:
{$CLEO .cs}
if not 29@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end
Const
playerid = 1@
end
:id
wait 0
if
0B21: samp is_chat_opened
then
0A8C: write_memory 0xA49EFC size 4 value 1 virtual_protect 0
else
0A8C: write_memory 0xA49EFC size 4 value 0 virtual_protect 0
end
0A8D: 9@ = read_memory 0xA49F04 size 4 virtual_protect 0
if
not 9@ == 1
then
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 33@ closest_ped_to 0@
0B2B: samp 0@ = get_player_id_by_actor_handle 0@
if
0029: 0@ >= 0
then
0B24: samp 5@ = get_remote_player_ptr 0@
5@ += 8
0A8D: 5@ = read_memory 5@ size 4 virtual_protect 1
5@ += 127
0A8D: 6@ = read_memory 5@ size 1 virtual_protect 1
if
0039: 6@ == 0
then
0006: 0@ = -1
end
end
end
03F0: enable_text_draw 1
0A8C: write_memory 0xA49F00 size 4 value 0@ virtual_protect 0
045A: draw_text_1number 600.0 400.0 GXT 'NUMBER' number 0@
0AC8: playerid = allocate_memory_size 64
if
9@ == 0
then
0AD3: string playerid format "nearplayerid:"
0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 '12ANGEL' 2@ // Get gxt text address by gxt name
0AA5: call 0x718600 2 pop 2 2@ playerid
033E: set_draw_text_position 480.0 400.0 GXT '12ANGEL'
else
0AD3: string playerid format "fix:"
0AA8: call_function_method 0x6A0050 0xC1B340 num_params 1 pop 0 '12ANGEL' 2@ // Get gxt text address by gxt name
0AA5: call 0x718600 2 pop 2 2@ playerid
033E: set_draw_text_position 567.0 400.0 GXT '12ANGEL'
end
0AC9: playerid
jump @id