:START
wait 0
if
0AB0: key_pressed 113
jf @START
if
0AB1: call @nearid 0 retr_to fdist 0@ sid 1@
jf @START
0AF9: "/iznas %d" 1@
wait 100
0C72: set_virtual_key 0x7A down true
wait 100
0C72: set_virtual_key 0x7A down false
wait 1000
jump @START
:nearid
3@ = 1000.0
4@ = 0xFFFFFF
0A8D: 0@ = read_memory 0xB74490 size 4 virtual_protect 0
0@ += 4
0A8D: 0@ = read_memory 0@ size 4 virtual_protect 0
for 1@ = 0 to 35584 step 0x100
0A8D: 2@ = read_memory 0@ size 1 virtual_protect 0
0@++
if and
2@ >= 0x00
2@ < 0x80
then
005A: 2@ += 1@
if or
003C: $PLAYER_ACTOR == 2@
856D: NOT actor 2@ defined
then continue
end
0AB1: call @dist 1 remote_player_handle 2@ retr_dist_to 5@
if 0025: 3@ > 5@
then
0087: 3@ = 5@
0085: 4@ = 2@
end
end
end
if 4@ = SAMP.GetSAMPPlayerIDByActorHandle(4@)
then
0485: return_true
else
059A: return_false
end
0AB2: ret 2 3@ 4@
:dist
Actor.StorePos(0@, 1@, 2@, 3@)
Actor.StorePos($PLAYER_ACTOR, 4@, 5@, 6@)
050A: 7@ = distance_between_XYZ 4@ 5@ 6@ and_XYZ 1@ 2@ 3@
0AB2: ret 1 7@