This is the code, but not work, not detect is targeted_actor is a NPC.
¿Solution?
Code:
{$CLEO .cs}
0000: NOP
:APUNTARID
wait 200
if and
0AD2: 0@ = actor $PLAYER_CHAR targeted_ACTOR //IF and SET
0AB0: 78 //Key "B"
jf @APUNTARCMD
if 0104: actor $PLAYER_ACTOR near_actor 0@ radius 14.0 14.0 14.0 sphere 0
then
if 0B64: samp is_player 0@ npc
then
0AF8: samp add_message_to_chat "{FF3300}It's a NPC." color 0xFFFFFF
else
0B2B: samp 1@ = get_player_id_by_CHAR_handle 0@
0B36: samp 2@ = get_player_nickname 1@
0AF9: samp say_msg "/id %d" 1@
else
jump @APUNTARID
end
end
:APUNTARCMD
jump @APUNTARID
¿Solution?