PHP:
{$CLEO .cs}
0000:
0AC8: 1@ = allocate_memory_size 64
0AC8: 4@ = allocate_memory_size 64
WHILE TRUE
WAIT 0
IF
0AD2: 0@ = player $PLAYER_CHAR targeted_actor //IF and SET
THEN
04B8: get_weapon_data_from_actor 0@ slot 1 weapon 1@ ammo 2@ model 3@
04B8: get_weapon_data_from_actor 0@ slot 2 weapon 4@ ammo 5@ model 6@
0ACC: show_text_lowpriority "~r~Target Player has ~w~%s~n~ ~r~in first slot and ~w~%s~n~ ~r~in second slot" time 2000 1@ 4@
0AC9: free_allocated_memory 1@
0AC9: free_allocated_memory 4@
END
END