function target()
while true do wait(0)
res, handle = getCharPlayerIsTargeting(playerHandle)
if res and doesCharExist(handle) and isKeyJustPressed(45) and isKeyJustPressed(0x02) then
resid, Rid = sampGetPlayerIdByCharHandle(handle)
Rname = sampGetPlayerNickname(Rid)
sampAddChatMessage('Вы навелись на '.. Rname.. ' ['..Rid..'].', -1)
end
end
end