(taken from ugbase script){$CLEO .cs}
0000:
:vest
wait 0
if and
056D: actor $PLAYER_ACTOR defined
0AB0: key_pressed 101
jf @vest
00A0: store_actor $PLAYER_ACTOR position_to 3@ 4@ 5@
10@ = 100.0
12@ = false
0A8D: 29@ = read_memory 0xB74490 size 4 virtual_protect 0
000A: 29@ += 0x4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
for 30@ = 0 to 35584 step 0x100
0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
000A: 29@ += 0x1
if and
0029: 31@ >= 0x00
001B: 0x80 > 31@
then
005A: 31@ += 30@
00A0: store_actor 31@ position_to 6@ 7@ 8@
050A: 9@ = distance_between_XYZ 3@ 4@ 5@ and_XYZ 6@ 7@ 8@
if
0025: 10@ > 9@
then
0087: 10@ = 9@
0085: 11@ = 31@
12@ = true
end
end
end
if 12@ == true
jf @vest
2@ = SAMP.GetSAMPPlayerIDByActorHandle(11@)
0AF9: samp say_msg "/guard %d 200" 2@
wait 1000
jump @vest
Also this
{$CLEO .cs}
0000:
:Main
wait 0
if and
056D: actor $PLAYER_ACTOR defined
0AB0: key_pressed 112
jf @Main
02F2: actor $PLAYER_ACTOR model == 0@
if
0@ = 160
jf @Main
0AF9: samp say_msg "hello"
wait 1000
jump @Main
probably some dumb mistakes since im just starting to experiment