PHP:
:ARMOUR
wait 0
if
0AD2: 3@ = player $PLAYER_CHAR targeted_actor //IF and SET
jf @ARMOUR
if
056D: actor 3@ defined
jf @ARMOUR
jump @ARMOUR2
:ARMOUR2
wait 0
if
0AB0: key_pressed 12@
jf @ARMOUR2
0B2B: samp 4@ = get_player_id_by_actor_handle 3@
0B79: samp set_chat_input_enabled 1
0C8F: samp process_chat_input "/guard %d 200" 4@
wait 14@
jump @ARMOUR